shithub: bench9

Download patch

ref: c2c6b68ac66d44ec8e38e205d2f1cb66a458e359
parent: 1046ee01c738fea18079cfbb2eb305b1e572b03b
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Oct 28 08:00:54 EDT 2020

fix wrong op/s calculation

--- a/b.c
+++ b/b.c
@@ -27,12 +27,10 @@
 σfmt(Fmt *f)
 {
 	B *b;
-	uvlong nsall;
 
 	b = va_arg(f->args, B*);
-	nsall = cycles2ns(b->tout - b->t0);
 
-	return fmtprint(f, "%zd", nsall/b->med.ns);
+	return fmtprint(f, "%zd", 1000000000ULL/(b->tot.ns/b->ic));
 }
 
 static int