diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-21 00:32:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-21 00:32:52 +0100 |
commit | 01084336b7b969e29f163699a8414a84d00295da (patch) | |
tree | 9952ca188b85562848a18939df654f222f375ab5 /libavutil/base64.c | |
parent | ea4da9489595ba531ef57c75e583303556b728e5 (diff) | |
download | ffmpeg-01084336b7b969e29f163699a8414a84d00295da.tar.gz |
base64: add a benchmark for a pure syntax check.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/base64.c')
-rw-r--r-- | libavutil/base64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c index cd3cb9e8c0..95d2e505f1 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -184,6 +184,12 @@ int main(void) STOP_TIMER("decode") } + for(i=0; i<10000; i++){ + START_TIMER + av_base64_decode(NULL, out, 0); + STOP_TIMER("sytax check") + } + return error_count; } |