Skip to content

Add a cross-platform performance benchmark suite with CI tracking #26516

Open

Description

@MartinZikmund

What would you like to be added? 💡

A BenchmarkDotNet-based benchmark suite that runs in-process inside the runtime test host on every Skia target, tracked over time:

  • Benchmarks in three categories: micro (dependency properties, layout primitives and similar), scenario (realistic control and page workloads) and render (frame and composition costs).
  • A SamplesApp Benchmarks page that runs the suite in-app and shows the results grouped by category (mean, stddev, allocated bytes, N). The layout is stable so two windows can be compared side by side. Results can be copied as markdown or saved as a zip.
  • A publisher console tool with normalize (stamp results with commit, branch, platform and run id), merge (append to a JSON-Lines history store) and compare (local A/B of two result zips).
  • A CI pipeline that runs on master and on a schedule (not on PRs), one stage per Skia target plus WinAppSDK, and publishes the results to a dashboard.
  • Docs on adding benchmarks, the local workflow and provisioning the dashboard.

Why is this needed? 🤔

Performance work is measured by hand today with throwaway harnesses, so regressions are only noticed when someone happens to measure again. A shared suite with a history across platforms makes regressions visible, and makes perf PRs easy to back up with numbers.

For which platforms 📱💻🖥️

Build tasks, Skia (Windows, Linux X11/framebuffer, macOS, Android, iOS, WebAssembly), WinAppSDK as the reference

Anything else we need to know? 💬

Work is in progress.

Activity

  1. added
    kind/enhancement
    area/tests 🧪
    area/performance 📈
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/performance 📈area/tests 🧪kind/enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions