This is an automated email from the ASF dual-hosted git repository. swebb2066 pushed a commit to branch benchmark_logging_to_file in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit ce3c7178439996411cc858639dd6ea04aac20942 Author: Stephen Webb <[email protected]> AuthorDate: Tue Mar 5 13:27:31 2024 +1100 Benchmark should include the cost of buffered I/O --- src/test/cpp/benchmark/benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/cpp/benchmark/benchmark.cpp b/src/test/cpp/benchmark/benchmark.cpp index 1adca690..0ac52161 100644 --- a/src/test/cpp/benchmark/benchmark.cpp +++ b/src/test/cpp/benchmark/benchmark.cpp @@ -297,7 +297,7 @@ BENCHMARK_DEFINE_F(benchmarker, fileIntPlusFloatValueMessageBuffer)(benchmark::S for (auto _ : state) { auto f = static_cast<float>(rand()) / static_cast<float>(RAND_MAX); - LOG4CXX_INFO( m_logger, "Hello: message number " << ++x + LOG4CXX_INFO( m_fileLogger, "Hello: message number " << ++x << " pseudo-random float " << std::setprecision(3) << std::fixed << f); } }
