Skip to main content

Apple open sources benchmarking suite for Swift

Apple today announced in a post on its Swift blog that it is open sourcing the Swift benchmark suite. This announcement comes two months after the company made the Swift programming language open source, allowing the developer community to have direct access to the platform. Much like the rest of Swift, the benchmarking suite is available now on GitHub with an open source Apache license.

Specifically, the suite contains source code for benchmarks, libraries, and utilities. Apple engineer Luke Larson made the announcement, explaining that the benchmark suite is designed to track Swift performance and catch performance issues before they are committed.

Here’s what is available on GitHub for developers:

  • 75 benchmarks covering a number of important Swift workloads
  • Libraries providing commonly needed benchmarking functions
  • A driver for running benchmarks and displaying performance metrics
  • A utility for comparing benchmark metrics across Swift versions

Furthermore, Larson encourages developers to make suggestions relating to Swift’s benchmark suite, noting that all requests for new benchmarks covering performance critical workloads, additions to benchmark helper libraries, and other improvements are encouraged.

The open souring of the Swift benchmark suite continues Apple’s trend of making Swift as accessible as possible, both for developers and those who wish to teach Swift to younger crowds. Apple senior vice president of software Craig Federighi noted last year in an interview that making Swift open source will greatly increase interaction with developers.

The Swift benchmarking software is available open source now on GitHub.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

  1. presslee - 9 years ago

    Now we can finaly test if ios updates effect iphone 4s performance!

    • moo083 - 9 years ago

      This isn’t really for benchmarking hardware. This is for benchmarking code that you build in swift. The idea is to find areas of your code that is operating slowly so you can figure out if there are ways of speeding it up.

      Either way, I think this was already available, just now the source code is too.

Author

Avatar for Chance Miller Chance Miller

Chance is the editor-in-chief of 9to5Mac, overseeing the entire site’s operations. He also hosts the 9to5Mac Daily and 9to5Mac Happy Hour podcasts.

You can send tips, questions, and typos to chance@9to5mac.com.

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications