18 lines
No EOL
551 B
Bash
18 lines
No EOL
551 B
Bash
#!/usr/bin/env sh
|
|
file_dirname="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
owa_cmd="./target/release/owa-rs"
|
|
|
|
for i in $(seq 1 1); do
|
|
python_file="${file_dirname}/case${i}/main.py"
|
|
owa_file="${file_dirname}/case${i}/main.owa"
|
|
no_owu_file="${file_dirname}/case${i}/no_owu.owa"
|
|
echo "Running case #${i}"
|
|
hyperfine \
|
|
--warmup 5 \
|
|
--min-runs 50 \
|
|
--show-output \
|
|
--export-markdown "${file_dirname}/case${i}/result.md" \
|
|
"python3 $python_file" \
|
|
"$owa_cmd run $owa_file" \
|
|
"$owa_cmd --no-owu $no_owu_file"
|
|
done |