Add a runnable dispenso example (#9061)

Adds an example to the dispenso library entry so it is reachable from
the
Libraries UI rather than only via a link.

The example compares the default `kStatic` chunking against `kAdaptive`
on a
workload whose per-element cost grows 64x across the range, with a
serial
baseline for reference: https://godbolt.org/z/W116zME61

It prints a note that the timings should be disregarded on Compiler
Explorer.
The sandbox has very few cores, so any of the three can come out ahead
on a
given run; the example is there to read and run, not to measure.

Verified it builds clean under `-Wall -Wextra` and runs correctly
against
dispenso 1.6.2.
This commit is contained in:
Brian Budge
2026-08-25 16:51:52 +02:00
committed by GitHub
parent 6612995c58
commit 0ce7eed58a
+1
View File
@@ -5953,6 +5953,7 @@ libs.dispenso.description=High-performance concurrency: thread pools, parallel l
libs.dispenso.url=https://github.com/facebookincubator/dispenso
libs.dispenso.packagedheaders=true
libs.dispenso.staticliblink=dispenso
libs.dispenso.examples=W116zME61
libs.dispenso.versions=162
libs.dispenso.versions.162.version=1.6.2