mirror of
https://github.com/mCaptcha/cache.git
synced 2024-11-28 03:49:41 +03:00
added benchmarks
This commit is contained in:
parent
39d7fedb5e
commit
8f657fc862
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -130,3 +130,22 @@ If counter exists, then count is incremented. Otherwise, it is created.
|
|||
```redis
|
||||
MCAPTCHA_CACHE.COUNT <counter-name> <leak-rate>
|
||||
```
|
||||
|
||||
## 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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue