Skip to content

Commit 9b35219

Browse files
committed
Update bench.rs to use vm.compile()
1 parent 8b0089e commit 9b35219

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn bench_rustpy_nbody(b: &mut test::Bencher) {
9393

9494
let vm = VirtualMachine::new();
9595

96-
let code = match compile::compile(&vm, source, &compile::Mode::Single, "<stdin>".to_string()) {
96+
let code = match vm.compile(source, &compile::Mode::Single, "<stdin>".to_string()) {
9797
Ok(code) => code,
9898
Err(e) => panic!("{:?}", e),
9999
};
@@ -112,7 +112,7 @@ fn bench_rustpy_mandelbrot(b: &mut test::Bencher) {
112112

113113
let vm = VirtualMachine::new();
114114

115-
let code = match compile::compile(&vm, source, &compile::Mode::Single, "<stdin>".to_string()) {
115+
let code = match vm.compile(source, &compile::Mode::Single, "<stdin>".to_string()) {
116116
Ok(code) => code,
117117
Err(e) => panic!("{:?}", e),
118118
};

0 commit comments

Comments
 (0)