/mobile Handheld Friendly website
OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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 | |
| recursive | 1/31 | 1/31 | ± | |
| binary-trees | 1/12 | 1/6 | ± | |
| n-body | 1/12 | 1/2 | ± | |
| spectral-norm | 1/11 | ± | ± | |
| nsieve | 1/10 | 1/4 | ± | |
| mandelbrot | 1/10 | ± | ± | |
| nsieve-bits | 1/8 | 1/6 | ± | |
| fasta | 1/8 | ± | ± | |
| partial-sums | 1/6 | 1/2 | 2× | |
| reverse-complement | 1/4 | 1/7 | ± | |
| k-nucleotide | 1/2 | 1/2 | 2× | |
| Forth GNU GForth used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (CPU secs) | 1/31 | 1/31 | 1/11 | 1/10 | 1/7 | 1/4 | 1/2 |
± read the measurements and then read the program source code.
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 GForth | 38.66 | 960 | 493 | ||
| Tcl | 1,206.94 | 29,936 | 461 | ||
| binary-trees | |||||
| Forth GNU GForth | 13.26 | 4,884 | 562 | ||
| Tcl | 164.58 | 30,168 | 540 | ||
| n-body | |||||
| Forth GNU GForth | 292.20 | 888 | 1304 | ||
| Tcl | 3,372.74 | 1,500 | 1454 | ||
| spectral-norm | |||||
| Forth GNU GForth | 379.80 | 18,492 | 524 | ||
| Tcl | 4,321.69 | 18,552 | 425 | ||
| nsieve | |||||
| Forth GNU GForth | 3.07 | 5,828 | 371 | ||
| Tcl | 29.46 | 21,620 | 295 | ||
| mandelbrot | |||||
| Forth GNU GForth | 67.66 | 3,312 | 471 | ||
| Tcl | 643.60 | 3,332 | 460 | ||
| nsieve-bits | |||||
| Forth GNU GForth | 33.59 | 3,316 | 412 | ||
| Tcl | 279.79 | 18,960 | 424 | ||
| fasta | |||||
| Forth GNU GForth | 161.18 | 3,112 | 882 | ||
| Tcl | 1,256.74 | 3,168 | 946 | ||
| partial-sums | |||||
| Forth GNU GForth | 5.52 | 860 | 732 | ||
| Tcl | 31.55 | 1,440 | 450 | ||
| reverse-complement | |||||
| Forth GNU GForth | 8.50 | 13,008 | 330 | ||
| Tcl | 35.95 | 87,744 | 343 | ||
| k-nucleotide | |||||
| Forth GNU GForth | 51.97 | 12,880 | 988 | ||
| Tcl | 110.22 | 27,628 | 561 | ||
| regex-dna | |||||
| Tcl | 0.75 | 6,300 | 373 | ||
| pidigits | |||||
| Forth GNU GForth | 6.54 | 3,120 | 1477 | ||
| Tcl | |||||
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.
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.
online book "Programming Forth" (pdf) by Stephen Pelc
gforth 0.6.2
Home Page: http://www.jwdt.com/~paysan/gforth.html