Added a printout for the overall test execution time
authorJan Medved <jmedved@cisco.com>
Sat, 29 Nov 2014 04:15:11 +0000 (20:15 -0800)
committerLuis Gomez <ecelgp@gmail.com>
Sun, 30 Nov 2014 01:27:50 +0000 (01:27 +0000)
Change-Id: I0aa19bf0749dde07ce7ececc3ae8fb4bc3cd21ff
Signed-off-by: Jan Medved <jmedved@cisco.com>
test/tools/odl-mdsal-clustering-tests/clustering-performance-test/flow_config_blaster.py
test/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_perf.py

index 94e1be00f260a8de1eb038b197227e49054e1134..b4cf5fb103dad88aac002985f0fd8a87b5215123 100755 (executable)
@@ -262,6 +262,7 @@ class FlowConfigBlaster(object):
                 measured_rate = (self.nthreads * self.nflows) / t.secs
                 print '    Measured rate:      %.2f (%.2f%% of Total success rate)' % \
                       (measured_rate, measured_rate / self.total_rate.value * 100)
                 measured_rate = (self.nthreads * self.nflows) / t.secs
                 print '    Measured rate:      %.2f (%.2f%% of Total success rate)' % \
                       (measured_rate, measured_rate / self.total_rate.value * 100)
+                print '    Measured time:      %.2fs' % t.secs
                 self.threads_done = 0
 
             self.ok_rate.value = 0
                 self.threads_done = 0
 
             self.ok_rate.value = 0
index c7582a0bed2c1fc142359a79d49bfbc3fc76bc90..7773dc8ed36159472a28894a866c1920a5734f20 100644 (file)
@@ -54,6 +54,15 @@ print_lock = threading.Lock()
 
 
 def get_inventory(tnum, url, hdrs, rnum, cond):
 
 
 def get_inventory(tnum, url, hdrs, rnum, cond):
+    """
+
+    :param tnum:
+    :param url:
+    :param hdrs:
+    :param rnum:
+    :param cond:
+    :return:
+    """
     total_len = float(0)
     results = {}
 
     total_len = float(0)
     results = {}