Created
May 22, 2017 17:29
-
-
Save eik3/1b71ddd30e13a5b7ef0a1894d89ae90f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k=k$RANDOM | |
function r { | |
redis-cli -p 16379 $* | |
} | |
count=$1 | |
i=0 | |
while [ $i -lt $count ]; do | |
sleep .1 | |
let i+=1 | |
echo `date -uIn` counter:$i incr:`r incrby $k 1` server:`r info server | grep port` | |
done | |
r get $k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment