Saturday, January 17, 2015

httperf ile http performance testing

httperf - HTTP performance measurement tool



httperf --hog --server <server_ip_address> --port 80 --uri /index.php --rate 150 --num-conn 10 --num-call 500

       httperf --hog --server www
          This  command causes httperf to create a connection to host www,
          send a request for the root document (http://www/), receive  the
          reply,  close  the  connection,  and then print some performance

       httperf --hog --server www --num-conn 100 --ra 10 --timeout 5
          Like above, except that a total of 100 connections  are  created
          and  that connections are created at a fixed rate of 10 per sec‐
          ond.  Note  that    option    ``--rate''  has     been  abbreviated  to

       httperf --hog --server=www --wsess=10,5,2 --rate 1 --timeout 5
          Causes httperf to generate a total of 10 sessions at a rate of 1
          session per second.  Each session consists of 5 calls  that  are
          spaced out by 2 seconds.

       httperf --hog --server=www --wsess=10,5,2 --rate=1 --timeout=5 --ssl
          Like  above,  except that httperf contacts server www via SSL at
          port 443 (the default port for SSL connections).

       httperf --hog --server www --wsess=10,5,2  --rate=1  --timeout=5     --ssl
       --ssl-ciphers=EXP-RC4-MD5:EXP-RC2-CBC-MD5   --ssl-no-reuse  --http-ver‐
          Like above, except that httperf will inform the server  that  it
          can   only   select  from     two  cipher  suites  (EXP-RC4-MD5  or
          EXP-RC2-CBC-MD5); furthermore, httperf will use HTTP version 1.0
          which requires a new TCP connection for each request.  Also, SSL
          session ids  are    not  reused,  so  the  entire  SSL  connection
          establishment  process  (known  as the SSL handshake) occurs for
          each connection.

No comments:

Post a Comment