mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Change benchmark program from fib(20) to fib(30)
This commit is contained in:
parent
c7fd547560
commit
c0eb611568
2 changed files with 5 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
||||||
: fib dup 2 < unless 1- dup recurse swap 1- recurse + then ;
|
: fib dup 2 < unless 1- dup recurse swap 1- recurse + then ;
|
||||||
20 fib . cr
|
30 fib . cr
|
||||||
|
|
|
@ -16,8 +16,8 @@ function generate-table {
|
||||||
echo "# $1"
|
echo "# $1"
|
||||||
echo "\`$2\`"
|
echo "\`$2\`"
|
||||||
echo
|
echo
|
||||||
echo "Average of $3 execution times."
|
#echo "Average of $3 execution times."
|
||||||
echo
|
#echo
|
||||||
echo "| implementation | sec |"
|
echo "| implementation | sec |"
|
||||||
echo "|:---------------|----:|"
|
echo "|:---------------|----:|"
|
||||||
for impl in $TARGETS; do
|
for impl in $TARGETS; do
|
||||||
|
@ -28,5 +28,5 @@ function generate-table {
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 3
|
generate-table "Bootstrap Time" "./planck < bootstrap.fs benchmark/nop.fs" 1
|
||||||
generate-table "Fib(20)" "./planck < bootstrap.fs benchmark/fib.fs" 3
|
generate-table "Fib(30)" "./planck < bootstrap.fs benchmark/fib.fs" 1
|
||||||
|
|
Loading…
Reference in a new issue