|
|
|
From e923d5f45668e4dd8b8bc3109f4e1b664a386053 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?=
|
|
|
|
<30413512+eclipseo@users.noreply.github.com>
|
|
|
|
Date: Fri, 13 Sep 2019 18:13:37 +0200
|
|
|
|
Subject: [PATCH] Bump criterion to 0.3
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
|
|
|
|
---
|
|
|
|
benches/benchmarks.rs | 4 ++--
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs
|
|
|
|
index e6ae3d2..475dfdb 100644
|
|
|
|
--- a/benches/benchmarks.rs
|
|
|
|
+++ b/benches/benchmarks.rs
|
|
|
|
@@ -124,7 +124,7 @@ fn encode_benchmarks(byte_sizes: &[usize]) -> ParameterizedBenchmark<usize> {
|
|
|
|
ParameterizedBenchmark::new("encode", do_encode_bench, byte_sizes.iter().cloned())
|
|
|
|
.warm_up_time(std::time::Duration::from_millis(500))
|
|
|
|
.measurement_time(std::time::Duration::from_secs(3))
|
|
|
|
- .throughput(|s| Throughput::Bytes(*s as u32))
|
|
|
|
+ .throughput(|s| Throughput::Bytes(*s as u64))
|
|
|
|
.with_function("encode_display", do_encode_bench_display)
|
|
|
|
.with_function("encode_reuse_buf", do_encode_bench_reuse_buf)
|
|
|
|
.with_function("encode_slice", do_encode_bench_slice)
|
|
|
|
@@ -135,7 +135,7 @@ fn decode_benchmarks(byte_sizes: &[usize]) -> ParameterizedBenchmark<usize> {
|
|
|
|
ParameterizedBenchmark::new("decode", do_decode_bench, byte_sizes.iter().cloned())
|
|
|
|
.warm_up_time(std::time::Duration::from_millis(500))
|
|
|
|
.measurement_time(std::time::Duration::from_secs(3))
|
|
|
|
- .throughput(|s| Throughput::Bytes(*s as u32))
|
|
|
|
+ .throughput(|s| Throughput::Bytes(*s as u64))
|
|
|
|
.with_function("decode_reuse_buf", do_decode_bench_reuse_buf)
|
|
|
|
.with_function("decode_slice", do_decode_bench_slice)
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|