#include <stdio.h>
#include <unistd.h>
#include <math.h>
#include "config.h"
#include "system.h"
#include "benchmark.h"
Go to the source code of this file.
#define show_progress |
( |
|
total_time, |
|
|
|
progress_time |
|
) |
| |
Value:
fprintf(stdout, "Progress: %02lu %%\r", \
(progress_time * 100) / total_time); \
fflush(stdout); \
}
Definition at line 29 of file benchmark.c.
compute how many rounds of calculation we should do to get the given load time
- Parameters
-
load | aimed load time in µs |
- Return values
-
Definition at line 45 of file benchmark.c.
benchmark generates a specific sleep an load time with the performance governor and compares the used time for same calculations done with the configured powersave governor
- Parameters
-
config | config values for the benchmark |
Definition at line 91 of file benchmark.c.