Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
3ea1d27a
Commit
3ea1d27a
authored
Jul 08, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated readme
parent
df779f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
README.md
README.md
+21
-17
No files found.
README.md
View file @
3ea1d27a
...
@@ -50,25 +50,29 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.
...
@@ -50,25 +50,29 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.
Below are some
[
benchmarks
](
bench
)
comparing popular log libraries under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz
Below are some
[
benchmarks
](
bench
)
comparing popular log libraries under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz
#### Synchronous mode
#### Synchronous mode
Time needed to log 1,000,000 lines in synchronous mode (in seconds, the best of 3 runs):
*******************************************************************************
Single thread, 1,000,000 iterations
|threads|boost log 1.54|glog |easylogging |spdlog|
*******************************************************************************
|-------|:-------:|:-----:|----------:|------:|
basic_st... Elapsed: 0.231041 4,328,228/sec
|1| 4.169s |1.066s |0.975s |0.302s|
rotating_st Elapsed: 0.233466 4,283,282/sec
|10| 6.180s |3.032s |2.857s |0.968s|
daily_st... Elapsed: 0.244491 4,090,136/sec
|100| 5.981s |1.139s |4.512s |0.497s|
null_st... Elapsed: 0.162708 6,145,995/sec
*******************************************************************************
10 threads sharing same logger, 1,000,000 iterations
*******************************************************************************
basic_mt... Elapsed: 0.854029 1,170,920/sec
rotating_mt Elapsed: 0.867038 1,153,351/sec
daily_mt... Elapsed: 0.869593 1,149,963/sec
null_mt... Elapsed: 0.171215 5,840,602/sec
#### Asynchronous mode
#### Asynchronous mode
Time needed to log 1,000,000 lines in asynchronous mode, i.e. the time it takes to put them in the async queue (in seconds, the best of 3 runs):
*******************************************************************************
async logging.. 10 threads sharing same logger, 1,000,000 iterations
|threads|g2log
<sup>
async logger
</sup>
|spdlog
<sup>
async mode
</sup>
|
*******************************************************************************
|:-------|:-----:|-------------------------:|
async... Elapsed: 0.442731 2,258,706/sec
|1| 1.850s |0.216s |
async... Elapsed: 0.427072 2,341,527/sec
|10| 0.943s |0.173s|
async... Elapsed: 0.449768 2,223,369/sec
|100| 0.959s |0.202s|
## Usage Example
## Usage Example
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment