Ian Lewis
Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development. About Me...

pytyrantはpython-tokyotyrantよりずっと速い

夏のPython温泉Bob様が作ってくれたピュアーパイソンクライアントpytyrant酒徳さんpython-tokyotyrantより速いという話を聴いたとmoriyoshiさんに言った。それで、moriyoshiさんはprofileのテストを作ってくれたけど、結果として、pytyrantとpython-tokyotyrantはあまり変わらないのが出た。

でも、このコードは一つのスレッドでテストしている。複数のクライアントが同時に接続している場合はどうかと思って、今日テストを作ってみた。

これを実行するとpytyrantのほうがずっと速い.

python-tokyotyrant
********************
Running 20 threads took 6.755 seconds
Running 20 threads took 5.392 seconds
Running 20 threads took 5.516 seconds
Running 20 threads took 27.191 seconds
Running 20 threads took 30.575 seconds
Running 20 threads took 34.699 seconds
pytyrant
********************
Running 20 threads took 1.748 seconds
Running 20 threads took 1.736 seconds
Running 20 threads took 1.716 seconds
Running 20 threads took 8.922 seconds
Running 20 threads took 8.716 seconds
Running 20 threads took 8.746 seconds
理由が分からないけども、python-tokyotyrantはPyRexを使ったわけですかね?
このエントリーを含むはてなブックマーク はてなブックマーク - pytyrantはpython-tokyotyrantよりずっと速い

blog comments powered by Disqus