frsyuki / ruby-serializers

A benchamrk suite comparing serialization libraries on Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby-serializers

A benchamrk suite comparing serialization libraries on Ruby.

Simply run bundle exec rake to run all test cases.

options

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

libraries

test cases

Twitter

This data is from Twitter API. It consists of mainly hash and strings. See cases/twitter.rb.

rake run:twitter

Image

This data consist of a binary 6KB image and a few metadata. See cases/image.rb.

rake run:image

Integer

This data only include integers. See cases/integer.rb

rake run:integer

Geo

This is geographical data from GeoJSON. It consists of hash, strings, arrays and floating points. See cases/geo.rb.

rake run:geo

3D Model

This is 3D model data from blender-webgl-exporter. It includes a lot of floating points. See cases/3dmodel.rb.

rake run:3dmodel

About

A benchamrk suite comparing serialization libraries on Ruby


Languages

Language:Ruby 91.6%Language:JavaScript 8.4%