Skip to content

Commit 82b1c0e

Browse files
committed
hyperfine script
1 parent 5331452 commit 82b1c0e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dev/run_benchmarks.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Check if the file exists before removing it
4+
if [ -f "tmp/codeowners_benchmarks.md" ]; then
5+
rm tmp/codeowners_benchmarks.md
6+
fi
7+
8+
echo "To run these benchmarks on your application, you can place this repo next to your rails application and run bash ../codeowners-rs/dev/run_benchmarks.sh from the root of your application" >> tmp/codeowners_benchmarks.md
9+
10+
11+
hyperfine --warmup=2 --runs=3 --export-markdown tmp/codeowners_benchmarks.md \
12+
'../rubyatscale/codeowners-rs/target/release/codeowners --walk-type ignore --entry-processor-type parallel gv' \
13+
'../rubyatscale/codeowners-rs/target/release/codeowners --walk-type jwalk --entry-processor-type parallel gv' \
14+
'../rubyatscale/codeowners-rs/target/release/codeowners --walk-type ignore --entry-processor-type serial gv' \
15+
'../rubyatscale/codeowners-rs/target/release/codeowners --walk-type jwalk --entry-processor-type serial gv' \
16+
'~/Software/tmp/codeowners-rs/target/release/codeowners gv'

0 commit comments

Comments
 (0)