÷

 Step 1 : Are the Forth GNU GForth 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 Forth GNU GForth program used compared to the fastest Perl program.


 Step 2 : Are the Forth GNU GForth 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 Forth GNU GForth program used compared to the fastest Perl program.

 Forth GNU GForth used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 recursive1/251/11±
 binary-trees1/171/8±
 spectral-norm1/10±
 nsieve1/101/21± 9
 mandelbrot1/6±
 fannkuch1/61/4
 n-body1/51/2±
 fasta1/5±±
 nsieve-bits1/3±
 partial-sums1/31/4
 sum-file±
 k-nucleotide1/3
 reverse-complement1/3±
 pidigits14×±

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

 Step 3 : Are the Forth GNU GForth 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 Forth GNU GForth 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
 recursive 
Forth GNU GForth38.66960493  
Perl956.3110,812380  
 binary-trees 
Forth GNU GForth13.264,884562  
Perl224.0637,588481  
 spectral-norm 
Forth GNU GForth379.8018,492524  
Perl3,943.6318,536334  
 nsieve N = 9 reduced workload 
Forth GNU GForth3.075,828371  
Perl29.34121,924290  
 mandelbrot 
Forth GNU GForth67.663,312471  
Perl382.653,388311  
 fannkuch 
Forth GNU GForth132.16796554  
Perl728.503,144348  
 n-body 
Forth GNU GForth292.208881304  
Perl1,567.731,9041140  
 fasta 
Forth GNU GForth161.183,112882  
Perl850.673,156934  
 nsieve-bits 
Forth GNU GForth33.593,316412  
Perl93.554,024253  
 partial-sums 
Forth GNU GForth5.52860732  
Perl14.233,156389  
 sum-file 
Forth GNU GForth28.2814,852210  
Perl15.5514,91684  
 k-nucleotide 
Forth GNU GForth51.9712,880988  
Perl27.5442,836359  
 reverse-complement 
Forth GNU GForth8.5013,008330  
Perl1.9938,356298  
 pidigits 
Forth GNU GForth86.323,1201477  
Perl6.213,144385  
 chameneos-redux
   No program
 regex-dna
   No program

 Measurements for all the accepted programs

 Forth GNU GForth : extensible postfix stack programming 

online book "Programming Forth" (pdf) by Stephen Pelc

gforth 0.6.2

Home Page: http://www.jwdt.com/~paysan/gforth.html

Download: http://www.complang.tuwien.ac.at/forth/gforth/

Revised BSD license