make microbenchmark more specific

This commit is contained in:
fcostaoliveira 2024-12-04 17:55:02 +00:00
parent 3766a7b493
commit 24af7190fd
1 changed files with 2 additions and 2 deletions

View File

@ -2168,7 +2168,7 @@ int dictTest(int argc, char **argv, int flags) {
dictEntry *de = dictAddRaw(dict, key, NULL); dictEntry *de = dictAddRaw(dict, key, NULL);
assert(de != NULL); assert(de != NULL);
} }
end_benchmark("Find() and inserting via dictAddRaw() non existing"); end_benchmark("Find() and inserting via dictFind()+dictAddRaw() non existing");
dictEmpty(dict, NULL); dictEmpty(dict, NULL);
@ -2184,7 +2184,7 @@ int dictTest(int argc, char **argv, int flags) {
de = dictAddNonExistingRaw(dict, key, &hash); de = dictAddNonExistingRaw(dict, key, &hash);
assert(de != NULL); assert(de != NULL);
} }
end_benchmark("Find() and inserting via dictAddNonExistingRaw() non existing"); end_benchmark("Find() and inserting via dictGetHash()+dictFindWithHash()+dictAddNonExistingRaw() non existing");
assert((long)dictSize(dict) == count); assert((long)dictSize(dict) == count);
/* Wait for rehashing. */ /* Wait for rehashing. */