From 93ea4e79528ba9f42d57f9004260dcba309492ba Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 14:42:21 +0300 Subject: benchmarks: add yasl-benchmark meson target and document in README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 5240329..65c5920 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,19 @@ The test disables automatic physical input/GPU attachment and cleans up its server. Set `YASL_XORG_MODULE_PATH` to a comma-separated module search path if the test drivers are outside Xorg's default directories. +## Benchmarks + +YASL includes a dedicated performance microbenchmark target (`yasl-benchmark`) evaluating CPU efficiency, memory footprint, cache line pressure, and data structure operations across core hot paths (surface lookups, input queue expansions, ring buffer throughput, timer arm/disarm cycles, and multi-output refresh rate scans): + +```sh +# Run via meson test runner +meson test -C build --benchmark --verbose + +# Or invoke the executable directly +ninja -C build tests/yasl-benchmark +./build/tests/yasl-benchmark +``` + ## Quick Example ```c -- cgit v1.2.3