Skip to content

Commit

Permalink
Changed benchmark names
Browse files Browse the repository at this point in the history
Added the `simple_` qualifier
  • Loading branch information
MrGVSV committed Sep 7, 2024
1 parent 70d497f commit 0ecda65
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions benches/benches/bevy_reflect/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn overload(c: &mut Criterion) {
}

c.benchmark_group("with_overload")
.bench_function("01_overload", |b| {
.bench_function("01_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| func.with_overload(add::<i16>),
Expand All @@ -98,7 +98,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("03_overload", |b| {
.bench_function("03_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| {
Expand All @@ -120,7 +120,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("10_overload", |b| {
.bench_function("10_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| {
Expand Down Expand Up @@ -154,14 +154,14 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("01_nested_overload", |b| {
.bench_function("01_nested_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| func.with_overload(add::<i16>),
BatchSize::SmallInput,
);
})
.bench_function("03_nested_overload", |b| {
.bench_function("03_nested_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| {
Expand All @@ -174,7 +174,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("10_nested_overload", |b| {
.bench_function("10_nested_simple_overload", |b| {
b.iter_batched(
|| add::<i8>.into_function(),
|func| {
Expand Down Expand Up @@ -203,7 +203,7 @@ fn overload(c: &mut Criterion) {
});

c.benchmark_group("call_overload")
.bench_function("01_overload", |b| {
.bench_function("01_simple_overload", |b| {
b.iter_batched(
|| {
(
Expand Down Expand Up @@ -241,7 +241,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("03_overload", |b| {
.bench_function("03_simple_overload", |b| {
b.iter_batched(
|| {
(
Expand Down Expand Up @@ -289,7 +289,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput,
);
})
.bench_function("10_overload", |b| {
.bench_function("10_simple_overload", |b| {
b.iter_batched(
|| {
(
Expand Down

0 comments on commit 0ecda65

Please sign in to comment.