From 6fdb5619052ff68face6ad06b4423776ce8bd4f2 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 5 Sep 2023 22:37:10 -0400 Subject: rename to minipng --- benches/bench.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'benches/bench.rs') diff --git a/benches/bench.rs b/benches/bench.rs index cb3f4d9..a41f600 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -8,12 +8,12 @@ fn run_benches(c: &mut Criterion) { let mut group = c.benchmark_group("large-image"); group.sample_size(50); - group.bench_function("tiny-png", |b| { + group.bench_function("minipng", |b| { b.iter(|| { let png = &large_image[..]; - let header = tiny_png::decode_png_header(png).unwrap(); + let header = minipng::decode_png_header(png).unwrap(); let mut buf = vec![0; header.required_bytes()]; - let data = tiny_png::decode_png(png, &mut buf).unwrap(); + let data = minipng::decode_png(png, &mut buf).unwrap(); std::hint::black_box(data); }) }); @@ -32,12 +32,12 @@ fn run_benches(c: &mut Criterion) { let mut group = c.benchmark_group("small-image"); group.sample_size(1000); - group.bench_function("tiny-png", |b| { + group.bench_function("minipng", |b| { b.iter(|| { let png = &small_image[..]; - let header = tiny_png::decode_png_header(png).unwrap(); + let header = minipng::decode_png_header(png).unwrap(); let mut buf = vec![0; header.required_bytes()]; - let data = tiny_png::decode_png(png, &mut buf).unwrap(); + let data = minipng::decode_png(png, &mut buf).unwrap(); std::hint::black_box(data); }) }); -- cgit v1.2.3