/rev/f4341ec45321
changeset: 1288:f4341ec45321
user: Martin Geisler <[email protected]>
date: Fri Oct 16 18:42:52 2009 +0200
summary: benchmark: nicer printing of benchmark base classes
diffstat:
apps/benchmark.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r efbdd4fce829 -r f4341ec45321 apps/benchmark.py
--- 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):
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk