diff options
author | Phil Sutter <phil@nwl.cc> | 2024-06-27 10:18:18 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2024-06-27 15:55:26 +0200 |
commit | 5c9ef9016d2781f6e07a544e34ec9f4a8d65d0e2 (patch) | |
tree | 26cd35ec02e6ed456a27a92510fe666400d43349 /lib/ipset_hash_netportnet.c | |
parent | 851cb04ffee5040f1e0063f77c3fe9bc6245e0fb (diff) |
tests: Reduce testsuite run-time
Where acceptable, batch add set element calls to avoid overhead of
excessive 'ipset' program spawns. On my (slow) testing VM, this patch
reduces a full run of tests/runtest.sh from ~70min down to ~11min.
This might eliminate the situation being tested: resize.sh might be such
a case so batch only 255 'ipset add' calls and continue to repeat these
batched calls 32 times in hopes that it still qualifies as the resizing
stress test tests/hash:ip.t calls it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'lib/ipset_hash_netportnet.c')
0 files changed, 0 insertions, 0 deletions