Browse Source

checkasm/sw_range_convert: only run benchmarks on largest input width

Ramiro Polla 5 months ago
parent
commit
2c44393c01
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/checkasm/sw_range_convert.c

+ 2 - 0
tests/checkasm/sw_range_convert.c

@@ -64,6 +64,7 @@ static void check_lumConvertRange(int from)
             call_new(dst1, width);
             if (memcmp(dst0, dst1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dst1, width);
         }
     }
@@ -113,6 +114,7 @@ static void check_chrConvertRange(int from)
             if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
                 memcmp(dstV0, dstV1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dstU1, dstV1, width);
         }
     }