Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread Rodrigo Rosenfeld Rosas
I wrote this in that mentioned issue on GitHub: " I tried disabling ETag and ConditionalGet middlewares but couldn't get any luck either in development or production environments." So, I don't think the development environment is the reason in this case. I'd love to hear about more wild guess

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread Allen Madsen
Completely wild guess, but the issue you're seeing could be related to the fact that you're running in development mode. I wouldn't trust any benchmark unless the app was in production mode. One reason is the code reloading in development mode. Allen Madsen http://www.allenmadsen.com On Wed, Feb

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread Rodrigo Rosenfeld Rosas
I've created this issue in GitHub: https://github.com/rails/rails/issues/14117 Here's a sample application: https://github.com/rosenfeld/rails-template-streaming-bug And you can see it live on OpenShift here: http://railstemplatestreamingbug-rosenfeld.rhcloud.com/ It would be interesting to

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread richard schneeman
I didn't know you could turn off caching in chrome. I'll have to take a better look into their dev tools. Once you figure this out, it could make a nice blog post on how to use front end + backend analytics to debug and speed up performance problems. On Wed, Feb 19, 2014 at 12:02 PM, Rodrigo Rose

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread Rodrigo Rosenfeld Rosas
On 19-02-2014 13:44, richard schneeman wrote: This functionality does not come from Rails, but rather Rack::Runtime (http://guides.rubyonrails.org/configuring.html#configuring-middleware) you can see the middleware here: https://github.com/rack/rack/blob/master/lib/rack/runtime.rb. It looks pr

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread richard schneeman
This functionality does not come from Rails, but rather Rack::Runtime ( http://guides.rubyonrails.org/configuring.html#configuring-middleware) you can see the middleware here: https://github.com/rack/rack/blob/master/lib/rack/runtime.rb. It looks pretty simple, i'm not sure if it is streaming aware

[Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread Rodrigo Rosenfeld Rosas
As far as I understand, Rails uses a middleware by default that will send the total time spent on a request in the Rails side in the X-Runtime HTTP header. But it doesn't seem to be reliable in the sense that when I perform a request against http://localhost:3000/ (development environment, tes