提交 0f708ab2 编写于 作者: A antirez

dict.c benchmark: finish rehashing before testing lookups.

上级 ed6a4517
......@@ -1150,6 +1150,11 @@ int main(int argc, char **argv) {
end_benchmark("Inserting");
assert((long)dictSize(dict) == count);
/* Wait for rehashing. */
while (dictIsRehashing(dict)) {
dictRehashMilliseconds(dict,100);
}
start_benchmark();
for (j = 0; j < count; j++) {
sds key = sdsfromlonglong(rand() % count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册