From 428658bc76b5b9eec46d3b7e415b5d114ddd3f79 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 15 Apr 2024 12:50:26 -0400 Subject: Print size statistics --- benchmarks/poplar_trie.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'benchmarks/poplar_trie.cpp') diff --git a/benchmarks/poplar_trie.cpp b/benchmarks/poplar_trie.cpp index 6a04cb9..c85e718 100644 --- a/benchmarks/poplar_trie.cpp +++ b/benchmarks/poplar_trie.cpp @@ -75,10 +75,10 @@ int main(int argc, char **argv) { size_t j = rand() % strings.size(); auto res = trie->find(strings[j]); - if (*res != j-1) { + if (*res != (j+1)) { fprintf(stderr, "%ld %d %s\n", j, *res, strings[j].c_str()); } - assert(*(res)+1 == j); + //assert(*(res)+1 == j); } TIMER_STOP(); @@ -91,6 +91,8 @@ int main(int argc, char **argv) { fprintf(stdout, "%ld\t\t%lf\t%ld\n", trie->size(), i_tput, q_lat); + trie->show_stats(std::cerr, 1); + delete trie; fflush(stderr); -- cgit v1.2.3