Apple Open Sources Its Swift Benchmarking Suite
The Swift Benchmarking Suite gives developers a wide range of tools to track the performance of their fledgling Swift applications.Apple has open sourced its Swift Benchmarking Suite just two months after making the Swift programming language itself open source back in December. The company made the announcement in a Feb. 8 post on the Swift Blog. The benchmarking suite includes source code for benchmarks, libraries and utilities that are designed to help track Swift performance and catch performance regressions before they are committed, according to the post. The suite features 75 benchmarks covering a range of Swift workloads, libraries that provide commonly needed benchmarking functions, a driver for running benchmarks and displaying performance metrics and a utility for comparing benchmark metrics across Swift versions, according to the post. "Contributors to the Swift project are encouraged to run Swift's benchmark suite against their changes before requesting pull requests in order to catch potential performance regressions," the post continues. "Instructions for building and running Swift benchmarks are available in swift/benchmark/README.md."
Support will be added in the future to Swift's continuous integration system for running benchmarks on pull requests, the post states. The Swift Benchmarking Suite shares the Swift project's license.