Skip to content

Commit aa77bbe

Browse files
committed
Update criterion
1 parent b34c08a commit aa77bbe

3 files changed

Lines changed: 42 additions & 35 deletions

File tree

Cargo.lock

Lines changed: 39 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ elementsd = { version = "0.11", features = ["22_1_1"] }
8383
electrumd = { version = "0.1.0", features = ["4_5_4"] }
8484
ureq = { version = "3.1", default-features = false, features = ["json"] }
8585
tempfile = "3.10"
86-
criterion = { version = "0.4", features = ["html_reports"] }
86+
criterion = { version = "0.8", features = ["html_reports"] }
8787
bitcoin-test-data = { version = "*" }
8888

8989
[[bench]]

benches/benches.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use bitcoin::{consensus::Decodable, Block};
2-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
2+
use criterion::{criterion_group, criterion_main, Criterion};
33
use electrs::new_index::schema::bench::*;
4+
use std::hint::black_box;
45

56
fn criterion_benchmark(c: &mut Criterion) {
67
c.bench_function("add_blocks", |b| {

0 commit comments

Comments
 (0)