free tree2
This commit is contained in:
parent
7171c2b195
commit
dc61d54530
1 changed files with 5 additions and 1 deletions
|
@ -456,7 +456,7 @@ r3_tree_insert_path(n, "/garply/grault/corge", NULL);
|
||||||
BENCHMARK(str_match_entry)
|
BENCHMARK(str_match_entry)
|
||||||
match_entry * e = match_entry_createl("/qux/bar/corge", strlen("/qux/bar/corge") );
|
match_entry * e = match_entry_createl("/qux/bar/corge", strlen("/qux/bar/corge") );
|
||||||
r3_tree_match_entry(n , e);
|
r3_tree_match_entry(n , e);
|
||||||
zfree(e);
|
match_entry_free(e);
|
||||||
END_BENCHMARK(str_match_entry)
|
END_BENCHMARK(str_match_entry)
|
||||||
BENCHMARK_SUMMARY(str_match_entry);
|
BENCHMARK_SUMMARY(str_match_entry);
|
||||||
|
|
||||||
|
@ -470,6 +470,10 @@ r3_tree_insert_path(n, "/garply/grault/corge", NULL);
|
||||||
END_BENCHMARK(pcre_dispatch)
|
END_BENCHMARK(pcre_dispatch)
|
||||||
BENCHMARK_SUMMARY(pcre_dispatch);
|
BENCHMARK_SUMMARY(pcre_dispatch);
|
||||||
|
|
||||||
|
|
||||||
BENCHMARK_RECORD_CSV("bench_str.csv", 4, BR(str_dispatch), BR(pcre_dispatch), BR(tree_compile), BR(str_match_entry) );
|
BENCHMARK_RECORD_CSV("bench_str.csv", 4, BR(str_dispatch), BR(pcre_dispatch), BR(tree_compile), BR(str_match_entry) );
|
||||||
|
|
||||||
|
r3_tree_free(tree2);
|
||||||
|
r3_tree_free(n);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue