This project contains code to run certain micro benchmarks against various version of ClojureScript on different JavaScript engines.
A good article about benchmarking JS code is here.
-
Install the 3 JavaScript engines - JavaScriptCore, v8 and SpiderMonkey. Installation notes for Linux and OS X. Also set the appropriate environment variables -
V8_HOME
,SPIDERMONKEY_HOME
andJSC_HOME
. -
Clone this repo.
-
To run full benchmarks using Benchmark.js, change
quick?
insrc/bench/core.clj
tofalse
. -
To select which versions to run the benchmarks against, edit
versions
variable inrun.py
. By default, it'll run it against all releases since 1.7+. -
Run
python run.py
. This will produce a filedata_YYYYMMDD_HHmmSS.csv
which has all the results.
- https://jafingerhut.github.io/clojure-benchmarks-results/Clojure-expression-benchmarks.html
- https://github.com/netguy204/cljs-bench
Copyright © 2014 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.