GitXplorerGitXplorer
m

aioredis-benchmarks

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
9259d9a323821a7423eadaa37957d212fb85731d

Add remote benchmarks and user/pass auth for simple client

committed 3 years ago
Verified
247adce7531af77014e67a02ebce6013276ab027

don't use private api when interacting with transport

mm-novikov committed 3 years ago
Verified
5ebec42c0542929517f64448e318f59e851848f4

Properly initialize single connection redis for proto test

mm-novikov committed 3 years ago
Verified
6d463cd2f64e060cb170c415955fb506c2ed5b32

Add hacky version for aioredis + asyncio.Protocol

mm-novikov committed 3 years ago
Verified
59a668c5292e92d068e24817809a8459a93804b8

Add example results

mm-novikov committed 3 years ago
Verified
2b1cd24edc16563e531e26ad94e9a3088d74fd95

Add customization example

mm-novikov 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