From 3ef4a9f4131faf1a50ecc3cb5c10fe09fe919c33 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 3 Apr 2018 20:10:11 +0200 Subject: [PATCH] Fix issue with the way of benching the BTREE of KLIB. Forgot to initialize the key in the search pass. --- bench/bench-klib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/bench-klib.c b/bench/bench-klib.c index 51fa63e7..7272c5f7 100644 --- a/bench/bench-klib.c +++ b/bench/bench-klib.c @@ -82,7 +82,7 @@ static void test_rbtree(size_t n) rand_init(); unsigned int s = 0; for (size_t i = 0; i < n; i++) { - unsigned long j = 0; + unsigned long j = rand_get(); if (kb_getp(kTree, tree, &j) != 0) s+= j; }