Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (23 sloc) 0.913 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#!/bin/bash

# packing test - check get/set throughput after having grown the queue to different sizes
# kestrel is on port 22133
# darner is on port 22134

# kestrel reaches its best performance after a warmup period

echo -n "warming up kestrel..."

./db -p 22133 -s 100000 -g 100000 >/dev/null

echo "done."

echo -ne "flush db_bench\r\n" | nc localhost 22133 >/dev/null

sync # don't leak across benchmarks

for i in 0 1024 16384 65536 262144 1048576 4194304
do
   ./db -p 22133 -s $i -g 0 -i 1024 >/dev/null
   printf "kestrel %8i sets: " "$i"
   ./db -p 22133 -s 100000 -g 100000 -i 1024 | grep -i "requests per second" | awk -F" " '{print $2}'
done

sync

for i in 0 1024 16384 65536 262144 1048576 4194304
do
   ./db -p 22134 -s $i -g 0 -i 1024 >/dev/null
   printf "darner %8i sets: " "$i"
   ./db -p 22134 -s 100000 -g 100000 -i 1024 | grep -i "requests per second" | awk -F" " '{print $2}'
done
Something went wrong with that request. Please try again.