Created
October 19, 2014 16:40
-
-
Save jmervine/6c9cd549972dc414aa4b to your computer and use it in GitHub Desktop.
httperf.py example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from httperfpy import Httperf | |
perf = Httperf(server="93.184.216.119", num_conns=10) | |
perf.parser = True | |
results = perf.run() | |
print "connection_rate_per_sec: " + results["connection_rate_per_sec"] | |
print "request_rate_per_sec: " + results["request_rate_per_sec"] | |
print "reply_rate_avg: " + results["reply_rate_avg"] | |
print "errors_total: " + results["errors_total"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment