From a4225b481031193bbd6deb58fd1cd4a27d07666c Mon Sep 17 00:00:00 2001 From: kakwa Date: Fri, 9 Sep 2016 00:03:42 +0200 Subject: [PATCH] displaying the timer every 1000 requests instead of every 10000 --- tests/stress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stress.py b/tests/stress.py index bc8494b..a28b1d0 100755 --- a/tests/stress.py +++ b/tests/stress.py @@ -18,7 +18,7 @@ while True: response = h1.getresponse() h1.close() counter += 1 - if counter % 10000 == 0: + if counter % 1000 == 0: new_time = time.time() - print( str(int(10000 / (new_time - old_time))) + " req/s (10000 requests in " + str(new_time - old_time) + " seconds)") + print( str(int(1000 / (new_time - old_time))) + " req/s (1000 requests in " + str(new_time - old_time) + " seconds)") old_time = time.time()