- Very slow running as_json (Mongoid Sinatra)
- get '/games' do
- content_type :text
- obj = nil
- t1 = Benchmark.measure { @games = filtered_games.entries }
- t2 = Benchmark.measure { obj = @games.as_json }
- t3 = Benchmark.measure { obj.to_json }
- "Query: #{t1}nTo Object: #{t2}nJSON: #{t3}"
- end