From c0eaf8a92123cb0fd522cf5250c9497963f37a90 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 24 Apr 2020 16:20:03 +0800 Subject: [PATCH] Fix benchmarks. --- benches/engine.rs | 2 +- benches/primes.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 = [];