chiark / gitweb /
@@@ so much mess
[mLib] / test / bench.c
index df8c4efd8ad20d9bb99b5be583ade918797de5b5..d1a00ea4da9e6f119d95de7f019a079cab9d0c66 100644 (file)
@@ -459,7 +459,7 @@ end:
 }
 
 int bench_measure(struct bench_timing *t_out, struct bench_state *b,
-                 bench_fn *fn, void *p)
+                 double base, bench_fn *fn, void *p)
 {
   struct bench_timer *tm = b->tm;
   struct bench_time t0, t1;
@@ -485,7 +485,7 @@ int bench_measure(struct bench_timing *t_out, struct bench_state *b,
   else
     debug("  %g s (%g cy) per op; %g ops/s",
          t_out->t/n, t_out->cy/n, n/t_out->t);
-  t_out->n = n; return (0);
+  t_out->n = n*base; return (0);
 }
 
 /*----- That's all, folks -------------------------------------------------*/