Skip to content

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 force-pushed the sb/add-package-benchmark branch from 2e6b5ca to 7e6decf Compare October 2, 2024 13:18
@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