Skip to content

Commit d37944e

Browse files
committed
.
1 parent b63519a commit d37944e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

benchmarks/bench.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn bench_cpython_parse_to_ast(b: &mut test::Bencher) {
5050
b.bytes = source.len() as _;
5151
b.iter(|| {
5252
let res: cpython::PyResult<cpython::PyObject> = python.eval(code, globals, Some(&locals));
53-
assert_eq!(res.is_ok(), true);
53+
assert!(res.is_ok());
5454
})
5555
}
5656

@@ -66,7 +66,7 @@ fn bench_cpython_nbody(b: &mut test::Bencher) {
6666

6767
b.iter(|| {
6868
let res: cpython::PyResult<()> = python.run(source, globals, locals);
69-
assert_eq!(res.is_ok(), true);
69+
assert!(res.is_ok());
7070
})
7171
}
7272

@@ -82,7 +82,7 @@ fn bench_cpython_mandelbrot(b: &mut test::Bencher) {
8282

8383
b.iter(|| {
8484
let res: cpython::PyResult<()> = python.run(source, globals, locals);
85-
assert_eq!(res.is_ok(), true);
85+
assert!(res.is_ok());
8686
})
8787
}
8888

@@ -101,7 +101,7 @@ fn bench_rustpy_nbody(b: &mut test::Bencher) {
101101
b.iter(|| {
102102
let scope = vm.ctx.new_scope();
103103
let res: PyResult = vm.run_code_obj(code.clone(), scope);
104-
assert_eq!(res.is_ok(), true);
104+
assert!(res.is_ok());
105105
})
106106
}
107107

@@ -120,6 +120,6 @@ fn bench_rustpy_mandelbrot(b: &mut test::Bencher) {
120120
b.iter(|| {
121121
let scope = vm.ctx.new_scope();
122122
let res: PyResult = vm.run_code_obj(code.clone(), scope);
123-
assert_eq!(res.is_ok(), true);
123+
assert!(res.is_ok());
124124
})
125125
}

0 commit comments

Comments
 (0)