You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to include a link to the function that is benched by a criterion benchmark run? I want to build some tools that will display performance of functions in my editor, but I don't want to have to rely on naming my benchmark with the path:line or fully qualified function name.
If it can't be done now, it would be nice if in the benchmark I could explicitly register the function I want to associate with the bench, perhaps like:
fnfoo_benchmark(c:&mutCriterion){let example_in = "Some example data";
c.bench_function("my descriptive benchmark name", |b| b.iter(|| foo(black_box(example_in))));
c.register(foo)// Or maybe in the line above somehow}
The text was updated successfully, but these errors were encountered:
Is there a way to include a link to the function that is benched by a criterion benchmark run? I want to build some tools that will display performance of functions in my editor, but I don't want to have to rely on naming my benchmark with the path:line or fully qualified function name.
Given the function I want to bench:
and the corresponding benchmark:
In the
.json
report I would like a way to link the benchmark result with the benched function:or
If it can't be done now, it would be nice if in the benchmark I could explicitly register the function I want to associate with the bench, perhaps like:
The text was updated successfully, but these errors were encountered: