3 ms·
> The test failed if the execution time exceeded the acceptable threshold. In order to not be beholden to specific hardware/execution environment and absolute
by mpweiher 9y ago
> The test failed if the execution time exceeded the acceptable threshold.
In order to not be beholden to specific hardware/execution environment and absolute times, you can also compare an unoptimized version against an optimized version, so the test can be: optimized version must be 2x faster than unoptimized.
Of course if you actually have real-time requirements, it is good to test against those.