/mobile Handheld Friendly website

÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Prolog SWI program used compared to the fastest Zonnon Mono program.


Look at speed another way - look at a box plot of Time-used data.

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

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Prolog SWI program used compared to the fastest Zonnon Mono program.

 Prolog SWI used what fraction? used how many times more? 
Benchmark Time Memory Code
 nsieve34×16×±
 n-body135×1/2±
 Prolog SWI used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(CPU secs)34×34×34×84×135×135×135×

± 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 ~ speed and size.

For each named benchmark, measurements of the fastest Prolog SWI program are shown for comparison against measurements of the fastest Zonnon Mono program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 nsieve 
Prolog SWI78.34159,052509  
Zonnon Mono2.329,744368  
 n-body 
Prolog SWI4,662.822,4881573  
Zonnon Mono34.615,1681524  
 partial-sums 
Prolog SWI0.562,436735  
Zonnon MonoFailed
 k-nucleotide 
Prolog SWI14.938,6761284  
No program
 mandelbrot 
Prolog SWI1.432,556823  
No program
 fasta 
Prolog SWI18.642,5401369  
No program
 recursive 
Prolog SWI2.912,512587  
Zonnon MonoFailed
 pidigits 
Prolog SWI0.182,348618  
No program
 binary-trees 
Prolog SWI3.843,276790  
No program
 spectral-norm 
Prolog SWI59.892,808939  
No program
 nsieve-bits 
Prolog SWI248.195,896673  
No program
 reverse-complement
   No programs
 regex-dna
   No programs

 Step 4 : Are there other Prolog SWI programs for these benchmarks?

Remember - those are just the fastest Prolog SWI and Zonnon Mono programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Prolog SWI.

Maybe one of those other Prolog SWI programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Prolog SWI and Zonnon Mono programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

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

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

Revised BSD license

  Home   Conclusions   License   Help