HomeFreeBSD

tests: Revise FIB lookups per second benchmarking routines

Description

tests: Revise FIB lookups per second benchmarking routines

Fix a bug in the LPM SEQ benchmark (missing break inside a switch block)
by restructuring the test loop, while introducing additional two
synthetic test options:

ANN: scan only the address space announced in current RIB
REP: repeat lookups over several keys in a sliding window scheme

The total of eight combinations of test options are now available
through dedicated sysctl hooks.

Differential Revision: https://reviews.freebsd.org/D30311
Reviewed by: melifaro
MFC after: 3 days

(cherry picked from commit b6f8436b094daf7b1c429ce74997a4daf6994fcb)

Details

Provenance
zecAuthored on Jun 17 2021, 6:49 AM
Parents
rG2b6b8ea60cb5: Revise FIB lookups per second benchmarking routines.
Branches
Unknown
Tags
Unknown