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/25 | 1/11 | ± | |
| binary-trees | 1/17 | 1/8 | ± | |
| spectral-norm | 1/10 | ± | 2 | |
| nsieve | 1/10 | 1/21 | ± | 9 |
| mandelbrot | 1/6 | ± | 2 | |
| fannkuch | 1/6 | 1/4 | 2 | |
| n-body | 1/5 | 1/2 | ± | |
| fasta | 1/5 | ± | ± | |
| nsieve-bits | 1/3 | ± | 2 | |
| partial-sums | 1/3 | 1/4 | 2 | |
| sum-file | 2 | ± | 3 | |
| k-nucleotide | 2 | 1/3 | 3 | |
| reverse-complement | 4 | 1/3 | ± | |
| pidigits | 14 | ± | 4 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| Forth GNU GForth | 38.66 | 960 | 493 | ||
| Perl #2 | 956.31 | 10,812 | 380 | ||
| binary-trees | |||||
| Forth GNU GForth | 13.26 | 4,884 | 562 | ||
| Perl | 224.06 | 37,588 | 481 | ||
| spectral-norm | |||||
| Forth GNU GForth | 379.80 | 18,492 | 524 | ||
| Perl #2 | 3,943.63 | 18,536 | 334 | ||
| nsieve N = 9 reduced workload | |||||
| Forth GNU GForth | 3.07 | 5,828 | 371 | ||
| Perl #2 | 29.34 | 121,924 | 290 | ||
| mandelbrot | |||||
| Forth GNU GForth | 67.66 | 3,312 | 471 | ||
| Perl #2 | 382.65 | 3,388 | 311 | ||
| fannkuch | |||||
| Forth GNU GForth | 132.16 | 796 | 554 | ||
| Perl | 728.50 | 3,144 | 348 | ||
| n-body | |||||
| Forth GNU GForth | 292.20 | 888 | 1304 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| fasta | |||||
| Forth GNU GForth | 161.18 | 3,112 | 882 | ||
| Perl #4 | 850.67 | 3,156 | 934 | ||
| nsieve-bits | |||||
| Forth GNU GForth | 33.59 | 3,316 | 412 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| partial-sums | |||||
| Forth GNU GForth | 5.52 | 860 | 732 | ||
| Perl #3 | 14.23 | 3,156 | 389 | ||
| sum-file | |||||
| Forth GNU GForth | 28.28 | 14,852 | 210 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| k-nucleotide | |||||
| Forth GNU GForth #2 | 51.97 | 12,880 | 988 | ||
| Perl #2 | 27.54 | 42,836 | 359 | ||
| reverse-complement | |||||
| Forth GNU GForth | 8.50 | 13,008 | 330 | ||
| Perl #2 | 1.99 | 38,356 | 298 | ||
| pidigits | |||||
| Forth GNU GForth #2 | 86.32 | 3,120 | 1477 | ||
| Perl #2 | 6.21 | 3,144 | 385 | ||
online book "Programming Forth" (pdf) by Stephen Pelc
gforth 0.6.2
Home Page: http://www.jwdt.com/~paysan/gforth.html