changeset 1288:f4341ec45321

benchmark: nicer printing of benchmark base classes
author Martin Geisler <mg@cs.au.dk>
date Fri, 16 Oct 2009 18:42:52 +0200
parents efbdd4fce829
children da51b765a791
files apps/benchmark.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Fri Oct 16 18:42:14 2009 +0200
+++ b/apps/benchmark.py	Fri Oct 16 18:42:52 2009 +0200
@@ -187,7 +187,7 @@
 if actual_mixins:
     print "With the following mixins:"
     for mixin in actual_mixins:
-        print "- %s" % mixin
+        print "- %s" % mixin.__name__
 
 runtime_class = make_runtime_class(base_runtime_class, actual_mixins)
 
@@ -224,7 +224,9 @@
 else:
     bases = (benchmark,) + (SelfcontainedBenchmarkStrategy, operation_arity, ) + (object,)
 
-print "Using the Benchmark bases: ", bases
+print "Using the Benchmark bases:"
+for b in bases:
+    print "- %s" % b.__name__
 benchmark = type("ExtendedBenchmark", bases, {})
 
 def do_benchmark(runtime, operation, benchmark, field, count, *args):