diff --git a/benchmark/fib.fs b/benchmark/fib.fs index 1f7bfa7..44fec91 100644 --- a/benchmark/fib.fs +++ b/benchmark/fib.fs @@ -1,2 +1,2 @@ : fib dup 2 < unless 1- dup recurse swap 1- recurse + then ; -20 fib . cr +30 fib . cr diff --git a/benchmark/gendoc.sh b/benchmark/gendoc.sh index caa7521..9c95f12 100755 --- a/benchmark/gendoc.sh +++ b/benchmark/gendoc.sh @@ -16,8 +16,8 @@ function generate-table { echo "# $1" echo "\`$2\`" echo - echo "Average of $3 execution times." - echo + #echo "Average of $3 execution times." + #echo echo "| implementation | sec |" echo "|:---------------|----:|" for impl in $TARGETS; do @@ -28,5 +28,5 @@ function generate-table { echo } -generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 3 -generate-table "Fib(20)" "./planck < bootstrap.fs benchmark/fib.fs" 3 +generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 1 +generate-table "Fib(30)" "./planck < bootstrap.fs benchmark/fib.fs" 1