A benchmark for some popular json renderers:
- ActiveSupport::JSON
- jbuilder
- RABL
- ROAR
- ActiveModel::Serializer
- acts_as_api
- Grape::Entity
- fast_jsonapi
Run following command to setup data
You need to create the database configuration, which you can copy the default. You must change the credential, though.
cp config/database.yml.example config/database.yml
rake db:create
rake db:schema:load
rake db:seed
Now, you can start benchmarking using runner.sh
with:
chmod +x runner.sh
./runner.sh