Update benchmark.sh
This commit is contained in:
parent
82a3645235
commit
f3ab59a7f4
@ -1,13 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
functions=(hello isprime hello-scale isprime-scale)
|
functions=(hello)
|
||||||
connections=(50)
|
connections=(50)
|
||||||
times=(5m)
|
times=(1m)
|
||||||
kuberhost="node1:30765"
|
kuberhost="node1:30765"
|
||||||
maxthreads=40
|
maxthreads=40
|
||||||
|
|
||||||
WRK_INSTALLED=$(which wrk)
|
WRK_INSTALLED=$(which wrk)
|
||||||
if [ "$WRK_INSTALLED" = "" ]
|
if [[ $WRK_INSTALLED -eq "" ]]
|
||||||
then
|
then
|
||||||
apt update
|
apt update
|
||||||
apt install build-essential libssl-dev git -y
|
apt install build-essential libssl-dev git -y
|
||||||
@ -18,7 +18,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
HEY_INSTALLED=$(which hey)
|
HEY_INSTALLED=$(which hey)
|
||||||
if [ "$HEY_INSTALLED" = "" ]
|
if [[ $HEY_INSTALLED -eq "" ]]
|
||||||
then
|
then
|
||||||
apt update
|
apt update
|
||||||
apt install -y golang
|
apt install -y golang
|
||||||
@ -46,7 +46,7 @@ do
|
|||||||
for time in "${times[@]}"
|
for time in "${times[@]}"
|
||||||
do
|
do
|
||||||
datetime=$(date '+%Y-%m-%d-%H-%M-%S')
|
datetime=$(date '+%Y-%m-%d-%H-%M-%S')
|
||||||
if [[ $@ -eq *"--wave"* ]]
|
if [[ $@ -eq "*--wave*" ]]
|
||||||
then
|
then
|
||||||
while true; do
|
while true; do
|
||||||
$now=$(date '+%Y-%m-%d-%H-%M')
|
$now=$(date '+%Y-%m-%d-%H-%M')
|
||||||
|
Loading…
Reference in New Issue
Block a user