Count Lines/Words/Chars 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 500 1000 1500 2000
gcc 0.09 0.16 0.21 0.28
ocaml 0.12 0.22 0.34 0.44
vc 0.12 0.23 0.35 0.46
mingw32 0.12 0.25 0.37 0.48
gnat 0.13 0.26 0.39 0.51
mawk 0.16 0.29 0.41 0.54
bcc 0.14 0.28 0.42 0.55
gawk 0.17 0.30 0.43 0.55
lcc 0.15 0.29 0.44 0.58
vpascal 0.16 0.31 0.45 0.60
fpascal 0.18 0.36 0.53 0.71
csharp 0.26 0.41 0.56 0.72
awka 0.20 0.38 0.54 0.82
cygperl 0.34 0.64 0.93 1.24
java 0.77 1.08 1.39 1.70
slang 0.46 0.89 1.31 1.73
python 0.61 1.01 1.43 1.84
pike 0.71 1.14 1.58 2.02
rexx 0.53 1.05 1.56 2.07
perl 0.57 1.10 1.63 2.17
icon 0.65 1.29 1.92 2.57
vc++ 0.68 1.36 2.04 2.72
lua5 0.74 1.47 2.20 2.93
nice 1.29 2.02 2.78 3.51
gforth 0.94 1.84 2.74 3.64
se 1.12 2.22 3.34 4.45
ici 1.24 2.44 3.65 4.87
lua 1.25 2.49 3.75 4.97
tcl 1.67 3.29 4.88 6.51
pliant 1.89 3.64 5.38 7.12
php 1.95 3.78 5.69 7.66
ocamlb 2.37 4.73 7.08 9.44
jscript 2.93 5.67 8.47 11.28
ghc 3.93 7.82 11.73 15.60
guile 11.04 21.96 32.88 43.77
ruby 23.79 47.49 71.21 94.93
modula2 F F F F
erlang T T T T
bigforth F F F F
poplisp F F F F
smlnj F F F F
Measurement of Memory as N varies
  N
Test Source 500 1000 1500 2000
gcc 1484 1484 1484 1484
ocaml 652 652 652 652
vc 464 464 464 464
mingw32 508 508 508 508
gnat 744 744 744 744
mawk 1592 1592 1592 1592
bcc 564 564 564 564
gawk 2052 2052 2052 2052
lcc 504 504 504 504
vpascal 568 568 568 568
fpascal 524 524 524 524
csharp 3320 3320 3320 3316
awka 3252 6240 9220 18008
cygperl 2432 2432 2432 2432
java 4576 4576 4596 4596
slang 1808 1808 1808 1808
python 2404 2404 2404 2404
pike 3784 3776 3776 3776
rexx 1084 1100 1124 1148
perl 1548 1548 1548 1548
icon 1088 1088 1088 1088
vc++ 512 512 512 512
lua5 620 620 620 620
nice 5376 5396 5440 5460
gforth 1468 1468 1468 1468
se 540 540 540 540
ici 1120 1120 1120 1120
lua 620 620 620 620
tcl 1580 1580 1580 1580
pliant 3220 3220 3220 3220
php 3496 3496 3496 3496
ocamlb 380 380 380 380
jscript 2468 2468 2468 2468
ghc 2180 2180 2180 2180
guile 2460 2460 2460 2460
ruby 5884 7096 7108 7132
modula2 F F F F
erlang T T T T
bigforth F F F F
poplisp F F F F
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
gcc 0.09 1484 28 log
ocaml 0.12 652 28 log
mingw32 0.12 508 28 log
vc 0.12 464 27 log
gnat 0.13 744 0 log
bcc 0.14 564 27 log
lcc 0.15 504 28 log
vpascal 0.16 568 41 log
mawk 0.16 1592 6 log
gawk 0.17 2052 6 log
fpascal 0.18 524 39 log
awka 0.20 3252 6 log
csharp 0.26 3320 25 log
cygperl 0.34 2432 16 log
slang 0.46 1808 14 log
rexx 0.53 1084 12 log
perl 0.57 1548 16 log
python 0.61 2404 13 log
icon 0.65 1088 14 log
vc++ 0.68 512 28 log
pike 0.71 3784 27 log
lua5 0.74 620 9 log
java 0.77 4576 33 log
gforth 0.94 1468 34 log
se 1.12 540 40 log
ici 1.24 1120 8 log
lua 1.25 620 13 log
nice 1.29 5376 0 log
tcl 1.67 1580 19 log
pliant 1.89 3220 35 log
php 1.95 3496 13 log
ocamlb 2.37 380 28 log
jscript 2.93 2468 14 log
ghc 3.93 2180 26 log
guile 11.04 2460 18 log
ruby 23.79 5884 9 log
erlang T T 19 log
poplisp F F 31 log
smlnj F F 60 log
modula2 F F 0 log
bigforth F F 34 log


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