viff

changeset 1331:7856dceaf7b5

benchmark: display throughput When I visited IBM Zurich last year, I talked with Christian Cachin about VIFF and about our benchmarks. I explained that a multiplication took about 1 ms when you do many in parallel. He remarked that this notion of the "average time when doing many in parallel" is a strange non-standard notion. We should instead report the *throughput* (the number of sustained operations per second). This is the standard notion used when measuring the performance of systems.
author Martin Geisler <mg@cs.au.dk>
date Tue, 27 Oct 2009 10:13:06 +0100
parents 6f02ecfa60e1
children 16c66869c039
files apps/benchmark_classes.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark_classes.py	Sat Oct 24 18:39:19 2009 +0200
     1.2 +++ b/apps/benchmark_classes.py	Tue Oct 27 10:13:06 2009 +0100
     1.3 @@ -40,6 +40,7 @@
     1.4      print
     1.5      print "Total time used: %.3f sec" % (stop-start)
     1.6      print "Time per %s operation: %.0f ms" % (what, 1000*(stop-start) / count)
     1.7 +    print "Throughput: %d per second" % (count / (stop-start))
     1.8      print "*" * 6
     1.9      return x
    1.10