to test my time of execution I use this code:
ActiveSupport::Notifications.subscribe 'process_action.action_controller' do |*args|
event = ActiveSupport::Notifications::Event.new(*args)
puts "Event received: #{event.duration}"
end
For a request which takes 137ms , it shows just 34ms but I saw in postman and pingdom it takes 137ms.
So where is rest of the 100ms time taking?
It says the request took 25ms, but in post man it took 90ms, so where did the rest of 65ms went?
I know its because of network and internet speed also matters for complete render.
I just wanna confirm that this is the correct time or something is missing here, for example if ApplicationController has a filter:
before_action :method_name
Then is it considering the action "method_name" also or just the current action ?
