OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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 |
| 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× | |
± read the measurements and then read the program source code.
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 GForth | 43.30 | 956 | 493 | ||
| Perl | 898.78 | 10,836 | 380 | ||
| binary-trees | |||||
| Forth GNU GForth | 15.66 | 4,888 | 564 | ||
| Perl | 239.36 | 47,936 | 541 | ||
| nsieve | |||||
| Forth GNU GForth | 2.93 | 5,804 | 371 | ||
| Perl | 25.45 | 121,904 | 290 | ||
| spectral-norm | |||||
| Forth GNU GForth | 486.15 | 948 | 524 | ||
| Perl | 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 | 950.04 | 1,872 | 934 | ||
| mandelbrot | |||||
| Forth GNU GForth | 100.57 | 836 | 471 | ||
| Perl | 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 | 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 | 72.53 | 12,860 | 988 | ||
| Perl | 32.07 | 42,816 | 359 | ||
| reverse-complement | |||||
| Forth GNU GForth | 11.21 | 13,016 | 330 | ||
| Perl | 1.99 | 38,360 | 298 | ||
| pidigits | |||||
| Forth GNU GForth | 23.68 | 872 | 1477 | ||
| Perl | 3.61 | 2,532 | 385 | ||
| chameneos-redux | |||||
| regex-dna | |||||
online book "Programming Forth" (pdf) by Stephen Pelc
gforth 0.6.2
Home Page: http://www.jwdt.com/~paysan/gforth.html