Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

testing speeds of clojure json libs

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.org
Octocat-spinner-32 project.clj
README.org

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.