From 8f657fc862d69be4d2e2f43b048eac37510b42cf Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 2 Jun 2021 19:34:26 +0530 Subject: [PATCH] added benchmarks --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index fe6153d..9820b32 100644 --- a/README.md +++ b/README.md @@ -130,3 +130,22 @@ If counter exists, then count is incremented. Otherwise, it is created. ```redis MCAPTCHA_CACHE.COUNT ``` + +## Benchmark + +**NOTE:** These benchmarks are for reference only. Do not depend upon +them too much. When in doubt, please craft and run benchmarks that are +better suited to your workload. + +- platform: `Intel core i7-9750h` + +```bash +➜ ~ redis-benchmark -n 1000000 -t set,get -P 16 -q # set and get are +for baseline/reference +SET: 835421.88 requests per second, p50=0.759 msec +GET: 987166.81 requests per second, p50=0.711 msec + +➜ ~ redis-benchmark -n 1000000 -P 16 -q MCAPTCHA_CACHE.COUNT mycounter 45 + +MCAPTCHA_CACHE.COUNT mycounter 45: 280504.91 requests per second, p50=2.743 msec +```