-
Notifications
You must be signed in to change notification settings - Fork 3
/
iosaas-stress.sh
executable file
·29 lines (27 loc) · 1.48 KB
/
iosaas-stress.sh
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
function capture {
img=$1
text=$2
for path in i; do
out=$path$img.png
echo -n -e "\n$out" 1>&2
time >$out 2>/dev/null curl -G "http://localhost:3000/$path.png" --data-urlencode "$text"
stored=$(yarn run -s png-io $out --get swell0 | jq -r '[.source_string, .target_string] | join("//")')
echo
echo $stored
echo $2
test "$stored" == "$2" || echo --UNEQUAL--
done
}
s=0.40
sleep $s; capture 01 'Their was a problem yesteray . // There was a problem yesterday .' &
sleep $s; capture 02 'The team that hits the most runs get ice cream . // The team that hits the most runs gets ice cream .' &
sleep $s; capture 03 'Blue birds have blue and pink feathers . // Bluebirds have blue and pink feathers .' &
sleep $s; capture 04 'I don’t know his lives . // I don’t know where he^his lives .' &
sleep $s; capture 05 'He get to cleaned his son . // He got his^his son^his^son to clean the^ room^ .' &
sleep $s; capture 06 'We wrote down the number . // We wrote the number down^down .' &
sleep $s; capture 07 "do u:ort not:wwo dear:ort // don't^do^not you dare !:m_punc" &
sleep $s; capture 08 'en dag jag vaknade // En:CAP dag vaknade jag^jag:WO' &
sleep $s; capture 09 'en dag jag vaknade // En:CAP dag vakmade jag^jag:WO' &
sleep $s; capture 10 'en dag jag vaknade // En:cap dag vaknade jag^jag:wo' &
sleep $s; capture 11 'en dag ja vaknade // En:CAP dag vaknade jag^ja:WO' &
sleep $s; capture 12 'en da jag vaknade // En:CAP dag vaknade jag^jag:WO' &