see JuliaIO/JSON.jl#59 for discussion.
Python results (with strings in JSON):
generating data...
performing tests...
python json dump time: 4.063s, len = 48.11m
python ujson dump time: 1.465s, len = 42.74m
python json load time: 3.004s
python ujson load time: 1.012s
This generates a json file 40-50mb in size.
Julia results (with strings in JSON):
file loaded and read: elapsed time: 1.177662644 seconds
Parsing JSON from string: elapsed time: 25.780348228 seconds (831651540 bytes allocated)
Parsing JSON directly from file: elapsed time: 61.440253927 seconds (1012071980 bytes allocated)
Generating JSON: elapsed time: 7.397358822 seconds (211069604 bytes allocated)
Python results (without strings in JSON):
python json dump time: 3.294s, len = 27.51m
python ujson dump time: 1.086s, len = 22.09m
python json load time: 1.634s
python ujson load time: 0.472s
Julia results (without strings in JSON):
file loaded and read: elapsed time: 0.484029716 seconds
Parsing JSON from string: elapsed time: 6.738140036 seconds (441511036 bytes allocated)
Parsing JSON directly from file: elapsed time: 14.05050392 seconds (534468676 bytes allocated)
Generating JSON: elapsed time: 3.023333918 seconds (130109004 bytes allocated)
Version Info:
Python:
2.7.5+ (default, Feb 27 2014, 19:39:55)
[GCC 4.8.1]
Julia:
Julia Version 0.3.0-prerelease+2682
Commit 5291e96* (2014-04-19 20:22 UTC)
Platform Info:
System: Linux (i686-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5320 @ 1.86GHz
WORD_SIZE: 32
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm