From 01084336b7b969e29f163699a8414a84d00295da Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 21 Jan 2012 00:32:52 +0100 Subject: [PATCH] base64: add a benchmark for a pure syntax check. Signed-off-by: Michael Niedermayer --- libavutil/base64.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; }