简体   繁体   English

在Clockwork中使用localhost上的Laravel 4进行很长的“路由器调度”

[英]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应用程序,(在我看来)性能很差,如下所示:

Laravel 4时间线与发条

My setup: 我的设置:

  • W8 on a pretty fast laptop with SSD 配备SSD的快速笔记本电脑上的W8
  • XAMPP 3.2.1 XAMPP 3.2.1
  • Laravel 4.1.* Laravel 4.1。*
  • Clockwork 1.* (only added the controller event as desribed in the docs) Clockwork 1。*(仅添加了文档中描述的控制器事件)
  • Debug mode true 调试模式为true

The scenario described: 场景描述:

  • A logged in user access a page with a list of prospects : 1216ms 登录的用户访问包含潜在客户列表的页面: 1216ms
  • Then the user logs out : 1164ms 然后用户注销: 1164ms
  • Finally the user is redirected to the login page : 1165ms 最后,用户被重定向到登录页面: 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). (我不相信,但是我可能是错的)。

将我的XAMPP更新为最新版本并将Laravel更新为4.2之后,此问题已自行解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM