diff options
Diffstat (limited to 'cleanbench.c')
-rw-r--r-- | cleanbench.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cleanbench.c b/cleanbench.c index 2cbd357..703e787 100644 --- a/cleanbench.c +++ b/cleanbench.c @@ -42,7 +42,7 @@ enum { } tests_t; int -main() +main() { const char* benchmark_name[] = { "NUMERIC SORT ", @@ -90,7 +90,7 @@ main() 1565.5, /* Fourier */ 1.4799, /* Neural Net */ 26.732 /* LU Decomposition */ - }; + }; double linux_memindex = 1.0; /* Linux memory index */ double linux_intindex = 1.0; /* Linux integer index */ @@ -108,7 +108,7 @@ main() for (; benchmark < NUM_TESTS; benchmark++) { printf("%s :", benchmark_name[benchmark]); - + if (!bench_with_confidence(benchmark, &average, &std_dev, &runs)) { printf( "\n** WARNING: The current benchmark result is NOT 95 %% statistically certain.\n" "** WARNING: The variation among the individual results is too large.\n" @@ -203,7 +203,7 @@ bench_with_confidence(int benchmark, double* average, double* std_dev, int* runs if (!calc_confidence(score, *runs, &c_half_interval, average, std_dev)) { return false; } - + /* ** Is the length of the half interval 5% or less of average? ** If so, we can go home. Otherwise, we have to continue. @@ -215,7 +215,7 @@ bench_with_confidence(int benchmark, double* average, double* std_dev, int* runs if (*runs == 30) { return false; } - + score[*runs] = (*Do[benchmark])(); *runs += 1; } |