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 Prolog SWI 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 Prolog SWI program used compared to the fastest Perl program.
| Prolog SWI used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| recursive | 1/3 | 1/3 | 2× | |
| binary-trees | ± | 1/2 | ± | 14 |
| pidigits | ± | ± | 2× | |
| spectral-norm | 2× | ± | 3× | |
| fasta | 2× | ± | ± | |
| mandelbrot | 2× | 2× | 3× | |
| n-body | 3× | ± | ± | |
| nsieve | 3× | ± | 2× | |
| partial-sums | 3× | 2× | 2× | |
| fannkuch | 4× | 2× | 2× | 10 |
| nsieve-bits | 10× | 3× | 3× | 9 |
| sum-file | 11× | 2× | 3× | |
| k-nucleotide | 26× | ± | 4× | 10,000 |
± 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 Prolog SWI 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 | |||||
| Prolog SWI | 342.83 | 3,320 | 587 | ||
| Perl | 898.78 | 10,836 | 380 | ||
| binary-trees N = 14 reduced workload | |||||
| Prolog SWI | 31.11 | 5,280 | 790 | ||
| Perl | 41.76 | 13,128 | 541 | ||
| pidigits | |||||
| Prolog SWI | 3.04 | 2,668 | 618 | ||
| Perl | 3.61 | 2,532 | 385 | ||
| spectral-norm | |||||
| Prolog SWI | 7,664.57 | 2,968 | 939 | ||
| Perl | 4,089.08 | 2,468 | 334 | ||
| fasta | |||||
| Prolog SWI | 1,871.95 | 2,584 | 1369 | ||
| Perl | 950.04 | 1,872 | 934 | ||
| mandelbrot | |||||
| Prolog SWI | 853.15 | 2,608 | 823 | ||
| Perl | 403.20 | 1,724 | 311 | ||
| n-body | |||||
| Prolog SWI | 4,662.82 | 2,488 | 1573 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| nsieve | |||||
| Prolog SWI | 78.34 | 159,052 | 509 | ||
| Perl | 25.45 | 121,904 | 290 | ||
| partial-sums | |||||
| Prolog SWI | 54.61 | 2,528 | 735 | ||
| Perl | 17.41 | 1,476 | 389 | ||
| fannkuch N = 10 reduced workload | |||||
| Prolog SWI | 271.27 | 2,520 | 788 | ||
| Perl | 66.20 | 1,496 | 348 | ||
| nsieve-bits N = 9 reduced workload | |||||
| Prolog SWI | 248.19 | 5,896 | 673 | ||
| Perl | 24.21 | 2,132 | 253 | ||
| sum-file | |||||
| Prolog SWI | 208.02 | 2,740 | 223 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| k-nucleotide N = 10,000 reduced workload | |||||
| Prolog SWI | 14.93 | 8,676 | 1284 | ||
| Perl | 0.56 | 8,060 | 359 | ||
| chameneos-redux | |||||
| regex-dna | |||||
| reverse-complement | |||||
SWI-Prolog version 5.6.19 for i686-linux
Online book: Learn Prolog Now!
Online book: Logic, Programming and Prolog
Home Page: http://www.swi-prolog.org/
Download: http://www.swi-prolog.org/dl-stable.html