perftest: more accurate throughput calculation