From c0eb611568c962a6b5520dd0ffc3da44311e9d5b Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 11 Jan 2021 18:29:15 +0900 Subject: [PATCH] Change benchmark program from fib(20) to fib(30) --- benchmark/fib.fs | 2 +- benchmark/gendoc.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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