Hashes, Part II 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 number of times the first hash is added into the second hash.


Measurement of CPU as N varies
  N
Test Source 10 50 100 150
delphi 0.21 0.57 1.04 1.50
bcc 0.16 0.56 1.07 1.57
gcc 0.21 0.60 1.09 1.58
ocaml 0.19 0.60 1.12 1.64
mingw32 0.22 0.72 1.34 1.97
vc 0.20 0.74 1.41 2.08
nice 0.95 1.44 2.04 2.65
lua 0.40 1.05 1.88 2.71
java 0.91 1.47 2.17 2.88
lcc 0.30 1.13 2.16 3.19
lua5 0.49 1.32 2.34 3.37
oz 0.63 1.55 2.70 3.87
awka 0.47 1.75 3.35 4.95
pike 0.52 1.84 3.50 5.15
ocamlb 0.50 1.92 3.70 5.48
csharp 0.56 2.05 3.89 5.69
python 0.90 2.50 4.53 6.52
erlang 1.16 2.70 4.62 6.53
parrot 0.64 2.34 4.47 6.60
gawk 0.57 2.32 4.53 6.72
ici 0.63 2.36 4.57 6.85
cygperl 0.66 2.68 5.20 7.70
slang 0.71 2.77 5.35 7.92
perl 0.77 3.04 5.90 8.75
mawk 0.74 3.26 6.40 9.54
icon 0.85 3.52 6.83 10.18
php 1.12 4.37 8.42 12.47
gforth 1.66 4.93 9.01 13.09
ruby 1.24 4.94 9.51 14.10
tcl 1.56 5.56 10.55 15.55
jscript 3.50 15.83 31.24 46.58
pliant 3.61 16.57 32.78 48.98
rexx 5.13 24.23 48.15 72.05
vbscript 9.87 47.04 94.20 141.22
guile 14.94 71.77 142.94 213.95
vc++ F F F F
se T T T T
rebol F F F F
poplisp T T T T
smlnj F F F F
Measurement of Memory as N varies
  N
Test Source 10 50 100 150
delphi 1648 1648 1648 1648
bcc 1296 1296 1296 1296
gcc 2236 2236 2236 2236
ocaml 1532 1532 1532 1532
mingw32 1528 1528 1528 1528
vc 1800 1800 1800 1800
nice 6928 6928 6928 6928
lua 3068 3068 3068 3068
java 6712 6712 6712 6712
lcc 1528 1528 1528 1528
lua5 2856 2856 2856 2856
oz 652 652 652 652
awka 3696 3696 3696 3696
pike 4832 4832 4832 4832
ocamlb 380 380 380 380
csharp 5740 9556 9448 9444
python 3748 3748 3748 3748
erlang 7884 7884 7680 7676
parrot 5204 5204 5204 5204
gawk 3732 3732 3732 3732
ici 3152 4536 4536 4536
cygperl 3816 3816 3816 3816
slang 2700 2700 2700 2700
perl 3328 3328 3328 3328
mawk 2604 2604 2604 2604
icon 2332 2332 2332 2332
php 5168 5168 5168 5168
gforth 2248 2248 2248 2248
ruby 3564 5396 5396 5428
tcl 4824 4852 4852 4856
jscript 4340 4340 4340 4340
pliant 3960 3960 3960 3960
rexx 4064 4152 4168 4168
vbscript 4860 4864 4864 4864
guile 3776 3776 3776 3776
vc++ F F F F
se T T T T
rebol F F F F
poplisp T T T T
smlnj F 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
bcc 0.16 1296 28 log
ocaml 0.19 1532 22 log
vc 0.20 1800 27 log
delphi 0.21 1648 36 log
gcc 0.21 2236 28 log
mingw32 0.22 1528 28 log
lcc 0.30 1528 28 log
lua 0.40 3068 13 log
awka 0.47 3696 9 log
lua5 0.49 2856 13 log
ocamlb 0.50 380 22 log
pike 0.52 4832 15 log
csharp 0.56 5740 28 log
gawk 0.57 3732 9 log
ici 0.63 3152 15 log
oz 0.63 652 42 log
parrot 0.64 5204 48 log
cygperl 0.66 3816 10 log
slang 0.71 2700 19 log
mawk 0.74 2604 9 log
perl 0.77 3328 10 log
icon 0.85 2332 13 log
python 0.90 3748 13 log
java 0.91 6712 30 log
nice 0.95 6928 0 log
php 1.12 5168 10 log
erlang 1.16 7884 35 log
ruby 1.24 3564 13 log
tcl 1.56 4824 16 log
gforth 1.66 2248 39 log
jscript 3.50 4340 24 log
pliant 3.61 3960 28 log
rexx 5.13 4064 19 log
vbscript 9.87 4860 16 log
guile 14.94 3776 19 log
poplisp T T 29 log
vc++ F F 27 log
rebol F F 44 log
se T T 46 log
smlnj F F 43 log


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