Reverse a File 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 5 10 15 20
ocaml 0.07 0.14 0.21 0.27
gcc 0.09 0.15 0.22 0.28
vc 0.08 0.16 0.25 0.32
bcc 0.09 0.16 0.25 0.32
mingw32 0.09 0.18 0.28 0.37
lcc 0.10 0.19 0.29 0.38
cygperl 0.20 0.36 0.53 0.70
python 0.37 0.55 0.74 0.90
delphi 0.27 0.51 0.78 1.03
pike 0.45 0.68 0.87 1.06
mercury 0.35 0.67 1.00 1.27
gforth 0.43 0.82 1.22 1.61
lua5 0.44 0.83 1.25 1.62
ocamlb 0.44 0.87 1.29 1.73
vpascal 0.44 0.88 1.31 1.74
se 0.43 0.87 1.29 1.76
awka 0.46 0.90 1.36 1.77
slang 0.48 0.92 1.37 1.80
mawk 0.47 0.91 1.39 1.80
ici 0.64 1.18 1.70 2.23
vc++ 0.58 1.16 1.79 2.30
lua 0.60 1.17 1.90 2.33
icon 0.54 1.07 1.54 2.41
tcl 0.77 1.50 2.23 2.96
csharp 0.78 1.53 2.18 2.99
rexx 0.99 1.97 2.96 3.95
gawk 1.28 2.55 3.82 5.18
guile 1.32 2.53 3.89 5.41
pliant 1.82 3.22 4.49 5.73
ghc 1.54 3.09 4.38 6.22
perl 0.66 2.28 4.44 7.20
java 3.06 5.20 7.54 10.16
vbscript 4.54 9.31 14.39 20.25
ruby 4.30 9.33 14.98 21.07
erlang T T T T
smlnj F F F F
poplisp F F F F
fpascal F F F F
php F F F F
Measurement of Memory as N varies
  N
Test Source 5 10 15 20
ocaml 1148 1656 2160 2676
gcc 1968 2464 2952 3440
vc 1012 1536 2568 2568
bcc 1480 2016 2680 2680
mingw32 1024 1548 2580 2580
lcc 1032 1556 2588 2588
cygperl 5580 8844 12128 15380
python 4768 7192 9024 11268
delphi 1396 1908 2940 2940
pike 5228 6964 7456 7944
mercury 2976 4168 5412 6848
gforth 1956 2452 2940 3424
lua5 2140 3176 5228 5228
ocamlb 380 380 380 380
vpascal 1760 2876 4164 5056
se 3480 6412 9336 12268
awka 7120 12652 18120 23720
slang 2496 2916 3336 3752
mawk 4716 7872 10960 14176
ici 4972 7228 10840 13100
vc++ 3932 7308 10888 14132
lua 6240 11244 19112 21328
icon 2084 2864 3760 5452
tcl 4688 7924 11152 14384
csharp 8156 12668 15892 19288
rexx 2760 4492 6240 7976
gawk 7296 12548 17672 23060
guile 5008 6952 9384 12360
pliant 4340 5732 7648 8496
ghc 10540 19740 19740 38064
perl 6264 11116 16088 20700
java 9492 13220 17188 20992
vbscript 6684 10960 15220 19476
ruby 5480 10484 16916 19584
erlang T T T T
smlnj F F F F
poplisp F F F F
fpascal F F F F
php 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
ocaml 0.07 1148 26 log
vc 0.08 1012 41 log
gcc 0.09 1968 42 log
bcc 0.09 1480 41 log
mingw32 0.09 1024 42 log
lcc 0.10 1032 41 log
cygperl 0.20 5580 2 log
delphi 0.27 1396 38 log
mercury 0.35 2976 18 log
python 0.37 4768 6 log
gforth 0.43 1956 36 log
se 0.43 3480 25 log
lua5 0.44 2140 9 log
vpascal 0.44 1760 19 log
ocamlb 0.44 380 26 log
pike 0.45 5228 1 log
awka 0.46 7120 5 log
mawk 0.47 4716 5 log
slang 0.48 2496 1 log
icon 0.54 2084 6 log
vc++ 0.58 3932 18 log
lua 0.60 6240 11 log
ici 0.64 4972 5 log
perl 0.66 6264 2 log
tcl 0.77 4688 8 log
csharp 0.78 8156 17 log
rexx 0.99 2760 11 log
gawk 1.28 7296 5 log
guile 1.32 5008 5 log
ghc 1.54 10540 1 log
pliant 1.82 4340 9 log
java 3.06 9492 21 log
ruby 4.30 5480 1 log
vbscript 4.54 6684 5 log
poplisp F F 26 log
erlang T T 19 log
smlnj F F 73 log
fpascal F F 19 log
php F F 7 log


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