diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f728ac6..8e0af9f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,8 +66,6 @@ enough space to push the message, which could make it less accurate. Additionally, in the case of a blocking queue, the timestamp could be later in time. Now, the timestamp is taken and stored right after the log statement is issued, before checking for the queue size. -- The throughput of the backend worker thread has been improved by approximately 3%. This enhancement is reflected in - the new throughput value of 4.10 million msgs/sec, compared to the previous throughput of 3.98 million msgs/sec. ## v3.7.0 diff --git a/benchmarks/backend_throughput/quill_backend_throughput.cpp b/benchmarks/backend_throughput/quill_backend_throughput.cpp index 15fabcff..4534f182 100644 --- a/benchmarks/backend_throughput/quill_backend_throughput.cpp +++ b/benchmarks/backend_throughput/quill_backend_throughput.cpp @@ -13,8 +13,8 @@ int main() quill::detail::set_cpu_affinity(0); quill::Config cfg; - cfg.backend_thread_yield = false; - cfg.backend_thread_cpu_affinity = 1; + + cfg.backend_thread_cpu_affinity = 5; quill::configure(cfg); diff --git a/benchmarks/backend_throughput/quill_backend_throughput_no_buffering.cpp b/benchmarks/backend_throughput/quill_backend_throughput_no_buffering.cpp index d8e34f8b..3fb426b9 100644 --- a/benchmarks/backend_throughput/quill_backend_throughput_no_buffering.cpp +++ b/benchmarks/backend_throughput/quill_backend_throughput_no_buffering.cpp @@ -13,8 +13,8 @@ int main() quill::detail::set_cpu_affinity(0); quill::Config cfg; - cfg.backend_thread_yield = false; - cfg.backend_thread_cpu_affinity = 1; + + cfg.backend_thread_cpu_affinity = 5; cfg.backend_thread_use_transit_buffer = false; quill::configure(cfg); @@ -31,7 +31,8 @@ int main() cfg.set_open_mode('w'); return cfg; }()); - file_handler->set_pattern("%(time) [%(thread)] %(short_source_location) %(log_level) %(message)"); + file_handler->set_pattern( + "%(time) [%(thread_id)] %(short_source_location) %(log_level) %(message)"); quill::Logger* logger = quill::create_logger("bench_logger", std::move(file_handler)); quill::preallocate(); diff --git a/benchmarks/hot_path_latency/quill_hot_path_rdtsc_clock.cpp b/benchmarks/hot_path_latency/quill_hot_path_rdtsc_clock.cpp index 8fc0739e..cef16d9a 100644 --- a/benchmarks/hot_path_latency/quill_hot_path_rdtsc_clock.cpp +++ b/benchmarks/hot_path_latency/quill_hot_path_rdtsc_clock.cpp @@ -16,8 +16,10 @@ void quill_benchmark(std::vector const& thread_count_array, /** - Setup Quill **/ quill::Config cfg; - cfg.backend_thread_yield = false; + cfg.backend_thread_cpu_affinity = 5; + // cfg.enable_huge_pages_hot_path = true; // enable huge pages + quill::configure(cfg); // Start the logging backend thread diff --git a/benchmarks/hot_path_latency/quill_hot_path_system_clock.cpp b/benchmarks/hot_path_latency/quill_hot_path_system_clock.cpp index 20c1fb63..335eb505 100644 --- a/benchmarks/hot_path_latency/quill_hot_path_system_clock.cpp +++ b/benchmarks/hot_path_latency/quill_hot_path_system_clock.cpp @@ -16,9 +16,10 @@ void quill_benchmark(std::vector const& thread_count_array, /** - Setup Quill **/ quill::Config cfg; - cfg.backend_thread_yield = false; + cfg.backend_thread_cpu_affinity = 5; cfg.default_timestamp_clock_type = quill::TimestampClockType::System; + // cfg.enable_huge_pages_hot_path = true; // enable huge pages quill::configure(cfg);