Skip to content

Commit

Permalink
benchmarks: c & p error
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Sep 11, 2023
1 parent fadb6db commit b4e0793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/benchmark-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ done
idx=0
# Now, run hyperfine with commands_with_index and export to with_index_results.json
for command_with_index in "${commands_with_index[@]}"; do
echo results/"$now"-"$version"-idx-"$command_with_index"
file_name=$(echo "${commands_name[$idx]}" | sed 's/ /_/g')
echo "$command_with_index"
file_name=results/"$now"-"$version"-idx-$(echo "${commands_name[$idx]}" | sed 's/ /_/g')
hyperfine --warmup 2 -i --export-json "$file_name".json \
--export-csv "$file_name".csv --time-unit millisecond "$command_with_index"
((idx++))
Expand Down

0 comments on commit b4e0793

Please sign in to comment.