Commit 892de62f authored by gabime's avatar gabime

Merge branch 'master' of https://github.com/gabime/spdlog

parents c2a762a2 03924183
...@@ -33,22 +33,26 @@ Just copy the files to your build tree and use a C++11 compiler ...@@ -33,22 +33,26 @@ Just copy the files to your build tree and use a C++11 compiler
## Benchmarks ## Benchmarks
Below are some [benchmarks](bench) comparing the time needed to log 1,000,000 lines to file under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz (the best of 3 runs for each logger): Below are some [benchmarks](bench) comparing popular log libraries under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz
#### Synchronous mode
Time needed to log 1,000,000 lines under synchronous mode (in seconds, the best of 3 runs):
### Synchronous mode
|threads|boost log|glog |easylogging |spdlog| |threads|boost log|glog |easylogging |spdlog|
|-------|:-------:|:-----:|----------:|------:| |-------|:-------:|:-----:|----------:|------:|
|1| 4.169s |1.066s |0.975s :|0.302s| |1| 4.169s |1.066s |0.975s |0.302s|
|10| 16.029 |3.032s |2.857 :|0.968s| |10| 16.029 |3.032s |2.857s |0.968s|
|100| 15.008 |1.139s |4.512s :|0.497s| |100| 15.008 |1.139s |4.512s |0.497s|
#### Asynchronous mode
Time needed to log 1,000,000 lines under asynchronous mode, i.e. the time it takes to put them in the async queue (in seconds, the best of 3 runs):
### ASynchronous mode
|threads|g2log |spdlog<sup>async mode</sup>| |threads|g2log |spdlog<sup>async mode</sup>|
|:-------|----- :|:-------------------------:| |:-------|:-----:|-------------------------:|
|1| 1.850s |0.216s |1| 1.850s |0.216s |
|10| 0.943s |0.173s |10| 0.943s |0.173s|
|100| 0.959s |0.202 |100| 0.959s |0.202s|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment