aboutsummaryrefslogtreecommitdiff
path: root/src/tests/example_stack
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-02-24 17:12:20 +0000
committerAria Shrimpton <me@aria.rip>2024-02-24 17:12:20 +0000
commit825a73185848650d1877e9c3b899ade84f0bbbb5 (patch)
tree7348b8dae2679762805c8d76e6d994e0ed3d1048 /src/tests/example_stack
parent830f7f45a4e6ff0788ca44d48a25c327ddd6c617 (diff)
give each benchmark its own name
Diffstat (limited to 'src/tests/example_stack')
-rw-r--r--src/tests/example_stack/benches/do_stuff.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/example_stack/benches/do_stuff.rs b/src/tests/example_stack/benches/do_stuff.rs
index c7e2e23..91f21fb 100644
--- a/src/tests/example_stack/benches/do_stuff.rs
+++ b/src/tests/example_stack/benches/do_stuff.rs
@@ -1,7 +1,9 @@
use criterion::{criterion_group, criterion_main, Criterion};
fn run_benches(c: &mut Criterion) {
- c.bench_function("do_something", |b| b.iter(|| example_stack::do_something()));
+ c.bench_function("example_stack-do_something", |b| {
+ b.iter(|| example_stack::do_something())
+ });
}
criterion_group!(benches, run_benches);