apple / apple/swift-algorithms

Benchmarks needed

Open
#110 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
6.3k
Forks
483
PR merge metrics
No merged PRs in 30d

Description

As I mentioned in #109, a benchmark suite is important for ensuring a stable level of performance.

Personally, I've been using https://github.com/google/swift-benchmark - it's a little rough around the edges, but it produces decent reports on all platforms and the dynamic iterations features works really well for getting stable readings out of small code snippets. I'd encourage Apple (or Swift.org) to adopt it, given S4TF's demise, the likelihood that the original authors will abandon it, and the need for good benchmarking utilities that work across platforms.

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #109 and reviewing the google/swift-benchmark project linked here, including its cross-platform reporting and dynamic-iteration behavior. Define the benchmark suite's scope and how it should fit swift-algorithms; done means the project has stable performance measurements across platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
performance, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.