use long for N
This commit is contained in:
parent
b90f575a0a
commit
134a849ecd
1 changed files with 3 additions and 2 deletions
|
@ -636,14 +636,15 @@ START_TEST(benchmark_str)
|
|||
|
||||
printf("Benchmarking...\n");
|
||||
double s = microtime();
|
||||
unsigned int N = 5000000;
|
||||
long N = 5000000;
|
||||
for (int i = 0; i < 5000000 ; i++ ) {
|
||||
rtree_match(n , "/qux/bar/corge", strlen("/qux/bar/corge"), NULL);
|
||||
}
|
||||
double e = microtime();
|
||||
|
||||
printf("%ld iterations ", N);
|
||||
printf("finished in %lf seconds\n", e - s );
|
||||
printf("%.2f i/sec\n", N / (e - s) );
|
||||
printf("%lf seconds\n", e - s );
|
||||
|
||||
FILE *fp = fopen("bench_str.csv", "a+");
|
||||
fprintf(fp, "%ld,%.2f\n", unixtime(), N / (e - s));
|
||||
|
|
Loading…
Reference in a new issue