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
e8d99cee
Commit
e8d99cee
authored
6 years ago
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix formatter bench
parent
ccfa3f03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
formatter-bench.cpp
bench/formatter-bench.cpp
+0
-13
No files found.
bench/formatter-bench.cpp
View file @
e8d99cee
...
...
@@ -8,19 +8,6 @@
#include "spdlog/spdlog.h"
#include "spdlog/details/pattern_formatter.h"
void
bench_scoped_pad
(
benchmark
::
State
&
state
,
size_t
wrapped_size
,
spdlog
::
details
::
padding_info
padinfo
)
{
fmt
::
memory_buffer
dest
;
for
(
auto
_
:
state
)
{
{
spdlog
::
details
::
scoped_pad
p
(
wrapped_size
,
padinfo
,
dest
);
benchmark
::
DoNotOptimize
(
p
);
dest
.
clear
();
}
}
}
void
bench_formatter
(
benchmark
::
State
&
state
,
std
::
string
pattern
)
{
auto
formatter
=
spdlog
::
details
::
make_unique
<
spdlog
::
pattern_formatter
>
(
pattern
);
...
...
This diff is collapsed.
Click to expand it.
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