Notice speed regression from v4 -> v5 with hiredis
Author: canikoCreated Nov 13, 2023Updated Sep 5, 2026
Labelsstale
Version: What redis-py and what redis version is the issue happening on? 5.0.1
Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure) Linux -> Python 3.10 docker
Description:
We have v4 with hiredis, and migrated to v5. The v4 to v5 was to refactor Redis.close to Redis.aclose. Following the migration, we noticed a decrease of 60-90% slower than speeds. We have a performance benchmark.
The regression occurs both in single command and pipelined transactions.
We are using:
- smembers
- scard
- hget
- lrange
Source: redis/redis-py