[libc-commits] [libc] [libc] Improve Benchmark UI (PR #99796)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Sun Jul 21 03:48:05 PDT 2024
================
@@ -96,17 +103,26 @@ void print_results(Benchmark *b) {
all_results.time_sum.load(cpp::MemoryOrder::RELAXED) / num_threads;
cpp::atomic_thread_fence(cpp::MemoryOrder::RELEASE);
- log << GREEN << "[ RUN ] " << RESET << b->get_name() << '\n';
- log << GREEN << "[ OK ] " << RESET << b->get_name() << ": "
- << result.cycles << " cycles, " << result.min << " min, " << result.max
- << " max, " << result.total_iterations << " iterations, "
- << result.total_time << " ns, "
- << static_cast<uint64_t>(result.standard_deviation)
- << " stddev (num threads: " << num_threads << ")\n";
+ printf(output_format_string, b->get_test_name().data(), result.cycles,
----------------
jhuber6 wrote:
```suggestion
LIBC_NAMESPACE::printf(output_format_string, b->get_test_name().data(), result.cycles,
```
https://github.com/llvm/llvm-project/pull/99796
More information about the libc-commits
mailing list