Benchmark support for CPU instruction counts

Happy to announce that the latest version of Benchmark now supports CPU instructions retired statistics.

This is done using perf_events on Linux and using rusage on macOS.

For benchmarks running in a VM, this metric might not return any data due to lack of access to CPU performance counters.

See details here:

15 Likes

Wow, unbelievable! This is a huge step forward in benchmarking for all Swift ecosystem.

3 Likes