diff --git a/benchmark/CSSBenchmark.c b/benchmark/CSSBenchmark.c index b5bff56e..0f980a31 100644 --- a/benchmark/CSSBenchmark.c +++ b/benchmark/CSSBenchmark.c @@ -10,17 +10,12 @@ #include "CSSBenchmark.h" #include -#include -// Measure functions can be quite slow, for example when measuring text. -// Simulate this by sleeping for 1 millisecond. static CSSSize _measure(void *context, float width, CSSMeasureMode widthMode, float height, CSSMeasureMode heightMode) { - const struct timespec sleeptime = {0, 1000000}; - nanosleep(&sleeptime, NULL); return (CSSSize){ .width = widthMode == CSSMeasureModeUndefined ? 10 : width, .height = heightMode == CSSMeasureModeUndefined ? 10 : width, diff --git a/benchmark/CSSBenchmark.h b/benchmark/CSSBenchmark.h index 7286356c..f1314e98 100644 --- a/benchmark/CSSBenchmark.h +++ b/benchmark/CSSBenchmark.h @@ -15,7 +15,7 @@ #include #include -#define NUM_REPETITIONS 100 +#define NUM_REPETITIONS 1000 #define CSS_BENCHMARKS(BLOCK) \ int main(int argc, char const *argv[]) { \