Manybubbles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/144470

Change subject: Add some timing information to load testing script
......................................................................

Add some timing information to load testing script

Change-Id: I58b0bf38e7dde72f3566a9dfe678f40933ea7d1c
---
M tests/load/send_some.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/70/144470/1

diff --git a/tests/load/send_some.py b/tests/load/send_some.py
index 94081cb..1c62982 100644
--- a/tests/load/send_some.py
+++ b/tests/load/send_some.py
@@ -15,10 +15,11 @@
     # Since requests come in with timestamp resolution we assume they came in
     # at some random point in the second
     time.sleep(random.uniform(0, 1))
+    start = time.time()
     params = "fulltext=Search&srbackend=CirrusSearch"
     url = "%s/%s?%s" % (destination, search, params)
     urllib2.urlopen(url)
-    print "Fetched " + url
+    print "Fetched ({:07.3f}) {}".format(time.time() - start, url)
 
 
 def hostname(wiki):

-- 
To view, visit https://gerrit.wikimedia.org/r/144470
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58b0bf38e7dde72f3566a9dfe678f40933ea7d1c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to