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× | |
| pidigits | ± | 4× | 2× | |
| binary-trees | 2× | 1/3 | 2× | |
| spectral-norm | 2× | ± | 3× | |
| mandelbrot | 2× | ± | 3× | |
| fasta | 2× | ± | ± | |
| nsieve | 3× | ± | 2× | |
| partial-sums | 3× | ± | 2× | |
| n-body | 5× | ± | ± | |
| sum-file | 14× | ± | 3× | |
| nsieve-bits | 34× | 4× | 3× | |
± 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 | 362.60 | 3,344 | 587 | ||
| Perl | 956.31 | 10,812 | 380 | ||
| pidigits | |||||
| Prolog SWI | 8.32 | 12,564 | 618 | ||
| Perl | 6.21 | 3,144 | 385 | ||
| binary-trees | |||||
| Prolog SWI | 393.51 | 12,940 | 775 | ||
| Perl | 224.06 | 37,588 | 481 | ||
| spectral-norm | |||||
| Prolog SWI | 7,395.33 | 18,552 | 939 | ||
| Perl | 3,943.63 | 18,536 | 334 | ||
| mandelbrot | |||||
| Prolog SWI | 744.47 | 3,492 | 820 | ||
| Perl | 382.65 | 3,388 | 311 | ||
| fasta | |||||
| Prolog SWI | 1,835.21 | 3,164 | 1369 | ||
| Perl | 850.67 | 3,156 | 934 | ||
| nsieve | |||||
| Prolog SWI | 174.54 | 315,640 | 509 | ||
| Perl | 60.70 | 242,316 | 290 | ||
| partial-sums | |||||
| Prolog SWI | 46.72 | 2,540 | 735 | ||
| Perl | 14.23 | 3,156 | 389 | ||
| n-body | |||||
| Prolog SWI | 7,471.41 | 2,540 | 1586 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| sum-file | |||||
| Prolog SWI | 214.00 | 14,932 | 223 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| nsieve-bits | |||||
| Prolog SWI | 3,149.67 | 15,340 | 673 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| fannkuch | |||||
| Prolog SWI | |||||
| k-nucleotide | |||||
| Prolog SWI | |||||
| chameneos-redux | |||||
| regex-dna | |||||
| reverse-complement | |||||
SWI-Prolog version 5.6.33 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