GitXplorerGitXplorer
m

aioredis-benchmarks

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
04070f807f50e5d906b4eedfa92b2297f03e74ab

Add initial benchmarks for aioredis issue

mm-novikov committed 3 years ago
Verified
1fffb37189fcefc637c0ed451de681b6feaf4543

Initial commit

committed 3 years ago

README

The README file for this repository.

Benchmarking aioredis 2.0

To run benchmarks

# To pull relevant aioredis versions
make submodules
# Setup aioredis dependencies
make setup-env
# Run benchmarks
make benchmark

It's possible to set envoriment variables before running make to customize benchmark: e.g.

REDIS_URL="redis://localhost:6379/" NUM_ITERATIONS=1500 MAX_CONNECTIONS=1 make benchmark

Results with locally running redis:

simple_async: 1500 tasks with blocking pool with 64 connections: 0.048108816146850586s
aioredis1: 1500 tasks with blocking pool with 64 connections: 0.07063984870910645s
aioredis2: 1500 tasks with blocking pool with 64 connections: 0.34310436248779297s
aioredis2_proto: 1500 tasks with blocking pool with *1* connection: 0.0847783088684082s

Results with remote running redis:

simple_async: 10000 tasks with blocking pool with 64 connections: 0.364227294921875s
aioredis1: 10000 tasks with blocking pool with 64 connections: 0.42733216285705566s
aioredis2: 10000 tasks with blocking pool with 64 connections: 16.949565649032593s
aioredis2_proto: 10000 tasks with blocking pool with *1* connection: 0.5196411609649658s