Data for "Erlang is slow: and other rubbish". https://kivikakk.ee/2013/05/20/erlang_is_slow.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yuki Izumi c3cbdc75a8 https:// 4 years ago
src Test with Big Data™. 7 years ago
.gitignore Initial template commit. 7 years ago
README.md https:// 4 years ago
citylots-less.json Test with Big Data™. 7 years ago
example.json Jiffy's out by a mile. 7 years ago
jsontest.py README 7 years ago
rebar Initial template commit. 7 years ago
rebar.config Jiffy's out by a mile. 7 years ago

README.md

jsontest

https://kivikakk.ee/2013/05/20/erlang_is_slow.html

tl;dr: results

Average speed to parse 5.9MiB JSON payload 10x, sorted by time ascending:

  • Python ujson: 1,160ms
  • Erlang jiffy: 1,271ms
  • Python simplejson (with C): 1,561ms
  • Python json: 2,378ms
  • Erlang mochijson2: 8,692ms
  • Erlang mochijson: 11,111ms
  • Python simplejson (no C): 16,805ms

DIY

Here’s the source used to run the speed comparison tests.

For the Erlang libraries,

# one-time setup:
./rebar get-deps
./rebar compile

Then you can run the tests:

./rebar eunit skip_deps=true

For the Python stuff, ensure you have simplejson installed (and check that you have a recent version with C speedups) and run:

python jsontest.py

Check jsontest.py’s header docstring for info on getting simplejson, and disabling/enabling speedups.

Thanks

The dataset is a reduction of the large JSON blob available at https://github.com/zeMirco/sf-city-lots-json.