之前做了个基于 Tornado 的 RPC — ToRPC ,发了个帖在: http://v2ex.com/t/234388 ,
今天做了个全方位的 benchmark 。
由于服务器环境原因,主要对 Tornado 、 Twisted 、 Asyncio 框架进行 TCP Echo 测试。另外 PyPy3 只支持 Python3.3 ,放弃了用 pypy 跑 Asyncio 。
测试结果: https://github.com/yoki123/torpc/blob/master/examples/BENCHMARK.rst
代码基于: https://github.com/methane/echoserver
在这个测试结果中,没有考虑使用原始的 eventloop ,诸如server_gevent_loop.py
最后跑了 Golang 和 Epoll ,感觉还是编译语言确实牛啊!哎~~~