python 2.6 format strings in benchmark scripts
This commit is contained in:
parent
869e1ab616
commit
7dd12f0756
@ -43,7 +43,7 @@ class Runner(BenchmarkThread):
|
||||
|
||||
i = next(self.num_started)
|
||||
if i <= self.num_queries:
|
||||
key = "{}-{}".format(self.thread_num, i)
|
||||
key = "{0}-{1}".format(self.thread_num, i)
|
||||
future = self.run_query(key, timeout=None)
|
||||
future.add_callbacks(self.insert_next, self.insert_next)
|
||||
|
||||
|
@ -35,7 +35,7 @@ class Runner(BenchmarkThread):
|
||||
except queue.Empty:
|
||||
break
|
||||
|
||||
key = "{}-{}".format(self.thread_num, i)
|
||||
key = "{0}-{1}".format(self.thread_num, i)
|
||||
future = self.run_query(key)
|
||||
futures.put_nowait(future)
|
||||
|
||||
|
@ -26,7 +26,7 @@ class Runner(BenchmarkThread):
|
||||
self.start_profile()
|
||||
|
||||
for i in range(self.num_queries):
|
||||
key = "{}-{}".format(self.thread_num, i)
|
||||
key = "{0}-{1}".format(self.thread_num, i)
|
||||
future = self.run_query(key)
|
||||
futures.append(future)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user