÷

 Step 1 : Are the Prolog SWI programs faster? At a glance.

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.


 Step 2 : Are the Prolog SWI programs faster? Approximately.

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
 recursive1/31/3
 pidigits±
 binary-trees1/3
 spectral-norm±
 mandelbrot±
 fasta±±
 nsieve±
 partial-sums±
 n-body±±
 sum-file14×±
 nsieve-bits34×

± read the measurements and then read the program source code.

 Step 3 : Are the Prolog SWI programs faster? Measurements.

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 SWI362.603,344587  
Perl956.3110,812380  
 pidigits 
Prolog SWI8.3212,564618  
Perl6.213,144385  
 binary-trees 
Prolog SWI393.5112,940775  
Perl224.0637,588481  
 spectral-norm 
Prolog SWI7,395.3318,552939  
Perl3,943.6318,536334  
 mandelbrot 
Prolog SWI744.473,492820  
Perl382.653,388311  
 fasta 
Prolog SWI1,835.213,1641369  
Perl850.673,156934  
 nsieve 
Prolog SWI174.54315,640509  
Perl60.70242,316290  
 partial-sums 
Prolog SWI46.722,540735  
Perl14.233,156389  
 n-body 
Prolog SWI7,471.412,5401586  
Perl1,567.731,9041140  
 sum-file 
Prolog SWI214.0014,932223  
Perl15.5514,91684  
 nsieve-bits 
Prolog SWI3,149.6715,340673  
Perl93.554,024253  
 fannkuch
Prolog SWIFailed
 k-nucleotide
Prolog SWIFailed
 chameneos-redux
   No program
 regex-dna
   No program
 reverse-complement
   No program

 Measurements for all the accepted programs

 Prolog SWI : goal-oriented pattern-matching rules and facts 

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

Revised BSD license