Related source code for my blog post A Tale of Two Queues, benchmarking Redis and ZeroMQ pub-sub, using Python and Google's Go language.
Following are the software and library requirements for running these benchmarks, using homebrew for OSX, pip for Python and go get for Go. Installation should be similar on various Linuxes using their respective package managers rather than homebrew. You'll also need to run Redis once installed.
$ brew install zeromq [1]
$ brew install redis [2]
$ brew install gnuplot [3]
$ pip install pyzmq [4]
$ pip install redis [5]
$ pip install hiredis [6]
$ go get github.com/garyburd/redigo/redis [7]
$ go get github.com/alecthomas/gozmq [8]
- http://www.zeromq.org
- http://redis.io
- http://www.gnuplot.info
- https://github.com/zeromq/pyzmq
- https://github.com/andymccurdy/redis-py
- https://github.com/pietern/hiredis-py
- https://github.com/garyburd/redigo
- https://github.com/alecthomas/gozmq
Here are some interesting additions others have contributed: