|
Benchmarks for Quintus Prolog |
Performance Summary and Benchmarks
The Quintus Prolog compiler produces portable, optimized
virtual machine (WAM) code. The table below shows performance for
some platforms on the naive reverse benchmark (list of 30
elements, repeated 10000 times). The figures are in "Lips" (Logical
Inferences Per Second), Quintus Prolog 3.4. The source code is in demo(nrev) .
Bytecode Lips (Naive Reverse)
The figures are sorted on Lips, descending values.
Platform |
OS |
MLips |
Pentium III 450 MHz |
Windows NT 4.0 |
12.4 |
Sun UltraSPARC 248 MHz |
SunOS 5.7 |
10.1 |
IBM RS6000 200 MHz |
AIX 4.3 |
9.4 |
HP 9000/780 180 MHz |
HP-UX 10.20 |
7.7 |
MIPS R4400 250 MHz |
IRIX |
5.5 |
AlphaStation 400 4/233 |
Digital UNIX V4.0 |
3.1 |
Other Benchmarks
Here are some numbers for benchmarks used in the Mercury project. This
list contains links to the sources of the benchmarks:
-
crypt
solves a cryptoarithmetic puzzle.
-
deriv
symbolically differentiates four functions of a single variable.
-
poly
symbolically raises 1+x+y+z to the tenth power.
-
prime
finds all primes up to 100.
-
qsort
quicksorts a list of 50 integers using difference lists.
-
queens
finds all safe placements of 9 queens on a 9x9 chessboard.
-
query
finds countries with approximately equal population density.
-
tak is
an artificial benchmark, originally written in Lisp; it is heavily recursive
and does lots of simple integer arithmetic.
The benchmarks use the following test harness:
Results
The benchmark results in Quintus Prolog 3.4, in milliseconds per iteration,
are as follows:
Platform |
CPU speed (MHz) |
Operating
System |
crypt |
deriv |
poly |
primes |
qsort |
queens |
query |
tak |
Pentium III |
450 |
Windows NT 4 |
3.74 |
0.041 |
14.2 |
0.22 |
0.17 |
68.7 |
0.95 |
29.0 |
Sun UltraSPARC |
248 |
Solaris 7 |
9.23 |
0.070 |
44.7 |
0.720 |
0.370 |
165 |
1.85 |
76.0 |
IBM RS6000 |
200 |
AIX 3.4 |
16.4 |
0.080 |
30.2 |
1.420 |
0.360 |
163 |
2.19 |
73.6 |
MIPS R4400 |
250 |
IRIX 6.5 |
11.3 |
0.130 |
52.3 |
0.910 |
0.450 |
206 |
2.70 |
89.2 |
HP 9000/780 |
180 |
HP-UX 10.20 |
13.2 |
0.110 |
44.7 |
0.970 |
0.510 |
240 |
2.91 |
99.8 |
AlphaStation 400 4/233 |
233 |
DU 4.0 |
33.2 |
0.250 |
109 |
2.85 |
1.05 |
487 |
6.73 |
214 |
|