wuxiaolin
V2EX  ›  PHP

大家都怎么测试一个程序的运行速度的?

  •  
  •   wuxiaolin · Sep 5, 2012 · 5206 views
    This topic created in 5031 days ago, the information mentioned may be changed or developed.
    如题,大家是怎么测试的,还是有什么工具是比较好能测试的
    13 replies    1970-01-01 08:00:00 +08:00
    hzlzh
        1
    hzlzh  
    PRO
       Sep 5, 2012
    肉眼,玩笑~
    bigwang
        2
    bigwang  
       Sep 5, 2012
    time
    shiny
        3
    shiny  
    PRO
       Sep 5, 2012
    xdebug 或 xhprof
    reus
        4
    reus  
       Sep 5, 2012
    就写在脚本里啊
    wuxiaolin
        5
    wuxiaolin  
    OP
       Sep 5, 2012
    @reus 直接开头一时间,结尾一时间这样进行对比么?
    allenfantasy
        6
    allenfantasy  
       Sep 5, 2012
    LZ能具体点么……如果是gcc编译的话用gprof
    sqbing
        7
    sqbing  
       Sep 5, 2012
    gprof不支持多线程和动态库?
    reus
        8
    reus  
       Sep 5, 2012
    @wuxiaolin 是啊,很多都是这样的

    这是php节点啊各位
    wuxiaolin
        9
    wuxiaolin  
    OP
       Sep 5, 2012
    @reus 感谢啊
    呵呵,上面两位哥们的我不懂呢,说的是php
    zooandzoo
        10
    zooandzoo  
       Sep 5, 2012
    wincachegrind 或WEBgirnd 函数或方法执行时间一目了然
    allenfantasy
        11
    allenfantasy  
       Sep 6, 2012
    allenfantasy
        12
    allenfantasy  
       Sep 6, 2012
    @wuxiaolin 开头结尾加个测时?
    webgeekman
        13
    webgeekman  
       Sep 6, 2012
    如果真的是验收比较严格,或者对压力、速度、稳定性要求高的程序还是拿loadranner之类的专业测试工具吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5521 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 06:55 · PVG 14:55 · LAX 23:55 · JFK 02:55
    ♥ Do have faith in what you're doing.