PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
Compare the performance of Forth GNU GForth programs against some other language implementation.
For more information about the Forth implementation we measured see ↓ about Forth GNU GForth.
| 1/2 1/3 1/4 Forth GNU GForth is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| chameneos-redux | ||||
| regex-dna | ||||
| recursive | 1/21 | 1/11 | ± | |
| binary-trees | 1/15 | 1/10 | ± | |
| nsieve | 1/9 | 1/21 | ± | |
| spectral-norm | 1/8 | 1/3 | 2 | |
| fannkuch | 1/5 | 1/2 | 2 | |
| n-body | 1/4 | 1/2 | ± | |
| fasta | 1/4 | 1/2 | ± | |
| mandelbrot | 1/4 | 1/2 | 2 | |
| nsieve-bits | 1/2 | ± | 2 | |
| partial-sums | 1/2 | 1/2 | 2 | |
| sum-file | 2 | 1/2 | 3 | |
| k-nucleotide | 2 | 1/3 | 3 | |
| reverse-complement | 6 | 1/3 | ± | |
| pidigits | 7 | 1/3 | 4 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| Forth GNU GForth | 43.30 | 956 | 493 | ||
| Perl #2 | 898.78 | 10,836 | 380 | ||
| binary-trees | |||||
| Forth GNU GForth | 15.66 | 4,888 | 564 | ||
| Perl #2 | 239.36 | 47,936 | 541 | ||
| nsieve | |||||
| Forth GNU GForth | 2.93 | 5,804 | 371 | ||
| Perl #2 | 25.45 | 121,904 | 290 | ||
| spectral-norm | |||||
| Forth GNU GForth | 486.15 | 948 | 524 | ||
| Perl #2 | 4,089.08 | 2,468 | 334 | ||
| fannkuch | |||||
| Forth GNU GForth | 175.84 | 804 | 554 | ||
| Perl | 855.72 | 1,492 | 348 | ||
| n-body | |||||
| Forth GNU GForth | 400.05 | 888 | 1304 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| fasta | |||||
| Forth GNU GForth | 227.34 | 840 | 882 | ||
| Perl #4 | 950.04 | 1,872 | 934 | ||
| mandelbrot | |||||
| Forth GNU GForth | 100.57 | 836 | 471 | ||
| Perl #2 | 403.20 | 1,724 | 311 | ||
| nsieve-bits | |||||
| Forth GNU GForth | 43.01 | 3,288 | 412 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| partial-sums | |||||
| Forth GNU GForth | 9.41 | 872 | 732 | ||
| Perl #3 | 17.41 | 1,476 | 389 | ||
| sum-file | |||||
| Forth GNU GForth | 36.35 | 788 | 210 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| k-nucleotide | |||||
| Forth GNU GForth #2 | 72.53 | 12,860 | 988 | ||
| Perl #2 | 32.07 | 42,816 | 359 | ||
| reverse-complement | |||||
| Forth GNU GForth | 11.21 | 13,016 | 330 | ||
| Perl #2 | 1.99 | 38,360 | 298 | ||
| pidigits | |||||
| Forth GNU GForth #2 | 23.68 | 872 | 1477 | ||
| Perl #2 | 3.61 | 2,532 | 385 | ||
online book "Programming Forth" (pdf) by Stephen Pelc
gforth 0.6.2
Home Page: http://www.jwdt.com/~paysan/gforth.html