Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmarks: Add subdirectory Benchmarks/ package #119

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

simonjbeaumont
Copy link
Collaborator

Motivation

We'd like to be able to benchmark various parts of the runtime library to make targeted and measurable performance improvements.

Modifications

  • Add a subdirectory directory package with the package-benchmark plugin.
  • Add a benchmark for ISO8601DateTranscoder.encode(_:).
  • Add temporary benchmarks of Foundation ISO8601 date encoding APIs to guide improvements to ISO8601DateTranscoder.

Result

  • Can now run benchmarks using swift package --package-path Benchmarks/ benchmark.

Test Plan

There is no CI for this currently. That can follow, but we wanted the package plugin to unblock incoming updates to the date transcoder.

@simonjbeaumont simonjbeaumont enabled auto-merge (squash) October 2, 2024 14:04
@simonjbeaumont simonjbeaumont merged commit 82b474f into apple:main Oct 2, 2024
18 checks passed
@czechboy0 czechboy0 added the semver/none No version bump required. label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants