How fast can we get at rendering a Model's database column as JSON?
In this minimal Rails app, I tried to find out.
See this card for the corresponding write-up: https://makandracards.com/makandra/622390-speed-json-rendering-rails
bundle install
bin/rails db:create db:migrate db:seed
<-- this will generate a ~500MB sized table and thus take a whilebin/rails server
- Navigate your browser to
localhost:3000
- Run
/bin/measure-endpoints
to measure different JSON rendering strategies on your machine