summaryrefslogtreecommitdiffstats
path: root/benchmarks/poplar_trie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/poplar_trie.cpp')
-rw-r--r--benchmarks/poplar_trie.cpp6
1 files changed, 4 insertions, 2 deletions
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);