Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (49 sloc) 1.736 kB
d2966c6 @pmbauer Added instructions to README
pmbauer authored
1 ## Getting Started
2 ### Requirements
3 * JDK with java/javac on path - http://www.oracle.com/technetwork/java/javase/downloads/index.html
4 * maven - http://maven.apache.org/guides/getting-started/index.html
5 * add the following to your ~/.m2/settings.xml file
ba0ec7c @pmbauer fix README formatting
pmbauer authored
6 ```
d2966c6 @pmbauer Added instructions to README
pmbauer authored
7 <settings>
8 <activeProfiles>
9 <activeProfile>clojure-dev</activeProfile>
10 </activeProfiles>
1d6d020 @stuarthalloway initial commit
stuarthalloway authored
11
d2966c6 @pmbauer Added instructions to README
pmbauer authored
12 <profiles>
13 <profile>
14 <id>clojure-dev</id>
15 <activation> <activeByDefault>false</activeByDefault> </activation>
16 <repositories>
17 <repository>
18 <id>clojars</id>
19 <url>http://clojars.org/repo/</url>
20 </repository>
21 </repositories>
22 </profile>
23 ...
24 </profiles>
25 ...
26 </settings>
27 ```
28 ### Building
29 ```bash
30 git clone git@github.com:clojure/test.benchmark.git
31 cd test.benchmark
32 mvn test
33 ```
34 ### Misc
35 ```bash
36 # starts a swank server
37 mvn clojure:swank
38 ```
39 ### Running a benchmark (e.g. alioth.thread-ring)
40 ```bash
41 script/run alioth.thread-ring 1000
42 ```
ba0ec7c @pmbauer fix README formatting
pmbauer authored
43 ## Contributing
d2966c6 @pmbauer Added instructions to README
pmbauer authored
44 There are a number of completed benchmarks, but there is a lot more left to do.
45 Andy Fingerhut has a suit of benchmarks tailored for Clojure 1.2 and need updated or redone for Clojure 1.3 (https://github.com/jafingerhut/clojure-benchmarks).
1d6d020 @stuarthalloway initial commit
stuarthalloway authored
46
d2966c6 @pmbauer Added instructions to README
pmbauer authored
47 A good general approach is to examine the fastest alioth implementations, usually Java or C, and write a Clojure port.
48 Idiomatic Clojure typically shows poorly in the benchmarks. Liberal use of primitive arrays, type hinting, and iteration apply.
1d6d020 @stuarthalloway initial commit
stuarthalloway authored
49
d2966c6 @pmbauer Added instructions to README
pmbauer authored
50 Long term goal is a performance regression test suit ...
51
52 Alioth Benchmark site is here: http://shootout.alioth.debian.org/
53
54 Work on the benchmarks is tracked here: http://dev.clojure.org/jira/browse/TBENCH
Something went wrong with that request. Please try again.