Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (35 sloc) 3.087 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<html lang="en-us"><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Clojure benchmarks</title>
<meta content="Andy Fingerhut" name="author"></head><body>[benchmarks main page] [<a href="Clojure-whole-program-benchmarks.html">whole program benchmarks</a>] [<a href="Clojure-expression-benchmarks.html">expression benchmarks</a>] [<a href="Clojure-version-history.html">Clojure version history</a>] [<a href="Hardware-and-software-used-for-Clojure-benchmarks.html">hardware and software used</a>]
<h1>Clojure benchmarks</h1>
The performance measurements linked below are for Clojure on Java,
versions 1.2.0 and later.&nbsp; All of these programs and the scripts
used to measure them are available in the <a href="">clojure-benchmarks</a> Github project.&nbsp; For similar measurements of ClojureScript, see the <a href="">cljs-bench project</a> on Github and the measurement results <a href="">here</a>.<br>
run times have been measured across many different
Clojure versions.&nbsp; One possible use of these results is
identifying performance improvements or regressions as changes are made
to the implementation of Clojure.&nbsp; See the <a href="Clojure-version-history.html">table of Clojure versions</a> for some details about the versions used, and why some were left out.<br>
There are two sets of results presented here.<br>
<h2>Expression benchmarks<br>
The <a href="Clojure-expression-benchmarks.html">expression benchmarks</a>
measure the run time of
individual Clojure expressions.&nbsp; More details about the
measurements are available on that page.&nbsp; Most of these
expressions are
identical to ones measured in the <a href="">cljs-bench project</a> for ClojureScript.<br>
<h2>Whole program benchmarks</h2>Whole program benchmark results are <span style="font-weight: bold; text-decoration: underline;">NOT READY YET</span>.&nbsp; An announcement will be made on the Clojure Google group when they are.<br>
The <a href="Clojure-whole-program-benchmarks.html">whole program benchmarks</a>
measure the run time of Clojure programs from the beginning until the
end, i.e. from the time the "java" command is invoked to begin the JVM,
until the Clojure program is finished and the JVM process exits.&nbsp;
Most of the programs in this set solve problems on the <a href="">Computer Language Benchmarks Game</a> web site, where programs written in many languages are measured in this way (<a href=";lang=clojure&amp;lang2=java">direct link</a>
to some Clojure vs. Java run time comparisons).&nbsp; One program in
this set is not on that web site: a "Hello, world!" program intended to
measure the startup time of the JVM and Clojure.<br>
Jump to Line
Something went wrong with that request. Please try again.