diff options
author | mhsn <mail@mhsn.net> | 2025-03-19 22:57:16 +0000 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2025-03-19 22:57:16 +0000 |
commit | 02a535f4f6d4dea152107f61f5dc32b4118138c9 (patch) | |
tree | 3d05792240c73bc2620769cb64b9ea969234a83b | |
parent | 57e3b1f2d31c7f7d3ea81be3beebe8b47358374a (diff) | |
download | aoc-02a535f4f6d4dea152107f61f5dc32b4118138c9.tar.gz aoc-02a535f4f6d4dea152107f61f5dc32b4118138c9.zip |
update bench to use yash
-rwxr-xr-x | bench | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,10 +1,10 @@ -#!/usr/bin/env zsh +#!/usr/bin/env yash year=$1 day=$2 lang=$3 input=$4 -warmups=${5:=0} +warmups=${5:-0} script=$(readlink -f "$0") script_path=$(dirname "$script") @@ -14,7 +14,7 @@ data_path="$aoc_path/data/$4.txt" # Check it is correct $script_path/check $1 $2 $3 $4 > /dev/null -[[ ! $? ]] && echo "Incorrect solution" && exit 1 +[ ! $? ] && echo "Incorrect solution" && exit 1 if [[ $lang == "python" ]]; then @@ -28,4 +28,4 @@ else exit 1 fi -hyperfine --shell=none --warmup=$warmups --input=$data_path $exec +hyperfine --shell=none --warmup=$warmups --input=$data_path "$exec" |