Fibonacci Numbers Back to the Win32 Shootout
Back to dada's perl lab

[The Original Shootout]   [NEWS]   [FAQ]   [Methodology]   [Platform Details]   [Acknowledgements]   [Scorecard]  

Measurements while N varies

The test parameter N is the input to the Fibonacci function.


Measurement of CPU as N varies
  N
Test Source 8 24 32
ocaml 0.01 0.01 0.15
delphi 0.01 0.01 0.18
vc 0.01 0.01 0.19
vc++ 0.01 0.01 0.19
mercury 0.03 0.03 0.22
gcc 0.03 0.03 0.22
fpascal 0.01 0.01 0.23
mingw32 0.01 0.01 0.24
bigforth 0.01 0.02 0.25
bcc 0.01 0.01 0.26
pliant 0.07 0.07 0.26
lcc 0.01 0.01 0.27
modula2 0.01 0.01 0.27
se 0.01 0.01 0.30
csharp 0.10 0.10 0.30
modula3 0.02 0.02 0.30
gnat 0.01 0.01 0.30
ghc 0.01 0.02 0.34
java 0.45 0.44 0.63
nice 0.51 0.52 0.70
smlnj 0.03 0.05 0.71
vpascal 0.01 0.02 0.72
poplisp 0.06 0.09 1.33
gforth 0.03 0.06 1.38
ocamlb 0.01 0.06 2.21
erlang 0.47 0.51 2.33
oz 0.15 0.22 3.52
parrot 0.01 0.12 5.56
awka 0.03 0.15 5.62
lua5 0.01 0.13 5.66
lua 0.01 0.12 5.72
mawk 0.03 0.16 6.28
pike 0.09 0.23 6.58
slang 0.03 0.27 10.83
cim 0.03 0.26 11.10
elastic 0.04 0.32 13.38
ici 0.03 0.32 13.85
python 0.18 0.48 13.87
icon 0.01 0.31 14.24
guile 0.12 0.47 16.67
perl 0.03 0.47 20.84
cygperl 0.05 0.49 21.19
gawk 0.04 0.61 26.81
ruby 0.08 0.73 30.63
tcl 0.04 0.74 33.20
jscript 0.15 1.01 40.71
php 0.05 1.14 49.84
vbscript 0.15 1.24 51.61
rexx 0.01 2.19 102.92
rebol F F F
Measurement of Memory as N varies
  N
Test Source 8 24 32
ocaml 652 652 652
delphi 588 588 588
vc 464 464 464
vc++ 512 512 512
mercury 1736 1736 1736
gcc 1508 1508 1508
fpascal 524 524 524
mingw32 508 508 508
bigforth 912 912 912
bcc 568 568 568
pliant 3216 3216 3216
lcc 504 504 504
modula2 636 636 636
se 548 548 548
csharp 3268 3272 3268
modula3 860 864 864
gnat 740 740 740
ghc 1156 1148 1148
java 4564 4568 4568
nice 4908 4912 4912
smlnj 936 936 936
vpascal 560 560 560
poplisp 3220 3220 3220
gforth 1488 1488 1488
ocamlb 380 380 380
erlang 5228 5280 5276
oz 652 652 652
parrot 1064 1064 1064
awka 1648 1772 1832
lua5 608 608 612
lua 592 592 592
mawk 1596 1596 1596
pike 3408 3408 3408
slang 1812 1812 1812
cim 2048 2060 2060
elastic 1960 1960 1960
ici 1100 1128 1128
python 2368 2376 2376
icon 592 596 596
guile 2476 2476 2476
perl 1484 1488 1492
cygperl 2376 2376 2380
gawk 2036 2036 2052
ruby 1872 1932 1960
tcl 1500 1540 1560
jscript 2212 2252 2268
php 2836 2864 2884
vbscript 2300 2328 2344
rexx 1036 1068 1080
rebol F F F

The following graph is similar to the graph on the index page, but here, N is much smaller, and startup costs may be more prominent.





[Note: Values have been normalized to fall in the range of 0-10 for aesthetic reasons. Original value ranges are included on the X-axis.
Source Code CPU (sec) Mem (KB) Lines Code Log
icon 0.01 592 8 log
bigforth 0.01 912 14 log
ocamlb 0.01 380 8 log
vc++ 0.01 512 14 log
rexx 0.01 1036 12 log
ocaml 0.01 652 8 log
lcc 0.01 504 15 log
delphi 0.01 588 13 log
parrot 0.01 1064 33 log
ghc 0.01 1156 13 log
lua 0.01 592 6 log
gnat 0.01 740 0 log
se 0.01 548 25 log
fpascal 0.01 524 19 log
vc 0.01 464 15 log
bcc 0.01 568 15 log
modula2 0.01 636 0 log
lua5 0.01 608 6 log
mingw32 0.01 508 15 log
vpascal 0.01 560 17 log
modula3 0.02 860 20 log
ici 0.03 1100 6 log
mercury 0.03 1736 30 log
smlnj 0.03 936 19 log
slang 0.03 1812 8 log
awka 0.03 1648 9 log
mawk 0.03 1596 9 log
cim 0.03 2048 19 log
perl 0.03 1484 8 log
gforth 0.03 1488 14 log
gcc 0.03 1508 15 log
gawk 0.04 2036 9 log
elastic 0.04 1960 16 log
tcl 0.04 1500 10 log
cygperl 0.05 2376 8 log
php 0.05 2836 8 log
poplisp 0.06 3220 6 log
pliant 0.07 3216 12 log
ruby 0.08 1872 9 log
pike 0.09 3408 10 log
csharp 0.10 3268 15 log
guile 0.12 2476 7 log
jscript 0.15 2212 13 log
vbscript 0.15 2300 11 log
oz 0.15 652 16 log
python 0.18 2368 9 log
java 0.45 4564 10 log
erlang 0.47 5228 9 log
nice 0.51 4908 0 log
rebol F F 7 log


Back to the Win32 Shootout
Back to dada's perl lab
Send comments or suggestions to dada@perl.it