X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/67b5031ec6d160b5cae425466a34d1be3b211dd4..c91413e6acbc8d157ff52ceb8cd78cee97403584:/test/bench.h diff --git a/test/bench.h b/test/bench.h index e7736c4..c0627e2 100644 --- a/test/bench.h +++ b/test/bench.h @@ -45,12 +45,12 @@ struct bench_time { #define BTF_TIMEOK 1u /* @s@ ad @ns@ slots are value */ #define BTF_CYOK 2u /* @cy@ slot is valid */ #define BTF_ANY (BTF_TIMEOK | BTF_CYOK) /* some part is useful */ - kludge64 s; uint32 ns; /* real time in seconds and nanos */ - kludge64 cy; /* count of CPU cycles */ + kludge64 s; uint32 ns; /* real time, seconds and nanos */ + kludge64 cy; /* count of CPU cycles */ }; struct bench_timing { - unsigned f; /* flags (as in @struct bench_time@) */ + unsigned f; /* flags (@BTF_...@) */ double n, t, cy; /* count, time, and cycles */ }; @@ -67,12 +67,12 @@ struct bench_timerops { struct bench_state { struct bench_timer *tm; /* a timer */ double target_s; /* target time to run benchmarks */ - unsigned f; /* flags (@BTF_...@) for calibrations */ + unsigned f; /* calibration flags (@BTF_...@) */ struct { double m, c; } clk, cy; /* calculated overheads */ }; typedef void bench_fn(unsigned long /*n*/, void */*ctx*/); -/* Run the benchmark @n@ times, given a context pointer @ctx@. */ + /* Run the benchmark @n@ times, given a context pointer @ctx@. */ /*----- Functions provided ------------------------------------------------*/