com.sun.faban.driver.util
Class FabanHTTPBench
java.lang.Object
com.sun.faban.driver.util.FabanHTTPBench
public class FabanHTTPBench
- extends Object
This is the "common driver" for simple HTTP benchmarking. It allows a
user to setup a single command-line that will create the appropriate
run.xml file, run the HTTP driver, and print out the ops/sec and other
data from the summary.xml: e.g
%java [jvmargs] com.sun.faban.driver.util.FabanHTTPBench -c 500 -W 500 -s http://localhost:8080/Ping/PingServlet
ops/sec: 7169.300
% errors: 0.0
avg. time: 0.219
max time: 2.861
90th %: 0.32
The above command runs 500 simlutaneous connections to PingServlet, which
served 7169 operations per second with an average time of 0.21 seconds.
- Author:
- Scott Oaks
Method Summary |
static void |
main(String[] args)
Runs the fhb. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FabanHTTPBench
public FabanHTTPBench()
main
public static void main(String[] args)
throws Exception
- Runs the fhb.
- Parameters:
args
- The fhb arguments
- Throws:
Exception
- An error occurred running the fhb