Browse Source

base64: add a benchmark for a pure syntax check.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
01084336b7
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavutil/base64.c

+ 6
- 0
libavutil/base64.c View 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;
}



Loading…
Cancel
Save