1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

tests/checkasm: fix wrong summation of bench time

This was changed 8 years ago with the introduction of the linux-perf path,
with seemingly no justification at the time. Likely a developer oversight
from testing.

This bug not only made --runs completely ineffective, but also meant that we
didn't actually correctly filter out outliers.

Fixes: e0d56f097f
This commit is contained in:
Niklas Haas
2025-03-31 14:40:16 +02:00
parent 1015ea2ba1
commit 256a38101f

View File

@ -364,8 +364,8 @@ typedef struct CheckasmPerf {
}\ }\
}\ }\
emms_c();\ emms_c();\
perf->cycles += t;\ perf->cycles += tsum;\
perf->iterations++;\ perf->iterations += tcount;\
checkasm_set_signal_handler_state(0);\ checkasm_set_signal_handler_state(0);\
}\ }\
} while (0) } while (0)