Skip to content

Instantly share code, notes, and snippets.

@lsbardel
Last active January 1, 2016 00:49
Show Gist options
  • Save lsbardel/8068579 to your computer and use it in GitHub Desktop.
Save lsbardel/8068579 to your computer and use it in GitHub Desktop.
pulsards versus redis

Benchmarks on a osx 10.8.5 with 2.7 Ghz Intel Core i7

  • pulsards - python 3.3: 6.4 seconds
  • pulsards - pypy 2.2.1: 2.35 seconds
  • redis 2.8: 1.05 seconds

Redis is 6 times faster than pulsar on python 3.3, but only 2.2 times faster than pulsar on pypy.

Impressive pypy!

pulsards - python 3.3

./redis-benchmark -p 6410 -t set -d 100 -n 100000
====== SET ======
  100000 requests completed in 6.40 seconds
  50 parallel clients
  100 bytes payload
  keep alive: 1

0.00% <= 2 milliseconds
0.03% <= 3 milliseconds
99.83% <= 6 milliseconds
99.95% <= 7 milliseconds
99.97% <= 8 milliseconds
99.98% <= 11 milliseconds
100.00% <= 12 milliseconds
100.00% <= 12 milliseconds
15615.24 requests per second

pulsards - pypy 2.2.1

./redis-benchmark -p 6410 -t set -d 100 -n 100000
====== SET ======
100000 requests completed in 2.35 seconds
50 parallel clients
100 bytes payload
keep alive: 1

0.02% <= 1 milliseconds
98.08% <= 2 milliseconds
99.95% <= 3 milliseconds
99.95% <= 10 milliseconds
99.98% <= 12 milliseconds
99.99% <= 13 milliseconds
100.00% <= 13 milliseconds
42625.75 requests per second

redis

./redis-benchmark -t set -d 100 -n 100000
====== SET ======
  100000 requests completed in 1.05 seconds
  50 parallel clients
  100 bytes payload
  keep alive: 1

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
95602.30 requests per second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment