Skip to content

Commit d96712b

Browse files
author
Jack O'Connor
committed
Mention how to run a specific benchmark
1 parent 6e5f044 commit d96712b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

benches/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ These are some files to determine performance of rustpython.
77
Running `cargo bench` from the root of the repository will start the benchmarks. Once done there will be a graphical
88
report under `target/criterion/report/index.html` that you can use use to view the results.
99

10-
To view Python tracebacks during benchmarks, run `RUST_BACKTRACE=1 cargo bench`. You can also bench against a
10+
`cargo bench` supports name matching to run a subset of the benchmarks. To
11+
run only the sort microbenchmark, you can run:
12+
13+
```shell
14+
cargo bench sort
15+
```
16+
17+
To view Python tracebacks during benchmarks, run `RUST_BACKTRACE=1 cargo bench`. You can also bench against a
1118
specific installed Python version by running:
1219

1320
```shell

0 commit comments

Comments
 (0)