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/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× | |
± 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 | 38.66 | 960 | 493 | ||
| Perl | 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 | 3,943.63 | 18,536 | 334 | ||
| nsieve N = 9 reduced workload | |||||
| Forth GNU GForth | 3.07 | 5,828 | 371 | ||
| Perl | 29.34 | 121,924 | 290 | ||
| mandelbrot | |||||
| Forth GNU GForth | 67.66 | 3,312 | 471 | ||
| Perl | 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 | 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 | 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 | 51.97 | 12,880 | 988 | ||
| Perl | 27.54 | 42,836 | 359 | ||
| reverse-complement | |||||
| Forth GNU GForth | 8.50 | 13,008 | 330 | ||
| Perl | 1.99 | 38,356 | 298 | ||
| pidigits | |||||
| Forth GNU GForth | 86.32 | 3,120 | 1477 | ||
| Perl | 6.21 | 3,144 | 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