Skip to content

Commit 95f09a4

Browse files
committed
chore: use python for bench script for comparison
1 parent 5b0323a commit 95f09a4

File tree

6 files changed

+755
-1122
lines changed

6 files changed

+755
-1122
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,13 @@ export TERMINFO=/data/data/com.termux/files/usr/share/terminfo
677677
678678
## Shell script
679679
680-
The `bench.sh` script is available to benchmark the code against other versions or fzf using `tmux` and querying the output. This is by no means a precise or foolproof way of running benchmarks, but it has the added benefit of allowing us to benchmark against `fzf` and of giving us resource metrics.
680+
The `bench.py` script is available to benchmark the code against other versions or fzf using `tmux` and querying the output. This is by no means a precise or foolproof way of running benchmarks, but it has the added benefit of allowing us to benchmark against `fzf` and of giving us resource metrics.
681681
682-
You can use it directly using `./bench.sh <binary> -n <number of items> -r <number of runs>`, or generate the data using `./bench.sh -g <output file> -n <number of items>`, then `./bench.sh <binary> -f <file> -r <number of runs>`
682+
You can use it directly using `./bench.py <binary> -n <number of items> -r <number of runs>`, or generate the data using `./bench.py -g <output file> -n <number of items>`, then `./bench.py <binary> -f <file> -r <number of runs>`
683683
684684
### Criterion benchmarks
685685
686686
Criterion benchmarks are available to measure skim's performance more precisely.
687-
To run them, you need to generate input data using `./bench.sh -g benches/fixtures/10M.txt -n 10000000 && ./bench.sh -g benches/fixtures/1M.txt -n 1000000`, then run `cargo bench -j 1`.
687+
To run them, you need to generate input data using `./bench.py -g benches/fixtures/10M.txt -n 10000000 && ./bench.py -g benches/fixtures/1M.txt -n 1000000`, then run `cargo bench -j 1`.
688688
689689
These will run for several minutes.

0 commit comments

Comments
 (0)