#!/bin/bash bench="$1" against="$2" TIMEFORMAT='%3R' for i in {1..8}; do time "$bench" "$against" done 2>&1 >/dev/null | awk 'BEGIN{m=999;printf " …\033[90m"} {a+=$1;n++;m=$1