÷

 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/211/11±
 binary-trees1/151/10±
 nsieve1/91/21±
 spectral-norm1/81/3
 fannkuch1/51/2
 n-body1/41/2±
 fasta1/41/2±
 mandelbrot1/41/2
 nsieve-bits1/2±
 partial-sums1/21/2
 sum-file1/2
 k-nucleotide1/3
 reverse-complement1/3±
 pidigits1/3

± 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 GForth43.30956493  
Perl898.7810,836380  
 binary-trees 
Forth GNU GForth15.664,888564  
Perl239.3647,936541  
 nsieve 
Forth GNU GForth2.935,804371  
Perl25.45121,904290  
 spectral-norm 
Forth GNU GForth486.15948524  
Perl4,089.082,468334  
 fannkuch 
Forth GNU GForth175.84804554  
Perl855.721,492348  
 n-body 
Forth GNU GForth400.058881304  
Perl1,697.591,9361140  
 fasta 
Forth GNU GForth227.34840882  
Perl950.041,872934  
 mandelbrot 
Forth GNU GForth100.57836471  
Perl403.201,724311  
 nsieve-bits 
Forth GNU GForth43.013,288412  
Perl100.184,004253  
 partial-sums 
Forth GNU GForth9.41872732  
Perl17.411,476389  
 sum-file 
Forth GNU GForth36.35788210  
Perl18.171,46884  
 k-nucleotide 
Forth GNU GForth72.5312,860988  
Perl32.0742,816359  
 reverse-complement 
Forth GNU GForth11.2113,016330  
Perl1.9938,360298  
 pidigits 
Forth GNU GForth23.688721477  
Perl3.612,532385  
 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