Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 1, 2013 20:47
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/7271698 to your computer and use it in GitHub Desktop.
Save oberstet/7271698 to your computer and use it in GitHub Desktop.
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 2 200000 500 500 > results.json
real 0m21.262s
user 0m25.984s
sys 0m18.920s
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
wsperf results - WebSocket Opening Handshake
Duration: 20592 ms
Total: 200000
Success: 200000
Fail: 0
Fail %: 0.00
Handshakes/sec: 9712
Min: 3.6 ms
SD: 4.3 ms
Avg: 12.8 ms
Median: 14.3 ms
q90 : 17.8 ms
q95 : 19.0 ms
q99 : 20.9 ms
q99.9 : 23.8 ms
q99.99: 25.6 ms
Max: 28.1 ms
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 500 500 > results.json
^C
real 1m23.467s
user 0m32.276s
sys 0m23.508s
oberstet@corei7-ubuntu:~/scm/wsperf$ ^C
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 500 500 > results.json
real 0m17.712s
user 0m32.872s
sys 0m23.932s
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py
wsperf results - WebSocket Opening Handshake
Duration: 16982 ms
Total: 200000
Success: 199978
Fail: 22
Fail %: 0.01
Handshakes/sec: 11776
Min: -1430228.6 ms
SD: 14928.4 ms
Avg: -145.1 ms
Median: 8.5 ms
q90 : 11.4 ms
q95 : 11.8 ms
q99 : 12.5 ms
q99.9 : 1512.5 ms
q99.99: 3255.1 ms
Max: 3261.6 ms
oberstet@corei7-ubuntu:~/scm/wsperf$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment