[Python-checkins] benchmarks: Make logging output a little more consistent.
georg.brandl
python-checkins at python.org
Mon Oct 14 20:16:56 CEST 2013
http://hg.python.org/benchmarks/rev/8c0abff6273a
changeset: 213:8c0abff6273a
user: Georg Brandl <georg at python.org>
date: Mon Oct 14 20:17:41 2013 +0200
summary:
Make logging output a little more consistent.
files:
perf.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/perf.py b/perf.py
--- a/perf.py
+++ b/perf.py
@@ -886,7 +886,7 @@
def LogCall(command):
command = list(map(str, command))
- info("Running %s", " ".join(command))
+ info("Running `%s`", " ".join(command))
return command
@@ -1259,7 +1259,7 @@
an_s = "s"
if iterations == 1:
an_s = ""
- info("Running `%s` %d time%s", command, iterations, an_s)
+ info("Running `%s` %d time%s", " ".join(command), iterations, an_s)
times = []
mem_usage = []
@@ -1859,7 +1859,7 @@
work = "i = 0\nwhile i < 200000: i += 1"
command = python + cmd_opts + ["-c", work]
mem_usage = []
- info("Running `%s` %d times", command, num_loops * 20)
+ info("Running `%s` %d times", " ".join(command), num_loops * 20)
for _ in range(num_loops):
t0 = time.time()
_StartupPython(command, mem_usage, track_memory, inherit_env)
--
Repository URL: http://hg.python.org/benchmarks
More information about the Python-checkins
mailing list