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
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py | |
wsperf results - WebSocket Opening Handshake | |
Duration: 14898 ms | |
Total: 200000 | |
Success: 200000 | |
Fail: 0 | |
Fail %: 0.00 | |
Handshakes/sec: 13425 |
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
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9002 4 200000 1000 2000 > results.json | |
real 0m16.157s | |
user 0m31.936s | |
sys 0m19.932s | |
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py | |
wsperf results - WebSocket Opening Handshake | |
Duration: 15421 ms |
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
oberstet@corei7-ubuntu:~/scm/wsperf$ time ./wsperf ws://127.0.0.1:9000 4 400000 1000 2000 > results.json | |
real 0m32.012s | |
user 1m3.968s | |
sys 0m38.344s | |
oberstet@corei7-ubuntu:~/scm/wsperf$ ~/pypy-2.1/bin/pypy analyze.py | |
wsperf results - WebSocket Opening Handshake | |
Duration: 30439 ms |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ valgrind --tool=cachegrind ~/pypy-2.1/bin/pypy server.py --wsuri ws://localhost:9000 --workers 4 --silence | |
==12040== Cachegrind, a cache and branch-prediction profiler | |
==12040== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote et al. | |
==12040== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==12040== Command: /home/oberstet/pypy-2.1/bin/pypy server.py --wsuri ws://localhost:9000 --workers 4 --silence | |
==12040== | |
--12040-- warning: L3 cache found, using its data for the LL simulation. | |
RPython traceback: | |
File "rpython_jit_metainterp_compile.c", line 19640, in send_bridge_to_backend | |
File "rpython_jit_backend_x86_assembler.c", line 65178, in Assembler386_assemble_bridge |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo$ valgrind --tool=cachegrind /home/oberstet/pypy-20131031/bin/pypy server.py --wsuri ws://localhost:9000 | |
==12226== Cachegrind, a cache and branch-prediction profiler | |
==12226== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote et al. | |
==12226== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==12226== Command: /home/oberstet/pypy-20131031/bin/pypy server.py --wsuri ws://localhost:9000 | |
==12226== | |
--12226-- warning: L3 cache found, using its data for the LL simulation. | |
RPython traceback: | |
File "rpython_jit_metainterp_compile.c", line 19948, in send_bridge_to_backend | |
File "rpython_jit_backend_x86_assembler_1.c", line 4264, in Assembler386_assemble_bridge |
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
# ======== | |
# captured on: Sun Nov 3 16:17:50 2013 | |
# hostname : corei7-ubuntu | |
# os release : 3.8.0-32-generic | |
# perf version : 3.11.0 | |
# arch : x86_64 | |
# nrcpus online : 8 | |
# nrcpus avail : 8 | |
# cpudesc : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz | |
# cpuid : GenuineIntel,6,26,4 |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ ll | |
insgesamt 10492 | |
drwxrwxr-x 2 oberstet oberstet 4096 Nov 3 17:31 ./ | |
drwxrwxr-x 16 oberstet oberstet 4096 Okt 31 09:07 ../ | |
-rw-rw-r-- 1 oberstet oberstet 2188 Okt 31 10:17 index.html | |
-rw-rw-r-- 1 oberstet oberstet 10710690 Nov 3 17:32 pypy3.log | |
-rw-rw-r-- 1 oberstet oberstet 0 Nov 3 17:31 pypy3.log.fork30884 | |
-rw-rw-r-- 1 oberstet oberstet 0 Nov 3 17:31 pypy3.log.fork30885 | |
-rw-rw-r-- 1 oberstet oberstet 0 Nov 3 17:31 pypy3.log.fork30886 | |
-rw-rw-r-- 1 oberstet oberstet 0 Nov 3 17:31 pypy3.log.fork30887 |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ ll | |
insgesamt 3712 | |
drwxrwxr-x 2 oberstet oberstet 4096 Nov 3 19:37 ./ | |
drwxrwxr-x 16 oberstet oberstet 4096 Okt 31 09:07 ../ | |
-rw-rw-r-- 1 oberstet oberstet 90 Nov 3 19:35 foo.py | |
-rw-rw-r-- 1 oberstet oberstet 2188 Okt 31 10:17 index.html | |
-rw------- 1 root root 1875496 Nov 3 18:22 perf.data | |
-rw------- 1 root root 1882304 Nov 3 18:20 perf.data.old | |
-rw-r--r-- 1 root root 1048 Nov 3 17:44 perf-script.py | |
-rw-rw-r-- 1 oberstet oberstet 2382 Nov 2 21:30 README.md |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ ll | |
insgesamt 436 | |
drwxrwxr-x 2 oberstet oberstet 4096 Nov 3 20:00 ./ | |
drwxrwxr-x 16 oberstet oberstet 4096 Okt 31 09:07 ../ | |
-rw-rw-r-- 1 oberstet oberstet 2188 Okt 31 10:17 index.html | |
-rw------- 1 root root 351484 Nov 3 20:00 perf.data | |
-rw------- 1 root root 66448 Nov 3 20:00 perf.data.old | |
-rw-rw-r-- 1 oberstet oberstet 2244 Nov 3 19:55 README.md | |
-rw-rw-r-- 1 oberstet oberstet 7589 Nov 3 20:00 server.py | |
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ sudo perf record ~/pypy-20131102/bin/pypy server.py --workers 4 |
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
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ rm *.log* | |
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ ll | |
insgesamt 24 | |
drwxrwxr-x 2 oberstet oberstet 4096 Nov 3 20:06 ./ | |
drwxrwxr-x 16 oberstet oberstet 4096 Okt 31 09:07 ../ | |
-rw-rw-r-- 1 oberstet oberstet 2188 Okt 31 10:17 index.html | |
-rw-rw-r-- 1 oberstet oberstet 2244 Nov 3 19:55 README.md | |
-rw-rw-r-- 1 oberstet oberstet 7589 Nov 3 20:00 server.py | |
oberstet@corei7-ubuntu:~/scm/AutobahnPython/examples/websocket/echo_multicore$ ~/pypy-20131102/bin/pypy server.py --workers 4 | |
Alrighty: you run a capable epoll platform - good job! |