Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
2a6596c2
Commit
2a6596c2
authored
Nov 04, 2014
by
gabime
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/gabime/spdlog
parents
29d1790f
640790ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
README.md
README.md
+23
-16
No files found.
README.md
View file @
2a6596c2
...
...
@@ -13,7 +13,7 @@ Just copy the files to your build tree and use a C++11 compiler
*
visual studio 2013
##Features
*
Very fast - performance is the primary goal
*
Very fast - performance is the primary goal
(see becnhmarks below)
*
Headers only
*
No dependencies
*
Cross platform - Linux / Windows on 32/64 bits
...
...
@@ -25,21 +25,28 @@ Just copy the files to your build tree and use a C++11 compiler
*
Logging levels
*
Custom formatting with user defined patterns
## Benchmarks
Here are some benchmarks (Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz)
```
*******************************************************************************
Single thread, 250,000 iterations, flush every 1000 lines
*******************************************************************************
rotating_st... 817,860 lines/sec
daily_st... 827,820 lines /sec
*******************************************************************************
4 threads sharing same logger, 250,000 iterations, flush every 1000 lines
*******************************************************************************
rotating_mt... 1,476,013 lines/sec
daily_mt... 1,477,619 lines/sec
```
## Benchmarks comparison
Here are some
[
benchmarks
](
bench-comparison
)
comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz.
The bench writes 1,000,000 log lines to a rotating log file:
#### spdlog vs. boost - single thread
|library|log lines|threads|elapsed|
|-------|:-------:|:-----:|------:|
|
*boost*
|1,000,000|1|
**4.207s**
|
|
*spdlog*
|1,000,000|1|
**0.975s**
|
#### spdlog vs. boost - 10 threads
|library|log lines|threads|elapsed|
|-------|:-------:|:-----:|------:|
|
*boost*
|1,000,000|10|
**6.592s**
|
|
*spdlog*
|1,000,000|10|
**0.961s**
|
## Usage Example
```
c++
...
...
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