-
Notifications
You must be signed in to change notification settings - Fork 7
/
bench.sh
executable file
·61 lines (53 loc) · 1.5 KB
/
bench.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
set -ex
SERVER=${1:-127.0.0.1}
NODE_ADD=${2:-""}
NODE_KILL=${3:-""}
N=${4:-""}
pushd build
make -j
popd
# for write_ratio in 1 0.66 0.33 ; do
# # Redis
# echo 'num_clients throughput latency' > redis-wr${write_ratio}.txt
# for num_clients in $(seq 32 -1 1); do
# sleep 5
# ./bench-redis.sh $num_clients $write_ratio $SERVER
# done
#
# # Chain
# for num_nodes in 1 2; do
# echo 'num_clients throughput latency' > chain-${num_nodes}node-wr${write_ratio}.txt
#
# for num_clients in $(seq 32 -1 1); do
# sleep 5
# ./seqput.sh $num_clients $num_nodes $write_ratio $SERVER &
# wait
# done
# done
# done
for write_ratio in 1 ; do
#for write_ratio in 1 0.66 0.33 ; do
# # Redis
# echo 'num_clients throughput latency' > redis-wr${write_ratio}.txt
# for num_clients in 32 28; do
# sleep 5
# ./bench-redis.sh $num_clients $write_ratio $SERVER
# done
# Chain
for num_nodes in 2; do
#for num_nodes in 2 1; do
echo 'num_clients throughput latency' > chain-${num_nodes}node-wr${write_ratio}.txt
# base=2
# limit=6
# for i in $(seq $limit -1 0); do
# num_clients=$(echo "$base^$i" | bc)
for num_clients in 1; do
# for num_clients in $(seq 32 -4 1); do
sleep 5
./seqput.sh $num_clients $num_nodes $write_ratio $SERVER $NODE_ADD $NODE_KILL $N &
wait
done
#done
done
done