Benchmarks
POET includes benchmarks for static_for, dynamic_for, and dispatch.
Run locally
cmake -S . -B build -DPOET_BUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --target poet_benchmarks
cmake --build build --target poet_run_bench
For the multi-compiler sweep:
bash scripts/bench_all.sh
Key takeaways
dynamic_forbreaks dependency chains through lane-aware callbacks.static_forbenefits from tuned block sizes on heavier loop bodies.dispatchturns a runtime choice into compile-time specialization.
See the repository README for current charts.
Run a microbench on Compiler Explorer
The microbench in examples/benchmark.cpp
compares scalar dot product against dynamic_for<4> and dynamic_for<8>.
The link below runs it on Compiler Explorer in Execute mode and shows
timings in the output pane: