diff --git a/tests/bench.c b/tests/bench.c index aa55b7c..6d40784 100644 --- a/tests/bench.c +++ b/tests/bench.c @@ -48,7 +48,7 @@ double bench_iteration_speed(bench *b) { return b->N / (b->end - b->start); } -void bench_summary(bench *b) { +void bench_print_summary(bench *b) { printf("%ld runs, ", b->R); printf("%ld iterations, ", b->N); printf("finished in %lf seconds\n", b->end - b->start ); diff --git a/tests/bench.h b/tests/bench.h index 3c8dc40..1feecb0 100644 --- a/tests/bench.h +++ b/tests/bench.h @@ -46,6 +46,6 @@ void bench_stop(bench *b); double bench_iteration_speed(bench *b); -void bench_summary(bench *b); +void bench_print_summary(bench *b); #endif /* !BENCH_H */ diff --git a/tests/bench_str.csv b/tests/bench_str.csv index fcf39ae..d367fe7 100644 --- a/tests/bench_str.csv +++ b/tests/bench_str.csv @@ -60,3 +60,4 @@ 1400284002,2955730.95 1400284062,3701787.14 1400284077,3849171.15 +1400284134,3677032.97 diff --git a/tests/check_tree.c b/tests/check_tree.c index e57b060..0072199 100644 --- a/tests/check_tree.c +++ b/tests/check_tree.c @@ -624,7 +624,7 @@ START_TEST(benchmark_str) */ END_BENCHMARK() - bench_summary(&B); + bench_print_summary(&B); FILE *fp = fopen("bench_str.csv", "a+"); fprintf(fp, "%ld,%.2f\n", unixtime(), B.N / (B.end - B.start));