mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
dict.c benchmark: finish rehashing before testing lookups.
This commit is contained in:
parent
ed6a4517f5
commit
0f708ab2a9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user