Fix benchmark.
This commit is contained in:
parent
fbfea60903
commit
e8c0adb90d
@ -3,7 +3,7 @@
|
|||||||
///! Test evaluating expressions
|
///! Test evaluating expressions
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
||||||
use rhai::{Array, CorePackage, Engine, Map, Package, RegisterFn, INT};
|
use rhai::{Array, Engine, Map, RegisterFn, INT};
|
||||||
use test::Bencher;
|
use test::Bencher;
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
@ -18,6 +18,7 @@ fn bench_engine_new_raw(bench: &mut Bencher) {
|
|||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
fn bench_engine_new_raw_core(bench: &mut Bencher) {
|
fn bench_engine_new_raw_core(bench: &mut Bencher) {
|
||||||
|
use rhai::packages::*;
|
||||||
let package = CorePackage::new();
|
let package = CorePackage::new();
|
||||||
|
|
||||||
bench.iter(|| {
|
bench.iter(|| {
|
||||||
|
Loading…
Reference in New Issue
Block a user