Skip to content

makmic/json-rendering-performance-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

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

Setup

  • bundle install
  • bin/rails db:create db:migrate db:seed <-- this will generate a ~500MB sized table and thus take a while
  • bin/rails server
  • Navigate your browser to localhost:3000
  • Run /bin/measure-endpoints to measure different JSON rendering strategies on your machine

Releases

No releases published

Packages

No packages published

Languages