diff --git a/bench.html b/bench.html index a772687..e62265b 100644 --- a/bench.html +++ b/bench.html @@ -60,12 +60,13 @@ }], legend: { - align: 'left', + align: 'right', verticalAlign: 'top', y: 50, - x: 100, - floating: true, - borderWidth: 0 + floating: false, + layout: 'vertical', + background: '#fff', + borderWidth: 1, }, tooltip: { diff --git a/tests/bench.h b/tests/bench.h index 85ba0bb..a47fa53 100644 --- a/tests/bench.h +++ b/tests/bench.h @@ -55,5 +55,6 @@ void bench_append_csv(char *filename, int countOfB, ...); #define BENCHMARK_RECORD_CSV(filename, countOfB, ...) \ bench_append_csv(filename, countOfB, __VA_ARGS__) +#define BR(b) &b; #endif /* !BENCH_H */ diff --git a/tests/check_tree.c b/tests/check_tree.c index 96271c5..2626484 100644 --- a/tests/check_tree.c +++ b/tests/check_tree.c @@ -703,7 +703,9 @@ r3_tree_insert_path(n, "/garply/grault/qux", NULL); r3_tree_insert_path(n, "/garply/grault/quux", NULL); r3_tree_insert_path(n, "/garply/grault/corge", NULL); + BENCHMARK(tree_compile) r3_tree_compile(n); + END_BENCHMARK(tree_compile) node *m; m = r3_tree_match(n , "/qux/bar/corge", NULL); @@ -727,7 +729,7 @@ r3_tree_insert_path(n, "/garply/grault/corge", NULL); BENCHMARK_SUMMARY(pcre_dispatch); - BENCHMARK_RECORD_CSV("bench_str.csv", 2, &string_dispatch, &pcre_dispatch); + BENCHMARK_RECORD_CSV("bench_str.csv", 2, BR(string_dispatch), BR(pcre_dispatch), BR(tree_compile) ); } END_TEST