Object Instantiation 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

N is the number of iterations of the main object instantiation loop.


Measurement of CPU as N varies
  N
Test Source 100000 400000 700000 1000000
bigforth 0.01 0.01 0.01 0.01
gforth 0.03 0.03 0.04 0.04
mercury 0.04 0.10 0.15 0.20
pliant 0.21 0.22 0.25 0.26
gnat 0.03 0.11 0.19 0.26
csharp 0.12 0.18 0.24 0.29
se 0.04 0.16 0.28 0.40
ocaml 0.07 0.24 0.42 0.60
poplisp 0.14 0.33 0.52 0.70
java 0.52 0.60 0.69 0.77
bcc 0.09 0.31 0.55 0.78
nice 0.59 0.68 0.78 0.87
smlnj 0.13 0.41 0.69 0.98
vc 0.10 0.42 0.72 1.04
lcc 0.13 0.49 0.87 1.23
mingw32 0.14 0.55 0.95 1.36
gcc 0.18 0.65 1.13 1.59
delphi 0.26 1.02 1.77 2.52
oz 0.53 1.74 2.95 4.18
ocamlb 0.71 2.80 4.90 6.98
pike 1.21 4.64 8.04 11.46
lua5 1.40 5.54 9.70 13.85
ici 1.75 6.96 12.08 17.24
python 1.97 7.32 12.64 17.97
lua 2.25 9.04 15.86 22.66
guile 3.92 14.63 25.35 36.08
ruby 4.28 17.77 30.82 44.52
cygperl 5.55 22.08 38.58 55.08
perl 8.14 32.88 57.23 81.92
vbscript 10.81 42.74 74.63 106.63
Measurement of Memory as N varies
  N
Test Source 100000 400000 700000 1000000
bigforth 912 912 912 912
gforth 1484 1484 1484 1484
mercury 1796 1796 1796 1796
pliant 3216 3216 3216 3216
gnat 744 744 744 744
csharp 3468 3468 3468 3468
se 876 876 876 876
ocaml 832 832 832 832
poplisp 4464 4484 4484 4484
java 5084 5084 5084 5084
bcc 560 560 560 560
nice 5308 5308 5308 5308
smlnj 936 936 936 936
vc 464 464 464 464
lcc 504 504 504 504
mingw32 516 516 516 516
gcc 1492 1492 1492 1492
delphi 884 884 884 884
oz 648 648 648 648
ocamlb 380 380 380 380
pike 3428 3428 3428 3428
lua5 656 656 656 656
ici 1120 1120 1120 1120
python 2372 2372 2372 2372
lua 844 844 844 844
guile 2732 2732 2732 2732
ruby 2940 2940 2940 2940
cygperl 2400 2400 2400 2400
perl 1504 1504 1504 1504
vbscript 2312 2312 2312 2312

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
bigforth 0.01 912 43 log
gnat 0.03 744 0 log
gforth 0.03 1484 53 log
se 0.04 876 38 log
mercury 0.04 1796 63 log
ocaml 0.07 832 25 log
bcc 0.09 560 76 log
vc 0.10 464 76 log
csharp 0.12 3468 53 log
smlnj 0.13 936 85 log
lcc 0.13 504 76 log
mingw32 0.14 516 76 log
poplisp 0.14 4464 37 log
gcc 0.18 1492 76 log
pliant 0.21 3216 69 log
delphi 0.26 884 77 log
java 0.52 5084 53 log
oz 0.53 648 57 log
nice 0.59 5308 0 log
ocamlb 0.71 380 25 log
pike 1.21 3428 50 log
lua5 1.40 656 56 log
ici 1.75 1120 48 log
python 1.97 2372 42 log
lua 2.25 844 60 log
guile 3.92 2732 32 log
ruby 4.28 2940 48 log
cygperl 5.55 2400 52 log
perl 8.14 1504 52 log
vbscript 10.81 2312 71 log


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