Skip to content

Commit

Permalink
remove case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Dec 22, 2023
1 parent fae16ca commit fae17e1
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@ measure what:
just build {{what}}

case "{{what}}" in
(
*"cobol"*
| *"haskell"*
| *"julia"*
| *"perl"*
| *"php"*
| *"prolog"*
| *"python"*
| *"ruby"*
| *"smalltalk"*
| *"tcl"*
)
args="--runs 1"
;;
(*)
args="--warmup 3"
;;
esac
slow_langs=(
cobol
haskell
julia
perl
php
prolog
python
ruby
smalltalk
tcl
)

args="--warmup 3"
for language in "${slow_langs[@]}"; do
if [[ "{{what}}" == *"$language"* ]]; then
args="--runs 1"
break
fi
done

out="{{what}}.json"

Expand Down

0 comments on commit fae17e1

Please sign in to comment.