Search code examples
laravellaravel-4url-routingdispatchclockwork

Very long "Router Dispatch" in Clockwork with Laravel 4 on localhost


I've got a Laravel app setup locally with (what seems to me) very poor performance as you can see below:

Laravel 4 time line with Clockwork

My setup:

  • W8 on a pretty fast laptop with SSD
  • XAMPP 3.2.1
  • Laravel 4.1.*
  • Clockwork 1.* (only added the controller event as desribed in the docs)
  • Debug mode true

The scenario described:

  • A logged in user access a page with a list of prospects : 1216ms
  • Then the user logs out : 1164ms
  • Finally the user is redirected to the login page : 1165ms

As you can see in every single request the bottleneck is the "Router Dispatch" event. What can I do to dig further, and most importantly what can I do to improve its duration?

Or maybe because this is a dev environnment these are expected numbers? (I don't believe so, but I might be wrong).


Solution

  • After updating my XAMPP to the latest and Laravel to 4.2, this just got fixed by itself.