microsoft / ebpf-for-windows

eBPF implementation that runs on top of Windows
MIT License
2.82k stars 216 forks source link

eBPF performance tests should perform end-to-end tests #594

Open Alan-Jowett opened 2 years ago

Alan-Jowett commented 2 years ago

eBPF performance tests currently only focus on the platform and execution context.

It would make sense to add the ability to run more meaningful end-to-end performance tests that loaded eBPF programs + maps and measure performance in situ.

Alan-Jowett commented 1 year ago

Proposal: Build a library of cross-platform eBPF performance tests built on top of BPF_PROG_TEST_RUN and libbpf. This will permit running the same tests on Linux and Windows for cross platform performance comparisons.

saxena-anurag commented 1 year ago
  1. Perf test for LRU and hash map
  2. Write empty ebpf program and measure the invocation of eBPF program.
Alan-Jowett commented 1 year ago

I would recommend updating bpftool to allow it to set CPU id for the bpftool prog run command. This will allow using bpftool for performance measurements without needing to write a new tool.