From 886a9f37cec866afbbc7427db4ea5f4559e4342d Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Sun, 27 Jun 2021 14:25:29 -0400 Subject: [PATCH] Fix benches Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com> --- benches/read_from_extension.rs | 8 ++++---- benches/read_from_signature.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/benches/read_from_extension.rs b/benches/read_from_extension.rs index 2a120f8b..88fc2eaa 100644 --- a/benches/read_from_extension.rs +++ b/benches/read_from_extension.rs @@ -13,9 +13,9 @@ test_read!(read_ape, "tests/assets/a.ape"); test_read!(read_flac, "tests/assets/a.flac"); test_read!(read_m4a, "tests/assets/a.m4a"); test_read!(read_mp3, "tests/assets/a.mp3"); -// test_read!(read_ogg, "tests/assets/a.ogg"); +test_read!(read_vorbis, "tests/assets/a.ogg"); test_read!(read_opus, "tests/assets/a.opus"); -test_read!(read_wav, "tests/assets/a-id3.wav"); +test_read!(read_riff, "tests/assets/a-id3.wav"); fn bench_ext(c: &mut Criterion) { let mut g = c.benchmark_group("From extension"); @@ -23,9 +23,9 @@ fn bench_ext(c: &mut Criterion) { g.bench_function("FLAC", |b| b.iter(read_flac)); g.bench_function("MP4", |b| b.iter(read_m4a)); g.bench_function("MP3", |b| b.iter(read_mp3)); - // g.bench_function("OGG", |b| b.iter(read_ogg)); + g.bench_function("VORBIS", |b| b.iter(read_vorbis)); g.bench_function("OPUS", |b| b.iter(read_opus)); - g.bench_function("WAV", |b| b.iter(read_wav)); + g.bench_function("RIFF", |b| b.iter(read_riff)); } criterion_group!(benches, bench_ext); diff --git a/benches/read_from_signature.rs b/benches/read_from_signature.rs index 57e57776..9b012ce0 100644 --- a/benches/read_from_signature.rs +++ b/benches/read_from_signature.rs @@ -13,9 +13,9 @@ test_read!(read_ape, "tests/assets/a.ape"); test_read!(read_flac, "tests/assets/a.flac"); test_read!(read_m4a, "tests/assets/a.m4a"); test_read!(read_mp3, "tests/assets/a.mp3"); -// test_read!(read_ogg, "tests/assets/a.ogg"); +test_read!(read_vorbis, "tests/assets/a.ogg"); test_read!(read_opus, "tests/assets/a.opus"); -test_read!(read_wav, "tests/assets/a.wav"); +test_read!(read_riff, "tests/assets/a.wav"); fn bench_sig(c: &mut Criterion) { let mut g = c.benchmark_group("From signature"); @@ -23,9 +23,9 @@ fn bench_sig(c: &mut Criterion) { g.bench_function("FLAC", |b| b.iter(read_flac)); g.bench_function("MP4", |b| b.iter(read_m4a)); g.bench_function("MP3", |b| b.iter(read_mp3)); - // g.bench_function("OGG", |b| b.iter(read_ogg)); + g.bench_function("VORBIS", |b| b.iter(read_vorbis)); g.bench_function("OPUS", |b| b.iter(read_opus)); - g.bench_function("WAV", |b| b.iter(read_wav)); + g.bench_function("RIFF", |b| b.iter(read_riff)); } criterion_group!(benches, bench_sig);