/
RESULTS
119 lines (86 loc) · 3.72 KB
/
RESULTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
iMac specs:
2.16 GHz Intel Core 2 Duo (2 cores)
2 GB RAM 667 MHz DDR2 SDRAM
Running Mac OS X 10.5.7
"The Computer Language Benchmarks Game" web site benchmark machine:
Quad-core 2.4Ghz Intel Q6600
4GB RAM
250GB SATA II disk drive
Ubuntu (TM) 9.04 Linux Kernel 2.6.28-11-generic
Times are real / user / sys on my iMac
| sbcl | perl | ghc | java | clj
-----------------------------------------------------
noT noT | noT
long test on my iMac:
rcomp | 8.3 | 11.4 | 18.0 | 11.0 | 55.0
| 4.8 | 7.9 | 5.0 | 3.9 | 74.0 clj =
| 2.1 | 2.3 | 4.1 | 1.3 | 4.3 15.1 x java
long test on my iMac:
mand- | wrong | out of | 32.7 | 28.6 | 325.0
elbrot | output | mem | 59.3 | 54.4 | 326.1 clj =
| | (?) | 0.8 | 0.4 | 3.2 6.01 x java
noT noT | T
long test on my iMac:
k-nuc- | 190.9 | 306.0 | 90.5 | 53.5 | 1286.4 (21m 26.4s)
leotide | 187.9 | 302.7 | 130.8 | 91.8 | 1118.1 (18m 38.1s) clj =
| 2.4 | 1.9 | 4.6 | 2.1 | 21.8 ( 21.8s) 12.1 x java
k-nucleotide long test on benchmark shootout machine:
| 164.9 | 249.8 | 52.0 | 20.6 |
| 164.9 | 246.7 | 112.5 | 58.8 |
| ? | ? | ? | ? |
k-nucleotide medium test on my iMac:
| 8.6 | 12.7 | 3.9 | 3.9 | 43.8
| 7.9 | 12.5 | 5.4 | 5.7 | 46.5 clj =
| 0.6 | 0.1 | 0.3 | 0.2 | 1.5 8.1 x java
k-nucleotide medium test, all clj, modified-pmap with specified number
of parallel threads, on my iMac (note, these are from
knucleotide.clj-5.clj, not the slightly improved knucleotide.clj-6.clj
version):
| 1 | 2 | 3 | 4 | 5 | 6 |
| 74.9 | 70.7 | 77.2 | 76.8 | 82.5 | 77.8 |
| 125.9 | 122.1 | 134.6 | 134.0 | 143.4 | 134.0 |
| 2.5 | 2.8 | 2.8 | 2.3 | 3.1 | 2.3 |
fasta
thread-ring
The longest few benchmark run on my iMac are:
mins benchmark test language
127 mandelbrot long perl
21 knuc long clj (21m 26.4s / 18m 38.1s / 21.8s)
9 fasta long perl
5 mandelbrot long clj
5 knuc long perl
3 knuc long sbcl
2 mandelbrot long sbcl
1.5 knuc long ghc
1.3 rcomp long clj
0.9 knuc long java
mandelbrot notes:
sbcl version implemented with threads. I run it with only 1 thread.
I haven't debugged why it produces the wrong output yet.
perl version implemented with threads, but my Perl implementation
doesn't have threads, so I made a slight modification for a 1-thread
version that doesn't use them at all.
There are at least two versions of Java source code on shootout web
site. I'm using the one that uses threads, not the other one that
avoids using threads.
----------------------------------------------------------------------
Hardware and software used
iMac with Intel Core 2 Duo, 2.16 GHz, 2 GB RAM, Mac OS X 10.5.7
% /opt/local/bin/sbcl --version
SBCL 1.0.24
% /opt/local/bin/perl -v
This is perl, v5.8.9 built for darwin-2level
Copyright 1987-2008, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
% java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
% javac -version
javac 1.6.0_13
user> (clojure-version)
"1.1.0-alpha-SNAPSHOT"