Skip to content

Commit

Permalink
Pass benchmark dir name in justfile recipe (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Sep 8, 2022
1 parent 45e2115 commit d9ff342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions bin/benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

set -euxo pipefail

dir=${1:-`git branch --show-current`}
mkdir $dir
cd $dir
mkdir $1
cd $1

sudo \
CARGO_PROFILE_RELEASE_DEBUG=true \
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ graph:
flamegraph:
CARGO_PROFILE_RELEASE_DEBUG=true sudo cargo flamegraph -- index

benchmark dir="":
./bin/benchmark {{dir}}
benchmark dir=`git branch --show-current`:
./bin/benchmark '{{dir}}'

0 comments on commit d9ff342

Please sign in to comment.