Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
testing speeds of clojure json libs
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Clojure JSON speeds

Now with completely unscientific microbenchmarks.

user=> (use 'jsontest.core)
user=> (testit)            
Clojure version:  1.2.0
Num roundtrips:   100000

Trail:  1
clj-json                               2.15
clj-json-smile                         3.88
clj-json w/ keywords                   2.66
clj-serializer                         2.41
clojure printer/reader                 6.95
clojure printer/reader w/ print-dup    12.73
org.danlarkin.json                     21.35
clojure.contrib.json                   13.01

Trail:  2
clj-json                               1.30
clj-json-smile                         2.57
clj-json w/ keywords                   2.36
clj-serializer                         1.69
clojure printer/reader                 5.98
clojure printer/reader w/ print-dup    12.42
org.danlarkin.json                     21.05
clojure.contrib.json                   12.51

Size comparison:
clj-json        223
clj-json-smile  178
Something went wrong with that request. Please try again.