diff --git a/benches/engine.rs b/benches/engine.rs index 1b04cd26..254288de 100644 --- a/benches/engine.rs +++ b/benches/engine.rs @@ -34,7 +34,7 @@ fn bench_engine_register_fn(bench: &mut Bencher) { } bench.iter(|| { - let mut engine = Engine::new(); + let mut engine = Engine::new_raw(); engine.register_fn("hello", hello); }); } diff --git a/benches/primes.rs b/benches/primes.rs index 7fe3451d..1b1b022b 100644 --- a/benches/primes.rs +++ b/benches/primes.rs @@ -9,8 +9,6 @@ use test::Bencher; // This script uses the Sieve of Eratosthenes to calculate prime numbers. const SCRIPT: &str = r#" -let now = timestamp(); - const MAX_NUMBER_TO_CHECK = 1_000; // 168 primes <= 1000 let prime_mask = [];