Skip to content

Instantly share code, notes, and snippets.

@yoki123
Last active November 18, 2015 05:25
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 yoki123/c6f8a9c4f375f61359e2 to your computer and use it in GitHub Desktop.
Save yoki123/c6f8a9c4f375f61359e2 to your computer and use it in GitHub Desktop.
torpc benchmark
# lasted at 0632ad4
python benchmark.py -c 1 -n 100000
Throughput: 8986 [#/sec]
Throughput: 8968 [#/sec]
Throughput: 9031 [#/sec]
python benchmark.py -c 2 -n 100000
Throughput: 16386 [#/sec]
Throughput: 15297 [#/sec]
Throughput: 15702 [#/sec]
python benchmark.py -c 3 -n 100000
Throughput: 20377 [#/sec]
Throughput: 20030 [#/sec]
Throughput: 20259 [#/sec]
python benchmark.py -c 4 -n 100000
Throughput: 21701 [#/sec]
Throughput: 21642 [#/sec]
Throughput: 21519 [#/sec]
pypy benchmark.py -c 1 -n 500000
Throughput: 32358 [#/sec]
Throughput: 32007 [#/sec]
Throughput: 32482 [#/sec]
pypy benchmark.py -c 2 -n 500000
Throughput: 61592 [#/sec]
Throughput: 63725 [#/sec]
Throughput: 64467 [#/sec]
pypy benchmark.py -c 3 -n 500000
Throughput: 79622 [#/sec]
Throughput: 76963 [#/sec]
Throughput: 80604 [#/sec]
pypy benchmark.py -c 4 -n 500000
Throughput: 77772 [#/sec]
Throughput: 80556 [#/sec]
Throughput: 80378 [#/sec]
older
-----------------------------------
# via commit at https://github.com/yoki123/torpc/commit/f9db589fda923e3229186a84f200886c0961a36c
# no timeout benchmark
pypy benchmark.py
async_callback: 58447 op/s
async_callback: 58960 op/s
async_callback: 59151 op/s
async_coroutine: 52727 op/s
async_coroutine: 53252 op/s
async_coroutine: 50724 op/s
python benchmark.py
async_callback: 16233 op/s
async_callback: 16528 op/s
async_callback: 16638 op/s
async_coroutine: 13192 op/s
async_coroutine: 12970 op/s
async_coroutine: 13192 op/s
-----------------------------
# pypy and unix domain socket
async_coroutine: 65795 op/s
async_coroutine: 65030 op/s
async_coroutine: 67100 op/s
async_callback: 73284 op/s
async_callback: 74507 op/s
async_callback: 74362 op/s
at 53b4b56
-----------------------------
pypy tcp
async_callback: 58002 op/s
async_callback: 57796 op/s
async_callback: 57562 op/s
async_coroutine: 53032 op/s
async_coroutine: 52494 op/s
async_coroutine: 52996 op/s
pypy unix domain socket
async_callback: 78176 op/s
async_callback: 78865 op/s
async_callback: 75625 op/s
async_coroutine: 66167 op/s
async_coroutine: 71519 op/s
async_coroutine: 70818 op/s
python tcp
async_callback: 16000 op/s
async_callback: 15974 op/s
async_callback: 16025 op/s
async_coroutine: 12820 op/s
async_coroutine: 12870 op/s
async_coroutine: 12690 op/s
python unix domain socket
async_callback: 19569 op/s
async_callback: 19685 op/s
async_callback: 19531 op/s
async_coroutine: 14771 op/s
async_coroutine: 14684 op/s
async_coroutine: 14513 op/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment