take average

This commit is contained in:
Koichi Nakamura 2021-01-11 17:44:01 +09:00
parent 7c506cbabf
commit 425cbd5d97

View file

@ -15,6 +15,7 @@ function benchmark () {
function generate-table {
echo "## $1"
echo "\`$2\`"
echo "Average of $3 execution times."
echo
echo "| implementation | sec |"
echo "|:---------------|----:|"
@ -27,5 +28,5 @@ function generate-table {
}
echo "# Benchmarks"
generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 1
generate-table "Fib(20)" "./planck < bootstrap.fs benchmark/fib.fs" 1
generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 3
generate-table "Fib(20)" "./planck < bootstrap.fs benchmark/fib.fs" 3