Skip to content

Commit 2208ff3

Browse files
committed
Tidy up performance test script.
1 parent 3c514b6 commit 2208ff3

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

perf/load.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
#! /usr/bin/env bash
22

33
threads=6
4+
requests=5000
45

56
stop()
67
{
7-
pkill -P $$
8+
pkill -P $$
89
}
910

1011
trap stop INT
1112

1213
get_tables()
1314
{
1415
echo "Starting thread $1."
15-
for (( i=0; i<=5000; i++ )); do
16+
17+
for (( i=0; i<=$requests; i++ )); do
1618
echo "Request $i"
19+
1720
curl localhost:8080/asyncdb/tables
1821
done
1922
}
2023

21-
run() {
24+
run()
25+
{
2226
for (( i=0; i<$threads; i++ )); do
2327
get_tables $i&
2428
done

recipe.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
],
4141
"define":
42-
{
43-
"LOG": "echo 1"
44-
}
42+
{
43+
"LOG": "echo 1"
44+
}
4545
}

0 commit comments

Comments
 (0)