Skip to content

Commit 9f04f37

Browse files
committed
Fix strings
1 parent 184f9aa commit 9f04f37

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ path = "src/main.rs"
6161
[profile.dev.package."*"]
6262
opt-level = 3
6363

64+
[profile.bench]
65+
lto = true
66+
codegen-units = 1
67+
opt-level = 3
68+
6469
[patch.crates-io]
6570
# REDOX START, Uncommment when you want to compile/check with redoxer
6671
# # following patches are just waiting on a new version to be released to crates.io
@@ -69,4 +74,3 @@ opt-level = 3
6974
# socket2 = { git = "https://github.com/alexcrichton/socket2-rs" }
7075
# REDOX END
7176

72-
[target.bench]

benches/execution.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use rustpython_vm::Interpreter;
66
const NBODY: &str = include_str!("./benchmarks/nbody.py");
77
const MANDELBROT: &str = include_str!("./benchmarks/mandelbrot.py");
88
const PYSTONE: &str = include_str!("./benchmarks/pystone.py");
9+
const STRINGS: &str = include_str!("./benchmarks/strings.py");
910

1011
fn bench_cpython(b: &mut Bencher, source: &str) {
1112
let gil = cpython::Python::acquire_gil();
@@ -59,7 +60,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
5960
benchmark_pystone(c);
6061
benchmark_file(c, "nbody.py", NBODY);
6162
benchmark_file(c, "mandlebrot.py", MANDELBROT);
62-
benchmark_file(c, "strings.py", PYSTONE);
63+
benchmark_file(c, "strings.py", STRINGS);
6364
}
6465

6566
criterion_group!(benches, criterion_benchmark);

0 commit comments

Comments
 (0)