Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a41687c2
Commit
a41687c2
authored
Jan 20, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base64: add benchmark
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d60d718c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
base64.c
libavutil/base64.c
+13
-0
No files found.
libavutil/base64.c
View file @
a41687c2
...
...
@@ -159,11 +159,24 @@ int main(void)
{
"666666"
,
"NjY2NjY2"
},
{
"abc:def"
,
"YWJjOmRlZg=="
},
};
char
in
[
1024
],
out
[
2048
];
printf
(
"Encoding/decoding tests
\n
"
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
tests
);
i
++
)
error_count
+=
test_encode_decode
(
tests
[
i
].
data
,
strlen
(
tests
[
i
].
data
),
tests
[
i
].
encoded_ref
);
memset
(
in
,
123
,
sizeof
(
in
));
for
(
i
=
0
;
i
<
10000
;
i
++
){
START_TIMER
av_base64_encode
(
out
,
sizeof
(
out
),
in
,
sizeof
(
in
));
STOP_TIMER
(
"encode"
)
}
for
(
i
=
0
;
i
<
10000
;
i
++
){
START_TIMER
av_base64_decode
(
in
,
out
,
sizeof
(
in
));
STOP_TIMER
(
"decode"
)
}
return
error_count
;
}
...
...
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