Skip to content

Commit e6948af

Browse files
chore(deps): bump criterion from 0.5.1 to 0.8.2 (#1374)
* chore(deps): bump criterion from 0.5.1 to 0.8.2 Bumps [criterion](https://github.com/criterion-rs/criterion.rs) from 0.5.1 to 0.8.2. - [Release notes](https://github.com/criterion-rs/criterion.rs/releases) - [Changelog](https://github.com/criterion-rs/criterion.rs/blob/master/CHANGELOG.md) - [Commits](criterion-rs/criterion.rs@0.5.1...criterion-v0.8.2) --- updated-dependencies: - dependency-name: criterion dependency-version: 0.8.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: replace deprecated criterion::black_box with std::hint::black_box --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Tretyakov <42178850+0xAndoroid@users.noreply.github.com>
1 parent 3032d80 commit e6948af

4 files changed

Lines changed: 42 additions & 23 deletions

File tree

Cargo.lock

Lines changed: 36 additions & 18 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
@@ -245,7 +245,7 @@ hex = "0.4.3"
245245
spinners = { version = "4.2.0", default-features = false }
246246

247247
# Testing
248-
criterion = { version = "0.5.1", features = ["html_reports"] }
248+
criterion = { version = "0.8.2", features = ["html_reports"] }
249249
iai-callgrind = "0.16.1"
250250
serial_test = "3.4.0"
251251

jolt-core/benches/binding.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn benchmark_dense<F: JoltField>(c: &mut Criterion, num_vars: usize) {
3939
|(mut poly, r)| {
4040
for r_i in r.iter() {
4141
poly.bound_poly_var_top(r_i);
42-
criterion::black_box(());
42+
std::hint::black_box(());
4343
}
4444
},
4545
);
@@ -102,7 +102,7 @@ fn benchmark_compact<F: JoltField>(
102102
|(mut poly, r)| {
103103
r.into_iter().for_each(|r_i| {
104104
poly.bind_parallel(r_i, binding_order);
105-
criterion::black_box(());
105+
std::hint::black_box(());
106106
});
107107
},
108108
);
@@ -132,7 +132,7 @@ fn benchmark_dense_parallel<F: JoltField>(
132132
|(mut poly, r)| {
133133
for r_i in r {
134134
poly.bind_parallel(r_i, binding_order);
135-
criterion::black_box(());
135+
std::hint::black_box(());
136136
}
137137
},
138138
);

jolt-core/benches/polynomial_evaluation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
//! 2. Batch evaluation of multiple polynomials at the same point
88
use ark_ff::Zero;
99
use ark_std::rand::{rngs::StdRng, Rng, SeedableRng};
10-
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
10+
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
1111
use jolt_core::{field::tracked_ark::TrackedFr as Fr, poly::dense_mlpoly::DensePolynomial};
1212
use jolt_core::{field::JoltField, poly::multilinear_polynomial::PolynomialEvaluation};
1313
use jolt_core::{poly::eq_poly::EqPolynomial, utils::math::Math};
1414
use rayon::prelude::*;
15+
use std::hint::black_box;
1516

1617
/// Generate a sparse multilinear polynomial with controlled sparsity
1718
///

0 commit comments

Comments
 (0)