Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 3.12 KB

File metadata and controls

47 lines (30 loc) · 3.12 KB

Performance Highlights: Speed and Efficiency

One of the core objectives of SimpleLog-Topic is to provide exceptional performance while maintaining simplicity. Here’s a detailed look at its performance in different scenarios:

Benchmarking Performance

  1. Windows10/MSVC 2022 with 10 Threads and 10 Million Records:

    In this test, SimpleLog-Topic logged 10 million records in just 16 seconds, compared to 66 seconds taken by spdlog. This demonstrates 4x faster performance in multithreaded environments, showing that SimpleLog-Topic efficiently manages logging tasks without unnecessary performance bottlenecks.

  2. Linux Performance Benchmark (10 Threads and 10 Million Records), VM CentOs9/PC:

    With CPU-3 Cores / VM:

    With CPU-5 Cores / VM:

    With CPU-8 Cores / PC:

    • SimpleLog-Topic: ~3.331 seconds Here, simplelog-topic is faster 2x spdlog. Speed: 3 million records a second. simplelog-topic is faster 2x spdlog.
    • spdlog: ~7.051 seconds. Speed: 1.4 million records a second.

    On Linux is faster than Windows. If number of CPUs are more, then SimpleLog-Topic becomes more effective.

  3. Large-Scale Logging Test (1 Billion Records, 10 Threads):

    Windows 10 - CPU 8 Cores

    CentOs 09 - CPU 8 Cores

    In an extreme scenario, SimpleLog-Topic processed 1 billion records across 10 threads, generating 113 GB of log data in just 36 minutes. This performance indicates that SimpleLog-Topic can scale to handle massive volumes of log data, making it suitable for both high-frequency and large-scale logging applications.

  4. OSX/Apple clang version 11.0.3 (clang-1103.0.32.29) with 10 Threads and 10 Million Records ( Total Number of Cores: 2, Model Name: Mac mini(Late 2012)):

    In this environment spdlog is faster at 11.1s (~43%) than simplelog-topic. However, I shall re-verify with PC with more CPU cores.