Update benchmark document

This commit is contained in:
Koichi Nakamura 2021-01-11 19:31:08 +09:00
parent ce42acec23
commit b601dc9a7b

View file

@ -18,12 +18,13 @@ function generate-table {
echo echo
#echo "Average of $3 execution times." #echo "Average of $3 execution times."
#echo #echo
echo "| implementation | sec |" echo "| runtime implementation | execution time (sec) |"
echo "|:---------------|----:|" echo "|:-----------------------|---------------------:|"
for impl in $TARGETS; do for impl in $TARGETS; do
make $impl 2>&1 > /dev/null make $impl 2>&1 > /dev/null
runtime=`./planck < bootstrap.fs --runtime`
t=`benchmark "time $2 2>&1 > /dev/null" $3` t=`benchmark "time $2 2>&1 > /dev/null" $3`
echo "| $impl | $t |" echo "| $runtime | $t |"
done done
echo echo
} }