Skip to content

Commit

Permalink
nit: s/command/fork/
Browse files Browse the repository at this point in the history
  • Loading branch information
hundredwatt committed Jan 7, 2024
1 parent 1e16527 commit 363803b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluate2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ hyperfine $HYPERFINE_OPTS "${forks[@]}"
# The slowest and the fastest runs are discarded
# The mean value of the remaining three runs is the result for that contender
echo ""
echo "command,trimmed_mean"
echo "fork,trimmed_mean"
jq -r '.results[] | [ .command, ((.times | sort) | .[1:-1] | add / length) ] | join(",")' $TEMP_FILE \
| perl -pe 's/^[.]\/calculate_average_(\w+).*,/$1,/'

# Output the raw times for each command
echo ""
echo "command,raw_times"
echo "fork,raw_times"
jq -r '.results[] | [.command, (.times | join(","))] | join(",")' $TEMP_FILE \
| perl -pe 's/^[.]\/calculate_average_(\w+).*?,/$1,/'

Expand Down

0 comments on commit 363803b

Please sign in to comment.