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
c948f158
Commit
c948f158
authored
Nov 24, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated benchmarks
parent
def6fc62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
44 deletions
+53
-44
README.md
README.md
+3
-3
results.txt
bench/results.txt
+32
-32
run_all.sh
bench/run_all.sh
+18
-9
No files found.
README.md
View file @
c948f158
...
@@ -38,9 +38,9 @@ Just copy the files to your build tree and use a C++11 compiler
...
@@ -38,9 +38,9 @@ Just copy the files to your build tree and use a C++11 compiler
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:
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:
|threads|boost log|glog|g2log|spdlog|spdlog
<sup>
async mode
</sup>
|
|threads|boost log|glog|g2log|spdlog|spdlog
<sup>
async mode
</sup>
|
|-------|:-------:|:-----:|------:|------:|
|-------|:-------:|:-----:|------:|------:|
------:|
|1|4.
430s|1.115s|3.227s|0.940s|1.574
s
|1|4.
779s|1.109s|3.155s|0.947s|1.455
s
|10|1
3.985s|2.027s|3.476s|3.822s|1.972
|10|1
5.151ss|3.546s|3.500s|1.549s|2.040s|
...
...
bench/results.txt
View file @
c948f158
...
@@ -2,32 +2,32 @@ Running benchmakrs (all with 1000,000 writes to the logs folder
...
@@ -2,32 +2,32 @@ Running benchmakrs (all with 1000,000 writes to the logs folder
boost-bench (single thread)..
boost-bench (single thread)..
real 0m4.
430
s
real 0m4.
779
s
user 0m4.
359
s
user 0m4.
256
s
sys 0m0.0
72
s
sys 0m0.0
44
s
glog-bench (single thread)..
glog-bench (single thread)..
real 0m1.1
15
s
real 0m1.1
09
s
user 0m0.9
9
7s
user 0m0.9
6
7s
sys 0m0.1
17
s
sys 0m0.1
40
s
g2log-bench (single thread)..
g2log-bench (single thread)..
Exiting, log location: logs/g2log-bench.g2log.20141124-23
25
19.log
Exiting, log location: logs/g2log-bench.g2log.20141124-23
34
19.log
real 0m3.
277
s
real 0m3.
155
s
user 0m4.
189
s
user 0m4.
255
s
sys 0m
1.021
s
sys 0m
0.874
s
spdlog-bench (single thread)
spdlog-bench (single thread)
real 0m0.94
0
s
real 0m0.94
7
s
user 0m0.
892
s
user 0m0.
914
s
sys 0m0.0
48
s
sys 0m0.0
32
s
------------------------------------
------------------------------------
...
@@ -35,32 +35,32 @@ Multithreaded benchmarks..
...
@@ -35,32 +35,32 @@ Multithreaded benchmarks..
------------------------------------
------------------------------------
boost-bench-mt (10 threads, single logger)..
boost-bench-mt (10 threads, single logger)..
real 0m1
3.985
s
real 0m1
5.151
s
user 0m35.
04
5s
user 0m35.
55
5s
sys 0m7.
196
s
sys 0m7.
453
s
glog-bench-mt (10 threads, single logger)..
glog-bench-mt (10 threads, single logger)..
real 0m
2.027
s
real 0m
3.546
s
user 0m
5.552
s
user 0m
9.836
s
sys 0m
6.223
s
sys 0m
10.985
s
g2log-bench-mt (10 threads, single logger)..
g2log-bench-mt (10 threads, single logger)..
Exiting, log location: logs/g2log-bench-mt.g2log.20141124-23
2551
.log
Exiting, log location: logs/g2log-bench-mt.g2log.20141124-23
3502
.log
real 0m3.
476
s
real 0m3.
500
s
user 0m7.6
49
s
user 0m7.6
71
s
sys 0m1.6
19
s
sys 0m1.6
46
s
spdlog-bench-mt (10 threads, single logger)..
spdlog-bench-mt (10 threads, single logger)..
real 0m
3.822
s
real 0m
1.549
s
user 0m
14.233
s
user 0m
6.994
s
sys 0m
6.117
s
sys 0m
2.969
s
------------------------------------
------------------------------------
...
@@ -68,13 +68,13 @@ Async benchmarks..
...
@@ -68,13 +68,13 @@ Async benchmarks..
------------------------------------
------------------------------------
spdlog-bench-async (single thread)..
spdlog-bench-async (single thread)..
real 0m1.
574
s
real 0m1.
455
s
user 0m2.
613
s
user 0m2.
381
s
sys 0m0.4
05
s
sys 0m0.4
17
s
spdlog-bench-mt-async (10 threads, single logger)..
spdlog-bench-mt-async (10 threads, single logger)..
real 0m
1.972
s
real 0m
2.040
s
user 0m
3.965
s
user 0m
4.076
s
sys 0m2.
747
s
sys 0m2.
822
s
bench/run_all.sh
View file @
c948f158
...
@@ -3,53 +3,61 @@ echo "Running benchmakrs (all with 1000,000 writes to the logs folder"
...
@@ -3,53 +3,61 @@ echo "Running benchmakrs (all with 1000,000 writes to the logs folder"
echo
echo
echo
"boost-bench (single thread).."
echo
"boost-bench (single thread).."
time
./boost-bench
time
./boost-bench
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"glog-bench (single thread).."
echo
"glog-bench (single thread).."
time
./glog-bench
time
./glog-bench
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"g2log-bench (single thread).."
echo
"g2log-bench (single thread).."
time
./g2log-bench
time
./g2log-bench
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"spdlog-bench (single thread)"
echo
"spdlog-bench (single thread)"
time
./spdlog-bench
time
./spdlog-bench
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"------------------------------------"
echo
"------------------------------------"
echo
"Multithreaded benchmarks.."
echo
"Multithreaded benchmarks.."
echo
"------------------------------------"
echo
"------------------------------------"
echo
"boost-bench-mt (10 threads, single logger)"
..
echo
"boost-bench-mt (10 threads, single logger)"
..
time
./boost-bench-mt
time
./boost-bench-mt
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"glog-bench-mt (10 threads, single logger)"
..
echo
"glog-bench-mt (10 threads, single logger)"
..
time
./glog-bench-mt
time
./glog-bench-mt
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"g2log-bench-mt (10 threads, single logger)"
..
echo
"g2log-bench-mt (10 threads, single logger)"
..
time
./g2log-bench-mt
time
./g2log-bench-mt
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"spdlog-bench-mt (10 threads, single logger)"
..
echo
"spdlog-bench-mt (10 threads, single logger)"
..
time
./spdlog-bench-mt
time
./spdlog-bench-mt
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"------------------------------------"
echo
"------------------------------------"
echo
"Async benchmarks.."
echo
"Async benchmarks.."
...
@@ -57,9 +65,10 @@ echo "------------------------------------"
...
@@ -57,9 +65,10 @@ echo "------------------------------------"
echo
"spdlog-bench-async (single thread)"
..
echo
"spdlog-bench-async (single thread)"
..
time
./spdlog-bench-async
time
./spdlog-bench-async
rm
logs/
*
echo
echo
echo
echo
sleep
3
sleep
5
echo
"spdlog-bench-mt-async (10 threads, single logger)"
..
echo
"spdlog-bench-mt-async (10 threads, single logger)"
..
time
./spdlog-bench-mt-async
time
./spdlog-bench-mt-async
...
...
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