Skip to content

Commit

Permalink
fix benches
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Nov 19, 2024
1 parent 37c94aa commit 9bf932a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/jiter/benches/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use jiter::{cache_clear, PythonParse, StringCacheMode};

fn python_parse_numeric(bench: &mut Bencher) {
Python::with_gil(|py| {
cache_clear(py);
cache_clear();
bench.iter(|| {
PythonParse::default()
.python_parse(
Expand All @@ -23,7 +23,7 @@ fn python_parse_numeric(bench: &mut Bencher) {

fn python_parse_other(bench: &mut Bencher) {
Python::with_gil(|py| {
cache_clear(py);
cache_clear();
bench.iter(|| {
PythonParse::default()
.python_parse(py, br#"["string", true, false, null]"#)
Expand All @@ -39,7 +39,7 @@ fn _python_parse_file(path: &str, bench: &mut Bencher, cache_mode: StringCacheMo
let json_data = contents.as_bytes();

Python::with_gil(|py| {
cache_clear(py);
cache_clear();
bench.iter(|| {
PythonParse {
cache_mode,
Expand Down

0 comments on commit 9bf932a

Please sign in to comment.