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
f5caa00d
Commit
f5caa00d
authored
Nov 23, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bench with bigger log line
parent
3ccef969
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
bench/boost-bench-mt.cpp
bench/boost-bench-mt.cpp
+1
-1
bench/boost-bench.cpp
bench/boost-bench.cpp
+1
-1
bench/glog-bench-mt.cpp
bench/glog-bench-mt.cpp
+1
-1
bench/glog-bench.cpp
bench/glog-bench.cpp
+1
-1
bench/spdlog-bench-mt.cpp
bench/spdlog-bench-mt.cpp
+1
-1
bench/spdlog-bench.cpp
bench/spdlog-bench.cpp
+1
-1
No files found.
bench/boost-bench-mt.cpp
View file @
f5caa00d
...
...
@@ -64,7 +64,7 @@ int main(int argc, char* argv[])
{
int
counter
=
++
msg_counter
;
if
(
counter
>
howmany
)
break
;
BOOST_LOG_SEV
(
lg
,
info
)
<<
"
Boost logger message #"
<<
counter
;
BOOST_LOG_SEV
(
lg
,
info
)
<<
"
boost message #"
<<
counter
<<
": This is some text for your pleasure"
;
}
}));
}
...
...
bench/boost-bench.cpp
View file @
f5caa00d
...
...
@@ -39,7 +39,7 @@ int main(int argc, char* [])
using
namespace
logging
::
trivial
;
src
::
severity_logger_mt
<
severity_level
>
lg
;
for
(
int
i
=
0
;
i
<
howmany
;
++
i
)
BOOST_LOG_SEV
(
lg
,
info
)
<<
"
Boost logger message #"
<<
i
;
BOOST_LOG_SEV
(
lg
,
info
)
<<
"
boost message #"
<<
i
<<
": This is some text for your pleasure"
;
return
0
;
}
bench/glog-bench-mt.cpp
View file @
f5caa00d
...
...
@@ -31,7 +31,7 @@ int main(int argc, char* argv[])
{
int
counter
=
++
msg_counter
;
if
(
counter
>
howmany
)
break
;
LOG
(
INFO
)
<<
"glog message #
"
<<
counter
;
LOG
(
INFO
)
<<
"glog message #
"
<<
counter
<<
": This is some text for your pleasure"
;
}
}));
}
...
...
bench/glog-bench.cpp
View file @
f5caa00d
...
...
@@ -11,7 +11,7 @@ int main(int, char* argv[])
FLAGS_log_dir
=
"logs"
;
google
::
InitGoogleLogging
(
argv
[
0
]);
for
(
int
i
=
0
;
i
<
howmany
;
++
i
)
LOG
(
INFO
)
<<
"glog message # "
<<
i
;
LOG
(
INFO
)
<<
"glog message # "
<<
i
<<
": This is some text for your pleasure"
;
return
0
;
}
bench/spdlog-bench-mt.cpp
View file @
f5caa00d
...
...
@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
{
int
counter
=
++
msg_counter
;
if
(
counter
>
howmany
)
break
;
logger
->
info
()
<<
"spdlog
logger message #"
<<
counter
;
logger
->
info
()
<<
"spdlog
message #"
<<
counter
<<
": This is some text for your pleasure"
;
}
}));
}
...
...
bench/spdlog-bench.cpp
View file @
f5caa00d
...
...
@@ -11,7 +11,7 @@ int main(int, char* [])
logger
->
set_pattern
(
"[%Y-%b-%d %T.%e]: %v"
);
for
(
int
i
=
0
;
i
<
howmany
;
++
i
)
logger
->
info
()
<<
"spdlog
ger message #"
<<
i
;
logger
->
info
()
<<
"spdlog
message #"
<<
i
<<
": This is some text for your pleasure"
;
return
0
;
}
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