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 <>
date Tue, 27 Oct 2009 10:13:06 +0100
parents 6f02ecfa60e1
children 16c66869c039
files apps/
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/	Sat Oct 24 18:39:19 2009 +0200
+++ b/apps/	Tue Oct 27 10:13:06 2009 +0100
@@ -40,6 +40,7 @@
     print "Total time used: %.3f sec" % (stop-start)
     print "Time per %s operation: %.0f ms" % (what, 1000*(stop-start) / count)
+    print "Throughput: %d per second" % (count / (stop-start))
     print "*" * 6
     return x