-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrun-benchmark.sh
More file actions
executable file
·62 lines (35 loc) · 1.39 KB
/
run-benchmark.sh
File metadata and controls
executable file
·62 lines (35 loc) · 1.39 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
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
62
#!/bin/bash
TOTAL_REQUESTS_NUM=${TOTAL_REQUESTS_NUM:-10000}
UNIQUE_REQUESTS_NUM=${UNIQUE_REQUESTS_NUM:-1000}
TARGET_HOST=${TARGET_HOST:-localhost}
TARGET_PORT=${TARGET_PORT:-6566}
CONCURRENCY=${CONCURRENCY:-4}
trap "exit" INT
export LOAD_FEAST_SERVING_HOST=${TARGET_HOST}
export LOAD_FEAST_SERVING_PORT=${TARGET_PORT}
export LOAD_REQUESTS=${TOTAL_REQUESTS_NUM}
single_run() {
echo "Entity rows: $1; Features: $2; Concurrency: $3; RPS: $4"
python3 request_generator.py \
--entity-rows $1 \
--features $2 \
--requests ${UNIQUE_REQUESTS_NUM} \
--output requests-$1-$2.json
export LOAD_REQUESTS_PATH=requests-$1-$2.json
export LOAD_CONCURRENCY=$3
export LOAD_RPS=$4
./feast-go-client
}
# single_run <entities> <features> <concurrency> <rps>
echo "Change only number of rows"
single_run 1 50 $CONCURRENCY 100
for i in $(seq 10 10 100); do single_run $i 50 $CONCURRENCY 100; done
echo "Change only number of features"
for i in $(seq 50 50 250); do single_run 1 $i $CONCURRENCY 100; done
echo "Change only number of requests"
for i in $(seq 100 100 1000); do single_run 1 50 $CONCURRENCY $i; done
echo "Fix uptime to 99.9% with 100ms timeout and max RPS"
for i in $(seq 10 10 50); do single_run 1 50 $i 1000; done
for i in $(seq 10 10 50); do single_run 1 250 $i 1000; done
for i in $(seq 2 2 10); do single_run 100 50 $i 1000; done
for i in $(seq 2 2 10); do single_run 100 250 $i 1000; done