viff

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 diff
     1.1 --- a/apps/benchmark.py	Fri Oct 16 18:42:14 2009 +0200
     1.2 +++ b/apps/benchmark.py	Fri Oct 16 18:42:52 2009 +0200
     1.3 @@ -187,7 +187,7 @@
     1.4  if actual_mixins:
     1.5      print "With the following mixins:"
     1.6      for mixin in actual_mixins:
     1.7 -        print "- %s" % mixin
     1.8 +        print "- %s" % mixin.__name__
     1.9  
    1.10  runtime_class = make_runtime_class(base_runtime_class, actual_mixins)
    1.11  
    1.12 @@ -224,7 +224,9 @@
    1.13  else:
    1.14      bases = (benchmark,) + (SelfcontainedBenchmarkStrategy, operation_arity, ) + (object,)
    1.15  
    1.16 -print "Using the Benchmark bases: ", bases
    1.17 +print "Using the Benchmark bases:"
    1.18 +for b in bases:
    1.19 +    print "- %s" % b.__name__
    1.20  benchmark = type("ExtendedBenchmark", bases, {})
    1.21  
    1.22  def do_benchmark(runtime, operation, benchmark, field, count, *args):