Sum a Column of Integers 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 used as a multiple of the input data size. So if N is 2, the test is fed 2 copies of the input data on standard input.


Measurement of CPU as N varies
  N
Test Source 100 400 700 1000
vc 0.04 0.15 0.27 0.38
lcc 0.05 0.18 0.31 0.44
mingw32 0.06 0.22 0.37 0.53
delphi 0.06 0.25 0.43 0.61
bcc 0.07 0.25 0.44 0.62
gcc 0.10 0.33 0.56 0.79
vc++ 0.09 0.35 0.62 0.88
ocaml 0.10 0.37 0.65 0.94
fpascal 0.12 0.47 0.81 1.16
se 0.12 0.48 0.85 1.21
vpascal 0.13 0.51 0.88 1.26
mawk 0.18 0.63 1.08 1.53
icon 0.22 0.86 1.49 2.11
csharp 0.31 0.95 1.59 2.12
cygperl 0.26 0.89 1.52 2.15
awka 0.26 0.94 1.62 2.29
gawk 0.28 0.99 1.72 2.44
slang 0.29 1.02 1.77 2.51
java 0.75 1.34 1.94 2.54
nice 0.81 1.40 2.00 2.59
ocamlb 0.30 1.16 2.01 2.87
gforth 0.40 1.47 2.56 3.63
mercury 0.40 1.48 2.55 3.64
gnat 0.40 1.60 2.79 4.00
python 0.64 1.99 3.33 4.70
pike 0.75 2.22 3.68 5.13
lua5 0.66 2.63 4.61 6.57
lua 0.69 2.75 4.82 6.88
cim 0.76 2.92 5.11 7.27
smlnj 0.84 3.22 5.62 8.01
pliant 1.30 4.30 7.27 10.25
ici 1.08 4.23 7.38 10.53
perl 1.41 5.55 9.68 13.81
guile 1.58 5.98 10.34 14.72
ghc 1.58 6.22 10.86 15.49
php 1.73 6.79 11.86 16.90
tcl 1.91 7.57 13.24 18.90
ruby 4.45 17.67 31.08 44.33
rexx 4.63 18.42 31.50 44.94
vbscript 2.10 16.83 44.22 84.36
parrot 48.70 195.15 T T
poplisp F F F F
bigforth F F F F
oz F F F F
erlang T T T T
Measurement of Memory as N varies
  N
Test Source 100 400 700 1000
vc 468 468 468 468
lcc 504 504 504 504
mingw32 520 520 520 520
delphi 572 572 572 572
bcc 568 568 568 568
gcc 1488 1488 1488 1488
vc++ 520 520 520 520
ocaml 772 772 772 772
fpascal 464 464 464 464
se 540 540 540 540
vpascal 532 532 532 532
mawk 1580 1580 1580 1580
icon 868 1076 1076 1076
csharp 3608 3604 3604 3608
cygperl 2364 2364 2364 2364
awka 1612 1612 1612 1612
gawk 2032 2032 2032 2032
slang 1792 1792 1792 1792
java 5520 5520 5520 5524
nice 5720 5720 5724 5720
ocamlb 380 380 380 380
gforth 1460 1460 1460 1460
mercury 1780 1780 1780 1780
gnat 748 748 748 748
python 2388 2388 2388 2388
pike 3816 3844 3836 3844
lua5 648 648 648 648
lua 632 632 632 632
cim 2028 2028 2028 2028
smlnj 936 936 936 936
pliant 3220 3220 3220 3220
ici 1112 1112 1112 1112
perl 1468 1468 1468 1468
guile 2464 2464 2464 2464
ghc 2188 2188 2188 2188
php 2848 2848 2848 2848
tcl 1476 1476 1476 1476
ruby 2004 2004 2016 2044
rexx 3392 10444 17496 24548
vbscript 7888 24272 40652 57036
parrot 17664 17664 T T
poplisp F F F F
bigforth F F F F
oz F F F F
erlang T T T T

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
vc 0.04 468 13 log
lcc 0.05 504 13 log
mingw32 0.06 520 13 log
delphi 0.06 572 11 log
bcc 0.07 568 13 log
vc++ 0.09 520 14 log
gcc 0.10 1488 13 log
ocaml 0.10 772 3 log
se 0.12 540 20 log
fpascal 0.12 464 11 log
vpascal 0.13 532 11 log
mawk 0.18 1580 3 log
icon 0.22 868 5 log
awka 0.26 1612 3 log
cygperl 0.26 2364 4 log
gawk 0.28 2032 3 log
slang 0.29 1792 10 log
ocamlb 0.30 380 3 log
csharp 0.31 3608 11 log
mercury 0.40 1780 32 log
gnat 0.40 748 0 log
gforth 0.40 1460 13 log
python 0.64 2388 7 log
lua5 0.66 648 5 log
lua 0.69 632 7 log
pike 0.75 3816 7 log
java 0.75 5520 19 log
cim 0.76 2028 13 log
nice 0.81 5720 0 log
smlnj 0.84 936 12 log
ici 1.08 1112 4 log
pliant 1.30 3220 13 log
perl 1.41 1468 4 log
guile 1.58 2464 5 log
ghc 1.58 2188 5 log
php 1.73 2848 7 log
tcl 1.91 1476 8 log
vbscript 2.10 7888 8 log
ruby 4.45 2004 5 log
rexx 4.63 3392 9 log
parrot 48.70 17664 12 log
bigforth F F 13 log
poplisp F F 14 log
oz F F 38 log
erlang T T 11 log


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