Skip to content

Commit

Permalink
Merge pull request #117 from eclipseo/patch-1
Browse files Browse the repository at this point in the history
Bump criterion to 0.3
  • Loading branch information
marshallpierce committed Sep 19, 2019
2 parents 9ae0292 + e923d5f commit 07b1d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -16,7 +16,7 @@ name = "benchmarks"
harness = false

[dev-dependencies]
criterion = "0.2"
criterion = "0.3"
rand = "0.6.1"
doc-comment = "0.3"

Expand Down
4 changes: 2 additions & 2 deletions benches/benchmarks.rs
Expand Up @@ -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)
Expand All @@ -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)
}
Expand Down

0 comments on commit 07b1d6b

Please sign in to comment.