A benchamrk suite comparing serialization libraries on Ruby.
Simply run bundle exec rake
to run all test cases.
Following environment variables control benchmark settings:
- LOOP= repeat benchmark. default is 2
- WEIGHT= "light": reduce count. "heavy": increase count
- EXCLUDE= comma-separated name of libraries to exclude
- ONLY= comma-separated name of libraries to include
- REPORT_DIR= path to a directory to put report html. default is ./reports
This data is from Twitter API. It consists of mainly hash and strings. See cases/twitter.rb.
rake run:twitter
This data consist of a binary 6KB image and a few metadata. See cases/image.rb.
rake run:image
This data only include integers. See cases/integer.rb
rake run:integer
This is geographical data from GeoJSON. It consists of hash, strings, arrays and floating points. See cases/geo.rb.
rake run:geo
This is 3D model data from blender-webgl-exporter. It includes a lot of floating points. See cases/3dmodel.rb.
rake run:3dmodel