Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

BPF_PROG_TEST_RUN does not reset output buffer on each run #57

Description

@lmb

It's very easy to mess up benchmarks when using Program.Benchmark, since the kernel feeds the output from benchmark run N to run N+1. This means we don't measure the exact same action on each iteration.

Ideally the kernel would fix this, but I'm not sure that is going to happen. I propose that Benchmark() checks that input == output, and raises an error otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions