Commit cb23a30e authored by Geoff Simmons's avatar Geoff Simmons

PH benchmark prints the match throughput.

parent 80b1c726
......@@ -306,8 +306,9 @@ main(int argc, char *argv[])
}
assert(matches <= iters);
printf("... complete.\n");
printf("%ld match operations in %.09f s, mean %lu ns/op\n", iters,
ns * 1e-9, ns / iters);
printf("%ld match operations in %.09f s, mean %lu ns/op, "
"tput %.f ops/s\n", iters,
ns * 1e-9, ns / iters, iters / (ns * 1e-9));
printf("%ld matches, %ld misses\n", matches, iters - matches);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment