mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
take average
This commit is contained in:
parent
7c506cbabf
commit
425cbd5d97
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue