Attabench is a microbenchmarking app for macOS, designed to measure and visualize the performance of Swift code. This app is for microbenchmarking low-level algorithms with one degree of freedom (usually size). It works by repeatedly performing the same operation on random data of various sizes, while continuously charting the results in nice plots. Attabench's default log-log plots are ideal for seeing your algorithm's performance at a glance. Attabench was originally created to supply nice log-log charts for my dotSwift 2017 talk and Optimizing Collections book. At the time, it seemed easier to build a custom chart renderer from scratch using Core Graphics than to mess with a bunch of CSV files and pivot tables in Excel. (It has to be noted though that this opinion has been somewhat weakened during the implementation process.)
Features
- Attabench has two document formats
- Examples available
- Documentation available
- Simple example benchmark with just three tasks
- Control What Gets Measured
- Change How Data Gets Displayed
- Get Chart Images Out of Attabench
- Create Your Own Benchmarks