Change benchmark table header (#6265)

* Change benchmark table header to prevent misconceptions that we measure the CPU ops counter.

* Preserve unit for average iteration duration.
This commit is contained in:
Rot127 2026-04-21 18:37:36 +00:00 committed by GitHub
parent 30cc5c8db5
commit a489ff8b60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -443,4 +443,4 @@ int main() {
// Print results
RZ_BENCH_TABLE_PRINT_AND_FREE(t);
return 0;
}
}

View file

@ -61,7 +61,7 @@ RZ_API void rz_bench_report(RZ_NONNULL RzBenchCtx *ctx, RZ_NONNULL RzTable *t);
* \param T table to initialize.
*/
#define RZ_BENCH_TABLE_INIT(T) \
rz_table_set_columnsf(T, "snnnn", "Benchmark", "Iterations", "Total time [ms]", "Average time [us/op]", "Throughput [ops/sec]");
rz_table_set_columnsf(T, "snnnn", "Benchmark", "Iterations", "Total time [ms]", "Avg iter time [us/iteration]", "Throughput [iterations/sec]");
/**
* \brief Prints microbenchmark results and frees the RzTable \p T. Should be called at end of a benchmark suite.