forked from ssvb/tinymembench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better adaptive adjustment of the number of loop iterations
Keep doubling the number of loop iterations until the duration of test run exceeds 0.5s and also start from 1 loop iteration instead of 16. In the case if the memory bandwidth is extremely low (for example, running tests with the framebuffer), it makes the test duration reasonable. Also in the case if the memory bandwidth is extremely high, this approach reduces the periodic gettimeofday() calls overhead.
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters