÷

 Step 1 : Are the Tcl programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Tcl program used compared to the fastest Perl program.


 Step 2 : Are the Tcl programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

Each table row shows, for one named benchmark, how much the fastest Tcl program used compared to the fastest Perl program.

 Tcl used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 regex-dna1/4±±
 binary-trees±±±
 nsieve±1/6±
 spectral-norm±±±
 recursive±±
 fasta±±±
 mandelbrot±±
 n-body±±
 partial-sums1/2±
 fannkuch±
 nsieve-bits
 sum-file±±
 k-nucleotide1/2
 reverse-complement18×±

± read the measurements and then read the program source code.

 Step 3 : Are the Tcl programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Tcl program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 regex-dna 
Tcl3.6026,420373  
Perl13.6625,048449  
 binary-trees 
Tcl164.5830,168540  
Perl224.0637,588481  
 nsieve 
Tcl59.7641,616295  
Perl60.70242,316290  
 spectral-norm 
Tcl4,321.6918,552425  
Perl3,943.6318,536334  
 recursive 
Tcl1,206.9429,936461  
Perl956.3110,812380  
 fasta 
Tcl1,256.733,168946  
Perl850.673,156934  
 mandelbrot 
Tcl643.603,332460  
Perl382.653,388311  
 n-body 
Tcl3,372.741,5001454  
Perl1,567.731,9041140  
 partial-sums 
Tcl31.551,440450  
Perl14.233,156389  
 fannkuch 
Tcl1,624.263,160532  
Perl728.503,144348  
 nsieve-bits 
Tcl279.7918,960424  
Perl93.554,024253  
 sum-file 
Tcl56.6714,94098  
Perl15.5514,91684  
 k-nucleotide 
Tcl110.2227,628561  
Perl27.5442,836359  
 reverse-complement 
Tcl35.9587,744343  
Perl1.9938,356298  
 pidigits
TclFailed
 chameneos-redux
   No program

 Measurements for all the accepted programs

 Tcl : everything is a string - programmable programming 

Tcl 8.4.18

Home Page: http://tcl.tk/

Download: http://www.tcl.tk/software/tcltk/

Revised BSD license