Example #1
0
 def run(self):
     print "n_threads,runtime"
     for n in self.sizes:
         run_time = best_run(lambda: self.single_run(n), n=7)
         print "%s,%s" % (n, run_time)
Example #2
0
 def sending(self, channel):
     for size in self.sizes:
         payload = ' ' * size
         run_time = best_run(lambda: channel.send(payload), self.runs_per_sample)
         self.store_result(sample_size=size, time=run_time)