/mobile Handheld Friendly website

÷

 Step 1 : Are the Forth GNU GForth programs faster? At a glance.

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

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


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the Forth GNU GForth programs faster? Approximately.

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

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

 Forth GNU GForth used what fraction? used how many times more? 
Benchmark Time Memory Code
 recursive1/311/31±
 binary-trees1/121/6±
 n-body1/121/2±
 spectral-norm1/11±±
 nsieve1/101/4±
 mandelbrot1/10±±
 nsieve-bits1/81/6±
 fasta1/8±±
 partial-sums1/61/2
 reverse-complement1/41/7±
 k-nucleotide1/21/2
 Forth GNU GForth used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(CPU secs)1/311/311/111/101/71/41/2

± 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 ~ speed and size.

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 recursive 
Forth GNU GForth38.66960493  
Tcl1,206.9429,936461  
 binary-trees 
Forth GNU GForth13.264,884562  
Tcl164.5830,168540  
 n-body 
Forth GNU GForth292.208881304  
Tcl3,372.741,5001454  
 spectral-norm 
Forth GNU GForth379.8018,492524  
Tcl4,321.6918,552425  
 nsieve 
Forth GNU GForth3.075,828371  
Tcl29.4621,620295  
 mandelbrot 
Forth GNU GForth67.663,312471  
Tcl643.603,332460  
 nsieve-bits 
Forth GNU GForth33.593,316412  
Tcl279.7918,960424  
 fasta 
Forth GNU GForth161.183,112882  
Tcl1,256.743,168946  
 partial-sums 
Forth GNU GForth5.52860732  
Tcl31.551,440450  
 reverse-complement 
Forth GNU GForth8.5013,008330  
Tcl35.9587,744343  
 k-nucleotide 
Forth GNU GForth51.9712,880988  
Tcl110.2227,628561  
 regex-dna 
No program
Tcl0.756,300373  
 pidigits 
Forth GNU GForth6.543,1201477  
TclFailed

 Step 4 : Are there other Forth GNU GForth programs for these benchmarks?

Remember - those are just the fastest Forth GNU GForth and Tcl programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Forth GNU GForth.

Maybe one of those other Forth GNU GForth programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Forth GNU GForth and Tcl programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 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

  Home   Conclusions   License   Help