base64: add a benchmark for a pure syntax check.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jan 2012 23:32:52 +0000 (00:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jan 2012 23:32:52 +0000 (00:32 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/base64.c

index cd3cb9e..95d2e50 100644 (file)
@@ -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;
 }