diff mbox series

[FFmpeg-devel,1/3] avutil/tests/lzo: remove timer macros

Message ID 20210607022036.960-1-jamrial@gmail.com
State Accepted
Commit 75f0bc651f999fe946f9bf07ab909fa7aecedbd3
Headers show
Series [FFmpeg-devel,1/3] avutil/tests/lzo: remove timer macros
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer June 7, 2021, 2:20 a.m. UTC
Suggested-by: ffmpeg@fb.com
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavutil/tests/lzo.c | 2 --
 1 file changed, 2 deletions(-)

Comments

James Almer June 13, 2021, 2:50 p.m. UTC | #1
On 6/6/2021 11:20 PM, James Almer wrote:
> Suggested-by: ffmpeg@fb.com
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavutil/tests/lzo.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/libavutil/tests/lzo.c b/libavutil/tests/lzo.c
> index 0147ab5c1d..a5655dbfc5 100644
> --- a/libavutil/tests/lzo.c
> +++ b/libavutil/tests/lzo.c
> @@ -55,7 +55,6 @@ int main(int argc, char *argv[]) {
>       } else
>           lzo1x_999_compress(orig, s, comp, &clen, tmp);
>       for (i = 0; i < 300; i++) {
> -START_TIMER
>           inlen = clen; outlen = MAXSZ;
>   #if BENCHMARK_LIBLZO_SAFE
>           if (lzo1x_decompress_safe(comp, inlen, decomp, &outlen, NULL))
> @@ -65,7 +64,6 @@ START_TIMER
>           if (av_lzo1x_decode(decomp, &outlen, comp, &inlen))
>   #endif
>               av_log(NULL, AV_LOG_ERROR, "decompression error\n");
> -STOP_TIMER("lzod")
>       }
>       if (memcmp(orig, decomp, s))
>           av_log(NULL, AV_LOG_ERROR, "decompression incorrect\n");

Will apply.
diff mbox series

Patch

diff --git a/libavutil/tests/lzo.c b/libavutil/tests/lzo.c
index 0147ab5c1d..a5655dbfc5 100644
--- a/libavutil/tests/lzo.c
+++ b/libavutil/tests/lzo.c
@@ -55,7 +55,6 @@  int main(int argc, char *argv[]) {
     } else
         lzo1x_999_compress(orig, s, comp, &clen, tmp);
     for (i = 0; i < 300; i++) {
-START_TIMER
         inlen = clen; outlen = MAXSZ;
 #if BENCHMARK_LIBLZO_SAFE
         if (lzo1x_decompress_safe(comp, inlen, decomp, &outlen, NULL))
@@ -65,7 +64,6 @@  START_TIMER
         if (av_lzo1x_decode(decomp, &outlen, comp, &inlen))
 #endif
             av_log(NULL, AV_LOG_ERROR, "decompression error\n");
-STOP_TIMER("lzod")
     }
     if (memcmp(orig, decomp, s))
         av_log(NULL, AV_LOG_ERROR, "decompression incorrect\n");