Skip to content

Benchmarks improvement: setup code for benchmark shall be separate from benchmarks itself  #401

Open
@AlexMikhalev

Description

@AlexMikhalev

Proposal:
create a separate setup function for benchmarks which will have db init and db.populate records before running any other benchmarks.
I found a good example https://github.com/rukai/shotover-proxy/blob/6b21ba52b332f5117258673d489b13d396051c07/shotover-proxy/benches/redis_benches.rs but it needs a patched version of criterion.rs from the same author.
Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions