ref: 95e6f8be0c1c450fc3800b6dd57e7d63212ea42c
dir: /test/perf_test/
#/bin/sh > time.log for p in $* do echo "testing $p" printf "$p " | sed "s/^p\/p_//" >> time.log /usr/bin/time -p ./$p 2>&1 | grep real | sed -E 's/[[:space:]]+/ /' | cut -d ' ' -f 2 >> time.log done