|
|
|
@ -37,26 +37,12 @@ Just copy the files to your build tree and use a C++11 compiler
|
|
|
|
|
|
|
|
|
|
Below are some [benchmarks](benchmarks) under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz:
|
|
|
|
|
|
|
|
|
|
#### Single thread bench
|
|
|
|
|
|library|log lines|single thread|10 threads
|
|
|
|
|
|-------|:-------:|:-----:|------:|
|
|
|
|
|
|*boost log v1.56*|1,000,000|**4.207s**|**6.592s**|
|
|
|
|
|
|*glog v0.3.3*|1,000,000|**1.077s**|**1.678s**|
|
|
|
|
|
|*spdlog*|1,000,000|**0.975s**|**0.961s**|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### 10 threads bench
|
|
|
|
|
|library|log lines|threads|elapsed|
|
|
|
|
|
|-------|:-------:|:-----:|------:|
|
|
|
|
|
|*boost log v1.56*|1,000,000|10|**6.592s**|
|
|
|
|
|
|*glog v0.3.3*|1,000,000|10|**1.678s**|
|
|
|
|
|
|*spdlog*|1,000,000|10|**0.961s**|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Usage Example
|
|
|
|
|
```c++
|
|
|
|
|
#include <iostream>
|
|
|
|
|