dsqa6272 2009-10-20 19:40 采纳率: 0%
浏览 76
已采纳

php profiling:结果是正常的?

As testing server, my computer (Windows 7, Amd Athlon X2, 1 GB RAM) is used.

My application is based on Zend Framework. It uses MySQL and Zend_Translation, and Memcached as cache.

I'm getting execution time of my PHP application with simple microtime(): Execution time 0.086215972900391 (when db and translation data is cached)

I want to know if my results are bad, very bad or maybe normal. How to know it? What can I run on my computer to compare with? Or maybe there're another ways? Or maybe I shouldn't bother until I run it on more 'real' server?

  • 写回答

3条回答 默认 最新

  • duanjia7912 2009-10-25 19:57
    关注

    This is a fundamental question because...

    • All benchmarks are different.
    • All applications are different.

    Personally, I think your measured "execution time" is more than alright. :) You could however do slightly more comprehensive testing using Apache Bench (ab) or jmeter. So the idea with ab and jmeter are to do load tests, this is to determine how your application performs when multiple clients (users) use it.

    Also, for a great benchmark, it helps to provide as many details as possible. That would include your hardware setup (CPU, RAM, HDD, etc.) but your application as well. Otherwise it's hard to judge how efficient this is.

    Anyway, the bottom line, 0.08 sounds good to me! :-)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来