FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
feast-benchmarks/python/run-benchmark.sh at main · feast-dev/feast-benchmarks · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
feast-dev
/
feast-benchmarks
Public
Notifications
You must be signed in to change notification settings
Fork
9
Star
3
Code
Issues
1
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
feast-benchmarks
/
python
/
run-benchmark.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
55 lines (33 loc) · 1.47 KB
Breadcrumbs
feast-benchmarks
/
python
/
run-benchmark.sh
Copy path
File metadata and controls
executable file
·
55 lines (33 loc) · 1.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/bash
UNIQUE_REQUESTS_NUM=
${UNIQUE_REQUESTS_NUM
:-
1000}
TARGET=
${TARGET
:-
http
://
127.0.0.1}
NUM_SERVERS=
${NUM_SERVERS
:-
16}
CONCURRENCY=
${CONCURRENCY
:-
5}
RUN_TIME=
${RUN_TIME
:-
1m}
WAIT_TIME=
${WAIT_TIME
:-
1}
REQUEST_TIMEOUT=
${REQUEST_TIMEOUT
:-
5s}
trap
"
exit
"
INT
single_run
() {
echo
"
Entity rows:
$1
; Features:
$2
; Concurrency:
$3
; RPS:
$4
"
python3 request_generator.py \
--endpoint
${TARGET}
\
--num-ports
${NUM_SERVERS}
\
--entity-rows
$1
\
--features
$2
\
--requests
${UNIQUE_REQUESTS_NUM}
\
--output requests-
$1
-
$2
.json
echo
"
vegeta attack -format json -targets requests-
$1
-
$2
.json -connections
$3
-duration
${RUN_TIME}
-rate
$4
/1s -timeout
${REQUEST_TIMEOUT}
| vegeta report
"
vegeta attack -format json -targets requests-
$1
-
$2
.json -connections
$3
-duration
${RUN_TIME}
-rate
$4
/1s -timeout
${REQUEST_TIMEOUT}
|
vegeta report
sleep
${WAIT_TIME}
}
#
single_run <entities> <features> <concurrency> <rps>
echo
"
Change only number of rows
"
single_run 1 50
$CONCURRENCY
10
for
i
in
$(
seq 10 10 100
)
;
do
single_run
$i
50
$CONCURRENCY
10
;
done
echo
"
Change only number of features
"
for
i
in
$(
seq 50 50 250
)
;
do
single_run 1
$i
$CONCURRENCY
10
;
done
echo
"
Change only number of requests
"
for
i
in
$(
seq 10 10 100
)
;
do
single_run 1 50
$CONCURRENCY
$i
;
done
for
i
in
$(
seq 10 10 100
)
;
do
single_run 1 250
$CONCURRENCY
$i
;
done
for
i
in
$(
seq 10 10 100
)
;
do
single_run 100 50
$CONCURRENCY
$i
;
done
for
i
in
$(
seq 10 10 100
)
;
do
single_run 100 250
$CONCURRENCY
$i
;
done
Back
|
FazBrowse Home
|
New Git URL