Skip to content

Files

Latest commit

 

History

History
 
 

benchmarks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Celery vs Dramatiq benchmarks

Setup

  1. Install memcached and RabbitMQ or Redis
  2. Install Dramatiq: pip install dramatiq[rabbitmq] or pip install dramatiq[redis]
  3. Install the dependencies: pip install -r requirements.txt
  4. Run redis-server or rabbitmq-server in a terminal window.
  5. In a separate terminal window, run memcached.

Running the benchmarks

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.

Caveats

As with any benchmark, take it with a grain of salt. Dramatiq has an advantage over Celery in most of these benchmarks by design.