Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 1, 2013 21:18
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 oberstet/7272125 to your computer and use it in GitHub Desktop.
Save oberstet/7272125 to your computer and use it in GitHub Desktop.
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json
real 0m15.669s
user 0m32.068s
sys 0m19.104s
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
wsperf results - WebSocket Opening Handshake
Duration: 14929 ms
Total: 200000
Success: 200000
Fail: 0
Fail %: 0.00
Handshakes/sec: 13396
Min: 1.7 ms
SD: 14.8 ms
Avg: 20.7 ms
Median: 14.8 ms
q90 : 37.5 ms
q95 : 55.7 ms
q99 : 74.4 ms
q99.9 : 117.0 ms
q99.99: 134.9 ms
Max: 137.3 ms
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json
^C^C
real 1m5.186s
user 0m30.884s
sys 0m18.972s
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json
real 0m15.562s
user 0m31.736s
sys 0m19.640s
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
wsperf results - WebSocket Opening Handshake
Duration: 14823 ms
Total: 200000
Success: 200000
Fail: 0
Fail %: 0.00
Handshakes/sec: 13492
Min: 1.5 ms
SD: 12.1 ms
Avg: 18.3 ms
Median: 14.3 ms
q90 : 32.7 ms
q95 : 38.8 ms
q99 : 72.0 ms
q99.9 : 98.1 ms
q99.99: 106.2 ms
Max: 109.8 ms
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json
^C
real 0m45.589s
user 0m30.848s
sys 0m18.708s
oberstet@corei7-ubuntu:~/scm/wsperf$ ^C
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "analyze.py", line 21, in <module>
for prefix, event, value in parser:
File "/home/oberstet/pypy-2.1/site-packages/ijson-1.1-py2.7.egg/ijson/common.py", line 63, in parse
for event, value in basic_events:
File "/home/oberstet/pypy-2.1/site-packages/ijson-1.1-py2.7.egg/ijson/backends/python.py", line 191, in basic_parse
for value in parse_value(lexer):
File "/home/oberstet/pypy-2.1/site-packages/ijson-1.1-py2.7.egg/ijson/backends/python.py", line 144, in parse_value
raise common.IncompleteJSONError()
IncompleteJSONError: Incomplete or empty JSON data
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json
real 0m15.624s
user 0m31.892s
sys 0m19.680s
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
wsperf results - WebSocket Opening Handshake
Duration: 14886 ms
Total: 200000
Success: 200000
Fail: 0
Fail %: 0.00
Handshakes/sec: 13435
Min: 1.7 ms
SD: 10.9 ms
Avg: 17.7 ms
Median: 14.3 ms
q90 : 31.3 ms
q95 : 36.2 ms
q99 : 72.7 ms
q99.9 : 94.3 ms
q99.99: 104.9 ms
Max: 117.8 ms
oberstet@corei7-ubuntu:~/scm/wsperf$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment