]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/tools/speed.c
htable: push capacity limit from 66 to 75%
[ccan] / ccan / htable / tools / speed.c
index 72a08e6b4cd1e253b14436e644d5ab5d5608739f..26231924a1f68b33cfe244b21981d0cb4ca5ebe2 100644 (file)
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
        fflush(stdout);
        gettimeofday(&start, NULL);
        for (i = 0; i < num; i++) {
-               unsigned int n = num * 6 + i * 9;
+               unsigned int n = num * (5 + 9) + i * 9;
                if (htable_obj_get(ht, &n))
                        abort();
        }