Skip to content

Instantly share code, notes, and snippets.

@jmervine
Created October 19, 2014 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmervine/6c9cd549972dc414aa4b to your computer and use it in GitHub Desktop.
Save jmervine/6c9cd549972dc414aa4b to your computer and use it in GitHub Desktop.
httperf.py example
#!/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