Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
c1858bf5
Commit
c1858bf5
authored
Jan 12, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ベンチマークの出力をタブ区切りに変更
parent
b83b9697
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
benchmark.cpp
example/zlib/benchmark.cpp
+6
-4
No files found.
example/zlib/benchmark.cpp
View file @
c1858bf5
...
...
@@ -85,7 +85,7 @@ int main()
return
std
::
vector
<
std
::
byte
>
(
std
::
begin
(
data
),
std
::
end
(
data
));
}();
std
::
puts
(
"compression[us]
,
decompression[us]"
);
std
::
puts
(
"compression[us]
\t
decompression[us]"
);
constexpr
std
::
size_t
n
=
100
;
...
...
@@ -93,16 +93,18 @@ int main()
for
(
std
::
size_t
i
=
0
;
i
<
n
;
i
++
)
{
const
auto
compression_time
=
measure
([
&
]()
{
const
auto
compression_time
=
measure
([
&
]()
{
compression_test
(
raw_test_data
,
output_buffer
,
9
);
});
const
auto
decompression_time
=
measure
([
&
]()
{
const
auto
decompression_time
=
measure
([
&
]()
{
decompression_test
(
compressed_test_data
,
output_buffer
);
});
std
::
printf
(
"%f
,
%f
\n
"
,
"%f
\t
%f
\n
"
,
1e6
*
compression_time
/
CLOCKS_PER_SEC
,
1e6
*
decompression_time
/
CLOCKS_PER_SEC
);
...
...
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