Skip to content

Commit

Permalink
benchmarking with hyperfine
Browse files Browse the repository at this point in the history
  • Loading branch information
sportshead committed Dec 13, 2023
1 parent 93b212b commit e578be6
Show file tree
Hide file tree
Showing 15 changed files with 6,369 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/timings.json linguist-generated
8 changes: 7 additions & 1 deletion path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function today() {
idea part1.ts
idea input.txt

bun --watch run part1.ts &
if [[ "$@" != *"-s"* ]]; then
bun --watch run part1.ts &
fi
}

function part2() {
Expand All @@ -51,3 +53,7 @@ function swap() {
mv input.txt _input.txt
mv __input.txt input.txt
}

function bench() {
hyperfine -w 3 --export-json timings.json -P pt 1 2 'bun run part{pt}.ts'
}
Loading

0 comments on commit e578be6

Please sign in to comment.