- Install memcached and RabbitMQ or Redis
- Install Dramatiq:
pip install dramatiq[rabbitmq]
orpip install dramatiq[redis]
- Install the dependencies:
pip install -r requirements.txt
- Run
redis-server
orrabbitmq-server
in a terminal window. - In a separate terminal window, run
memcached
.
Run python bench.py
to run the Dramatiq benchmark, and python bench.py --use-celery
to run the Celery benchmark. Prepend env REDIS=1
to each command to run the benchmarks against Redis.
Run python bench.py --help
to see all the available options.
As with any benchmark, take it with a grain of salt. Dramatiq has an advantage over Celery in most of these benchmarks by design.