From 22f8ba4fe544aa4061827604cf987d00d1afeab8 Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Tue, 30 Aug 2016 17:54:13 -0300 Subject: Adds total time of request to script. #771 --- service/test/reactor/concurrent_logins.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'service/test/reactor/concurrent_logins.sh') 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/' } -- cgit v1.2.3