Skip to content

test: benchmark HttpDate formatting instead of string display - #20

Open
robjtede wants to merge 1 commit into
pyfisch:mainfrom
robjtede:fix-encode-date-benchmark
Open

robjtede wants to merge 1 commit into
pyfisch:mainfrom
robjtede:fix-encode-date-benchmark

Conversation

@robjtede

Copy link
Copy Markdown

encode_date discards the parsed date and measures formatting a plain string. Parse an HttpDate before the measured loop and pass it through black_box on each iteration so the benchmark measures date formatting.

@robjtede
robjtede force-pushed the fix-encode-date-benchmark branch from 28d8cf1 to 891bb55 Compare October 28, 2026 22:23
@robjtede robjtede changed the title fix: benchmark HttpDate formatting instead of string display test: benchmark HttpDate formatting instead of string display Oct 28, 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant