mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Update README.md
This commit is contained in:
parent
6f550c3271
commit
0ac1facf41
@ -35,14 +35,15 @@ Just copy the files to your build tree and use a C++11 compiler
|
|||||||
|
|
||||||
## Benchmarks
|
## Benchmarks
|
||||||
|
|
||||||
Here are some [benchmarks](bench) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz.
|
Here are some [benchmarks](bench) comparing spdlog vs other libs on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz.
|
||||||
|
|
||||||
The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object):
|
The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object):
|
||||||
|
|
||||||
#### spdlog vs. boost - single thread
|
#### spdlog vs. boost - single thread
|
||||||
|library|log lines|threads|elapsed|
|
|library|log lines|threads|elapsed|
|
||||||
|-------|:-------:|:-----:|------:|
|
|-------|:-------:|:-----:|------:|
|
||||||
|*boost*|1,000,000|1|**4.207s**|
|
|*boost log v1.56*|1,000,000|1|**4.207s**|
|
||||||
|
|*glogl v0.3.3*|1,000,000|1|**1.077s**|
|
||||||
|*spdlog*|1,000,000|1|**0.975s**|
|
|*spdlog*|1,000,000|1|**0.975s**|
|
||||||
|
|
||||||
|
|
||||||
@ -50,7 +51,8 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr
|
|||||||
#### spdlog vs. boost - 10 threads
|
#### spdlog vs. boost - 10 threads
|
||||||
|library|log lines|threads|elapsed|
|
|library|log lines|threads|elapsed|
|
||||||
|-------|:-------:|:-----:|------:|
|
|-------|:-------:|:-----:|------:|
|
||||||
|*boost*|1,000,000|10|**6.592s**|
|
|*boost log v1.56*|1,000,000|10|**6.592s**|
|
||||||
|
|*glogl v0.3.3*|1,000,000|1|**1.678s**|
|
||||||
|*spdlog*|1,000,000|10|**0.961s**|
|
|*spdlog*|1,000,000|10|**0.961s**|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user