mirror of
https://github.com/mCaptcha/cache.git
synced 2024-11-28 11:58:42 +03:00
14 lines
446 B
Bash
Executable file
14 lines
446 B
Bash
Executable file
#!/bin/sh
|
|
readonly NUM_REQUESTS=1000000
|
|
|
|
echo "running set and get without pipelining"
|
|
redis-benchmark -n 1000000 -t set,get -q
|
|
|
|
echo "mCaptcha cache without piplining"
|
|
redis-benchmark -n $NUM_REQUESTS -q MCAPTCHA_CACHE.COUNT mycounter 45
|
|
|
|
echo "running set and get with pipelining"
|
|
redis-benchmark -n 1000000 -t set,get -q -P 16
|
|
|
|
echo "mCaptcha cache with piplining"
|
|
redis-benchmark -P 16 -n $NUM_REQUESTS -q MCAPTCHA_CACHE.COUNT mycounter 45
|