update correct testing records
This commit is contained in:
parent
5a4312d473
commit
4572f5cb55
3 changed files with 4 additions and 8 deletions
|
@ -50,7 +50,7 @@ double bench_iteration_speed(bench *b) {
|
||||||
|
|
||||||
void bench_print_summary(bench *b) {
|
void bench_print_summary(bench *b) {
|
||||||
printf("%ld runs, ", b->R);
|
printf("%ld runs, ", b->R);
|
||||||
printf("%ld iterations, ", b->N);
|
printf("%ld iterations each run, ", b->N);
|
||||||
printf("finished in %lf seconds\n", b->end - b->start );
|
printf("finished in %lf seconds\n", b->end - b->start );
|
||||||
printf("%.2f i/sec\n", b->N / (b->end - b->start) );
|
printf("%.2f i/sec\n", (b->N * b->R) / (b->end - b->start) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,8 +56,4 @@
|
||||||
1400283479,11578012.31
|
1400283479,11578012.31
|
||||||
1400283485,10742869.09
|
1400283485,10742869.09
|
||||||
1400283755,11545078.70
|
1400283755,11545078.70
|
||||||
1400283875,3785403.91
|
1400284307,11493777.72
|
||||||
1400284002,2955730.95
|
|
||||||
1400284062,3701787.14
|
|
||||||
1400284077,3849171.15
|
|
||||||
1400284134,3677032.97
|
|
||||||
|
|
|
|
@ -618,7 +618,7 @@ START_TEST(benchmark_str)
|
||||||
bench_print_summary(&B);
|
bench_print_summary(&B);
|
||||||
|
|
||||||
FILE *fp = fopen("bench_str.csv", "a+");
|
FILE *fp = fopen("bench_str.csv", "a+");
|
||||||
fprintf(fp, "%ld,%.2f\n", unixtime(), B.N / (B.end - B.start));
|
fprintf(fp, "%ld,%.2f\n", unixtime(), (B.N * B.R) / (B.end - B.start));
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue