Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-03 13:02:22 +02:00 committed by GitHub
parent 458ebbe715
commit e116682f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,13 @@
#!/bin/bash
functions=(hello isprime)
connections=(2 5 10 20 50 100 200 400 500 1000)
times=(1m)
data=(isprime)
kuberhost="node1:32764"
maxthreads=160
array_contains () {
local array="$1[@]"
local seeking=$2
@ -13,16 +21,6 @@ array_contains () {
return $in
}
functions=(hello isprime)
# 5 10 20 50 100 200 400 500 1000
connections=(2)
times=(1m)
data=(isprime)
kuberhost="node1:32764"
maxthreads=160
#$(array_contains data function && "-s$function.wrk")
#$(array_contains data function && "-D $function.body")
WRK_INSTALLED=$(which wrk)
if [ "$WRK_INSTALLED" = "" ]
then