To help avoid slowed performance when you update code, Apple’s Swift team has open sourced its benchmark suite of tools for developers.
Designed to “catch performance regressions before they are committed,” the Swift benchmark suite has 75 different benchmarks with core libraries for benchmarking functions.