Replies: 1 comment
-
I'm not so quite remember of the details, but As you can see, the
C++
Both of them are much faster than the corresponding standard version, the reasons are the same. For the on-stack string storage version, C++ For your question, why the standard version of |
Beta Was this translation helpful? Give feedback.
-
It is wonderful work, but about the benchmark:
"spdlog-rs (0.3.0)
Sync
[info] **********************************************************************
[info] Multi threaded: 1 threads, 250000 messages
[info] **********************************************************************
[info] basic_mt Elapsed: 0.09 secs 2881439/sec
[info] rotating_mt Elapsed: 0.09 secs 2810747/sec
[info] daily_mt Elapsed: 0.09 secs 2829965/sec
[info] level-off Elapsed: 0.00 secs 407365162/sec
...
C++ spdlog (1.11.0)
Sync
[info] **************************************************************
[info] Multi threaded: 1 threads, 250,000 messages
[info] **************************************************************
[info] basic_mt Elapsed: 0.13 secs 1,906,872/sec
[info] rotating_mt Elapsed: 0.13 secs 1,866,094/sec
[info] daily_mt Elapsed: 0.13 secs 1,981,681/sec
[info] level-off Elapsed: 0.00 secs 147,466,525/sec
...
"
It is amazing that spdlog-rs is much faster than spdlog-c++, how cound it be?
Beta Was this translation helpful? Give feedback.
All reactions