diff options
author | pommicket <pommicket@gmail.com> | 2023-09-05 22:37:10 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-05 22:37:10 -0400 |
commit | 6fdb5619052ff68face6ad06b4423776ce8bd4f2 (patch) | |
tree | 68d65c8354cfcb71276b6cc36a7f26449efcf75f /benches | |
parent | d990a922652d5adaab61ea8b8c461f624b53dc84 (diff) |
rename to minipng0.1.0
Diffstat (limited to 'benches')
-rw-r--r-- | benches/bench.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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); }) }); |