zoukankan      html  css  js  c++  java
  • Performance tool httperf

    httperf: A relatively well-known open source utility developed by HP, for Linux operating systems only

    website: http://www.hpl.hp.com/research/linux/httperf

    the source comes as a tar.gz archive and needs to be compiled using the standard method 

    1
    2
    3
    4
    5
    ./configure
    ./make
    ./make install
     
    $ httperf --server 192.168.1.100 --port 80 --uri /index.html --rate 300 --num-conn 3000 --num-call 1 --timeout 5

    in this example httperf will download http://192.168.1.100/index.html repeatedly, 300 times per seconds, resulting in a total of 30,000 requests.

    --rate how many request should be sent every second

    --num-conn the total amount of connections 

    --num-call how many requests should be sent per connection

    --timeout quantity of seconds elapsed before a request is considered lost

    If the success ratio is 100 percent or the response time near 0 ms, increase the request rate and run the rest again until the server shows signs of weakness, 

    once the results begin to look a little less perfect tweak the appropriate configuration directives and run the test again

  • 相关阅读:
    Jessica's Reading Problem POJ
    FatMouse and Cheese HDU
    How many ways HDU
    Humble Numbers HDU
    Doing Homework again
    Stacks of Flapjacks UVA
    Party Games UVA
    24. 两两交换链表中的节点
    面试题 03.04. 化栈为队
    999. 可以被一步捕获的棋子数
  • 原文地址:https://www.cnblogs.com/allenhaozi/p/4508432.html
Copyright © 2011-2022 走看看