Skip to content

Commit

Permalink
Add simple usage, arg check to benchmarks.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
nealmcb committed Dec 4, 2017
1 parent 77fb30c commit 0e981f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/load_tests/benchmarks.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
# For example: $0 mytest "2 4 8" 4 large
# Provide these arguments, of which only the first is mandatory:

usage="Usage:
$0 testname [series [repeat [cvrs]]].
e.g. URL=http://example.org/api $0 mytest '2 4 8 16 32 64' 3 medium"

testname=$1 # Directory to create and save results in
${testname:?"$usage"}
series=${2:-2 4 8 16 32 64} # a list (in quotes) of values for the number of counties to run in parallel
repeat=${3:-3} # Number of times to repeat each element in series
cvrs=${4:-medium} # cvrs to load for each test,
# e.g. "medium" for medium_cvrs.csv and medium_manifest.csv

mkdir -p $testname
cd $testname

Expand Down

0 comments on commit 0e981f2

Please sign in to comment.