Changed benchmark names

Added the `simple_` qualifier
This commit is contained in:
Gino Valente 2024-09-06 17:35:43 -07:00
parent 0eb2398a26
commit 45803de41b

View file

@ -99,7 +99,7 @@ fn overload(c: &mut Criterion) {
} }
c.benchmark_group("with_overload") c.benchmark_group("with_overload")
.bench_function("01_overload", |b| { .bench_function("01_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| func.with_overload(add::<i16>), |func| func.with_overload(add::<i16>),
@ -115,7 +115,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("03_overload", |b| { .bench_function("03_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| { |func| {
@ -137,7 +137,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("10_overload", |b| { .bench_function("10_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| { |func| {
@ -171,14 +171,14 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("01_nested_overload", |b| { .bench_function("01_nested_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| func.with_overload(add::<i16>), |func| func.with_overload(add::<i16>),
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("03_nested_overload", |b| { .bench_function("03_nested_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| { |func| {
@ -191,7 +191,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("10_nested_overload", |b| { .bench_function("10_nested_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| add::<i8>.into_function(), || add::<i8>.into_function(),
|func| { |func| {
@ -220,7 +220,7 @@ fn overload(c: &mut Criterion) {
}); });
c.benchmark_group("call_overload") c.benchmark_group("call_overload")
.bench_function("01_overload", |b| { .bench_function("01_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| { || {
( (
@ -258,7 +258,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("03_overload", |b| { .bench_function("03_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| { || {
( (
@ -306,7 +306,7 @@ fn overload(c: &mut Criterion) {
BatchSize::SmallInput, BatchSize::SmallInput,
); );
}) })
.bench_function("10_overload", |b| { .bench_function("10_simple_overload", |b| {
b.iter_batched( b.iter_batched(
|| { || {
( (