update correct testing records

This commit is contained in:
c9s 2014-05-17 07:52:03 +08:00
parent 5a4312d473
commit 4572f5cb55
3 changed files with 4 additions and 8 deletions

View file

@ -50,7 +50,7 @@ double bench_iteration_speed(bench *b) {
void bench_print_summary(bench *b) {
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("%.2f i/sec\n", b->N / (b->end - b->start) );
printf("%.2f i/sec\n", (b->N * b->R) / (b->end - b->start) );
}

View file

@ -56,8 +56,4 @@
1400283479,11578012.31
1400283485,10742869.09
1400283755,11545078.70
1400283875,3785403.91
1400284002,2955730.95
1400284062,3701787.14
1400284077,3849171.15
1400284134,3677032.97
1400284307,11493777.72

1 1400242718 5649455.80
56 1400283479 11578012.31
57 1400283485 10742869.09
58 1400283755 11545078.70
59 1400283875 1400284307 3785403.91 11493777.72
1400284002 2955730.95
1400284062 3701787.14
1400284077 3849171.15
1400284134 3677032.97

View file

@ -618,7 +618,7 @@ START_TEST(benchmark_str)
bench_print_summary(&B);
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);
}