Skip to content

Commit 9693ad9

Browse files
committed
Replace rust-cpython with pyo3 in benchmarks
The benchmarks have been broken since Python 3.10 deprecated the API they were using to parse and execute CPython baselines. Since then rust-cpython has been deprecated in favor of pyo3. - Replace `cpython` and `python3-sys` with `pyo3`. - Add `html_report` feature to `criterion`, it will be required in a future release. - Remove `anyhow`. It was unused and cargo cleaned it up automatically.
1 parent bdf228e commit 9693ad9

File tree

2 files changed

+70
-22
lines changed

2 files changed

+70
-22
lines changed

Cargo.lock

+68-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ rustpython-format = { git = "https://github.com/RustPython/Parser.git", rev = "2
4141
# rustpython-format = { path = "../RustPython-parser/format" }
4242

4343
ahash = "0.8.3"
44-
anyhow = "1.0.45"
4544
ascii = "1.0"
4645
atty = "0.2.14"
4746
bitflags = "2.4.0"
@@ -118,9 +117,8 @@ libc = { workspace = true }
118117
rustyline = { workspace = true }
119118

120119
[dev-dependencies]
121-
cpython = "0.7.0"
122-
criterion = "0.3.5"
123-
python3-sys = "0.7.1"
120+
criterion = { version = "0.3.5", features = ["html_reports"] }
121+
pyo3 = { version = "0.20.2", features = ["auto-initialize"] }
124122

125123
[[bench]]
126124
name = "execution"

0 commit comments

Comments
 (0)