summaryrefslogtreecommitdiff
path: root/service/test/reactor/concurrent_logins.sh
diff options
context:
space:
mode:
authorDenis Costa <deniscostadsc@gmail.com>2016-08-30 17:54:13 -0300
committerDenis Costa <deniscostadsc@gmail.com>2016-08-30 17:54:33 -0300
commit22f8ba4fe544aa4061827604cf987d00d1afeab8 (patch)
tree48240b820149308f7e391556cd75966432d07cba /service/test/reactor/concurrent_logins.sh
parentb1fe205ebb5248104b365f372a72659b2471812e (diff)
Adds total time of request to script. #771
Diffstat (limited to 'service/test/reactor/concurrent_logins.sh')
-rwxr-xr-xservice/test/reactor/concurrent_logins.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/reactor/concurrent_logins.sh b/service/test/reactor/concurrent_logins.sh
index 66791f43..02068683 100755
--- a/service/test/reactor/concurrent_logins.sh
+++ b/service/test/reactor/concurrent_logins.sh
@@ -27,12 +27,16 @@ function curl_login {
username=${USER_PREFIX}${index}
password=${PASSWORD_PREFIX}${index}
- curl -siL -X POST \
+ curl -siLD - \
+ -w "total time: %{time_total}\n" \
+ -o /dev/null \
+ -X POST \
--data "username=${username}&password=${password}" \
--cookie 'XSRF-TOKEN: blablabla' \
--header 'X-Requested-With: XMLHttpRequest' \
--header 'X-XSRF-TOKEN: blablabla' \
http://localhost:3333/login |\
+ tee -a load-test.log |\
grep '^HTTP' |\
sed 's/\(.*\)/ - \1/'
}