# benchmark **Repository Path**: mirrors_seperman/benchmark ## Basic Information - **Project Name**: benchmark - **Description**: A collection of benchmarking tools - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Benchmarking # Install 1. Clone the repo 2. Copy settings_sample.py to settings.py and modify it for your setup # PyRedis 1. Make sure you have pyredis installed: `pip install pyredis` 2. run `./pyredis_benchmark.py` Example result: ``` ##################################################### # REDIS BENCHMARKING WITH PY REDIS # ##################################################### 10 keys made repeating tests 100 times. Get: Getting 10 keys from redis individually took 0.0286107707024 seconds. Mget: Getting 10 keys from redis usgin mget took 0.00733426094055 seconds. ``` # Python dict vs var pointing to value ``` ############################################################################ # DICTIONARY KEY GETTING vs. ASSIGNING KEY VALUE TO A VAR # ############################################################################ Getting dictionary key every time: 0.120291948318 Getting dictionary key and assigning it to a variable: 0.0843410491943 assigning a dictionary key value to a variable is 1.42625624731 faster ``` # Hashes comparison ``` ############################################################################ # HASHES COMPARISON # ############################################################################ sha256: 0.0032799430191516876 mmh3: 0.0007216100057121366 mmh3 is 4.545312555519243 faster than sha256 ```