Skip to content

Switch from using the benchmark C++ API to our iree/testing/benchmark.h API and flags. #5669

Open

Description

@benvanik

benchmark's default flag handling doesn't work well for when a project also has their own handling. As part of the work to get our benchmarks running on bare metal we now have a (mostly complete) mapping of their API in C at iree/testing/benchmark.h. As part of this we can use the new flags support to have our own versions of the benchmark library flags that we use to provide consistent flags across all target devices whether using benchmark or not. It'll also let us use our flag verification instead of having to do UNDEFOK and ignoring typos in flags.

There's a TODO here:
https://github.com/google/iree/blob/cb5434134c0dfac50d7de4a1a965b5fe6d484c2d/iree/hal/local/executable_library_benchmark.c#L388-L394

and then iree-benchmark-module (and a few other files) should be switched to use the C API and custom flags parsing.

Activity

  1. added
    runtime/tools
    platform/generic 🔩
    on Apr 29, 2021
  2. self-assigned this
    on Jul 12, 2021
  3. moved this from Not Started to Backlog in (Deprecated) IREEon May 19, 2023
  4. removed their assignment
    on Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanup 🧹platform/generic 🔩runtime/tools

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions