Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
map: always traverse the whole map in BenchmarkIterate
The batch benchmarks currently rely on allocating output buffers equal to the size of the map to do a full iteration in a single syscall. This is not a very realistic scenario because users will most likely allocate fixed batch sizes instad. Nevertheless this gives a useful "fastest possible dump". Adjust the batch benchmarks to include cursor allocation and checking for ErrKeyNotFound to make them a bit more realistic. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information