Browse Source

Replace `criterion::black_box` with `std::hint::black_box` (#2494)

This Pull Request replaces the `criterion::black_box` function with the recently stabilized `std::hint::black_box` intrinsic.
pull/2502/head
José Julián Espina 2 years ago
parent
commit
850a20b988
  1. 3
      boa_engine/benches/full.rs

3
boa_engine/benches/full.rs

@ -1,7 +1,8 @@
//! Benchmarks of the whole execution engine in Boa.
use boa_engine::{realm::Realm, Context};
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use criterion::{criterion_group, criterion_main, Criterion};
use std::hint::black_box;
#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))]
#[cfg_attr(

Loading…
Cancel
Save