Regular Expression Matching 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 times we extract a list of phone numbers from the test input data. (The input data is only read once).


Measurement of CPU as N varies
  N
Test Source 1 3000 6000 9000
ici F 0.71 1.41 2.10
pike 0.29 1.26 2.22 3.19
mawk 0.03 1.13 2.22 3.32
perl 0.04 1.50 2.99 4.46
java 0.49 1.97 3.26 4.57
cygperl 0.04 1.57 3.09 4.63
lua5 0.01 1.59 3.17 4.76
lua 0.01 1.77 3.54 5.31
python 0.26 2.07 3.88 5.69
smlnj 0.04 1.93 3.83 5.73
gawk 0.04 8.24 16.46 24.66
vbscript 0.17 11.62 23.22 34.70
awka 0.04 14.24 28.46 42.64
tcl 0.05 19.30 38.52 58.00
vc F F F F
poplisp F F F F
ruby F F F F
gcc T T T T
vc++ F F F F
ocaml F F F F
erlang T T T T
gforth F F F F
ocamlb F F F F
guile F F F F
Measurement of Memory as N varies
  N
Test Source 1 3000 6000 9000
ici F 1124 1124 1124
pike 5560 5560 5560 5556
mawk 1592 1592 1592 1592
perl 1552 1556 1556 1556
java 4764 5280 5280 5280
cygperl 2444 2444 2444 2444
lua5 612 632 632 632
lua 592 688 784 880
python 2648 2648 2648 2648
smlnj 940 940 940 940
gawk 2200 2200 2200 2200
vbscript 2516 2516 2516 2516
awka 1688 1688 1688 1688
tcl 1588 1588 1588 1588
vc F F F F
poplisp F F F F
ruby F F F F
gcc T T T T
vc++ F F F F
ocaml F F F F
erlang T T T T
gforth F F F F
ocamlb F F F F
guile 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
lua 0.01 592 17 log
lua5 0.01 612 16 log
mawk 0.03 1592 32 log
awka 0.04 1688 32 log
cygperl 0.04 2444 28 log
perl 0.04 1552 28 log
smlnj 0.04 940 767 log
gawk 0.04 2200 32 log
tcl 0.05 1588 22 log
vbscript 0.17 2516 27 log
python 0.26 2648 27 log
pike 0.29 5560 18 log
java 0.49 4764 40 log
ruby F F 27 log
poplisp F F 47 log
gcc T T 111 log
ocaml F F 36 log
ici F F 12 log
vc++ F F 54 log
gforth F F 87 log
vc F F 111 log
erlang T T 72 log
guile F F 44 log
ocamlb F F 36 log


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