Skip to content

Benchmark Git revision URL and cache-key formatting - #1551

Draft
zaniebot wants to merge 1 commit into
zb/bench-git-fixturesfrom
zb/bench-git-revisions
Draft

zaniebot wants to merge 1 commit into
zb/bench-git-fixturesfrom
zb/bench-git-revisions

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Measure the CPU work involved in formatting ordinary Git dependency references and locating their source-cache entries. The inputs cover full and abbreviated commits, a branch, a release tag, and a pull-request ref from real Python repositories, including the allocation-sensitive URL-safe path.

@zaniebot
zaniebot added this pull request to stack #1482 September 12, 2026 01:25
@astral-automations-bot astral-automations-bot Bot added area:benchmarks Related to benchmarking internal A refactor or improvement that is not user-facing labels Sep 12, 2026
@zaniebot
zaniebot force-pushed the zb/bench-git-revisions branch from a380f1c to 38807a2 Compare September 12, 2026 01:28
@zaniebot
zaniebot force-pushed the zb/bench-git-revisions branch from 38807a2 to f8c94f1 Compare September 12, 2026 02:05
@zaniebot
zaniebot force-pushed the zb/bench-git-revisions branch from f8c94f1 to 56f850e Compare September 12, 2026 04:21
@codspeed

codspeed Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 181 untouched benchmarks
🆕 13 new benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 Simulation cache_key/django N/A 26.6 µs N/A
🆕 Simulation cache_key/flask N/A 26.4 µs N/A
🆕 Simulation cache_key/sampleproject N/A 27.4 µs N/A
🆕 Simulation encode/branch N/A 1.1 µs N/A
🆕 Simulation encode/full_commit N/A 1.4 µs N/A
🆕 Simulation encode/pull_request N/A 1.2 µs N/A
🆕 Simulation encode/release_tag N/A 1.1 µs N/A
🆕 Simulation encode/short_commit N/A 1.1 µs N/A
🆕 Simulation url/branch N/A 16.4 µs N/A
🆕 Simulation url/full_commit N/A 18.1 µs N/A
🆕 Simulation url/pull_request N/A 17.3 µs N/A
🆕 Simulation url/release_tag N/A 16.3 µs N/A
🆕 Simulation url/short_commit N/A 16.6 µs N/A

Comparing zb/bench-git-revisions (bec73d7) with zb/bench-git-fixtures (8d51558)

Open in CodSpeed

@zaniebot
zaniebot force-pushed the zb/bench-git-revisions branch from 2b3cd80 to bec73d7 Compare September 12, 2026 13:35
@zaniebot zaniebot added risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:1 Small: one localized behavior with straightforward tests or documentation checks. labels Sep 22, 2026
@zaniebot zaniebot added the build:skip-release Disable building release binaries for a pull request label Oct 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:benchmarks Related to benchmarking build:skip-release Disable building release binaries for a pull request internal A refactor or improvement that is not user-facing priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. size:1 Small: one localized behavior with straightforward tests or documentation checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants