[FFmpeg-cvslog] base64: add a benchmark for a pure syntax check.

Michael Niedermayer git at videolan.org
Sat Jan 21 00:57:00 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 21 00:32:52 2012 +0100| [01084336b7b969e29f163699a8414a84d00295da] | committer: Michael Niedermayer

base64: add a benchmark for a pure syntax check.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01084336b7b969e29f163699a8414a84d00295da
---

 libavutil/base64.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libavutil/base64.c b/libavutil/base64.c
index cd3cb9e..95d2e50 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;
 }
 



More information about the ffmpeg-cvslog mailing list