mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
selftest/bpf/benchs: Add bpf_map benchmark
Add benchmark for hash_map to reproduce the worst case that non-stop update when map's free is zero. Just like this: ./run_bench_bpf_hashmap_full_update.sh Setting up benchmark 'bpf-hashmap-ful-update'... Benchmark 'bpf-hashmap-ful-update' started. 1:hash_map_full_perf 555830 events per sec ... Signed-off-by: Feng Zhou <zhoufeng.zf@bytedance.com> Link: https://lore.kernel.org/r/20220610023308.93798-3-zhoufeng.zf@bytedance.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
54a9c3a42d
commit
89eda98428
5 changed files with 152 additions and 1 deletions
11
tools/testing/selftests/bpf/benchs/run_bench_bpf_hashmap_full_update.sh
Executable file
11
tools/testing/selftests/bpf/benchs/run_bench_bpf_hashmap_full_update.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue