Skip to content

feat(benchmarks): add POST results with a GET/POST toggle - #516

Merged
mcollina merged 4 commits into
fastify:mainfrom
gurgunday:feat/post-benchmarks
Oct 22, 2026
Merged

mcollina merged 4 commits into
fastify:mainfrom
gurgunday:feat/post-benchmarks

Conversation

@gurgunday

Copy link
Copy Markdown
Member

Download benchmark-results-post.json from fastify/benchmarks alongside the GET results and show it on /benchmarks behind a GET/POST toggle. #post links straight to the POST view.

Missing POST results are not fatal: the download writes an empty list and the page renders GET only, as before. The homepage stays GET-only.

Screenshot 2026-10-19 at 16 47 05 Screenshot 2026-10-19 at 16 47 16

Download benchmark-results-post.json from fastify/benchmarks alongside
the GET results and show it on /benchmarks behind a GET/POST toggle.
`#post` links straight to the POST view.

Missing POST results are not fatal: the download writes an empty list
and the page renders GET only, as before. The homepage stays GET-only.
@gurgunday
gurgunday requested a review from a team October 19, 2026 14:54
Match the other components' scripts and keep the toggle type-checked.
A `#post` link now briefly shows GET before switching, which is fine.
The script sat after </BaseLayout>, so it was emitted after </html>.
Comment thread scripts/download-benchmarks.mjs Outdated
Comment thread src/components/benchmarks/BenchCards.astro
Comment thread src/components/BenchBars.astro Outdated
Comment thread src/pages/benchmarks.astro Outdated
- Rename the scenario `results` field to `sourceFile`.
- Require the `benchmarks` prop on BenchBars and pass the GET data
  from the homepage explicitly.
- Use a boolean for `aria-selected`.
- Exclude the generated benchmarks-post.json from Biome.
@gurgunday

Copy link
Copy Markdown
Member Author

Why can't I see the deployment? I think it failed @Eomm

@ilteoood

ilteoood commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Why can't I see the deployment? I think it failed @Eomm

It failed with success on deploy ✅

 ›   Error: Authentication required. NETLIFY_AUTH_TOKEN is not set and `netlify login --request <message>` can be used to authenticate.
Alternatively, use --allow-anonymous to deploy without an account.

It seems that the secrets of the repo have been deleted. @Eomm do you still have them?

@climba03003

Copy link
Copy Markdown
Member

Why can't I see the deployment? I think it failed @Eomm

It failed with success on deploy ✅

 ›   Error: Authentication required. NETLIFY_AUTH_TOKEN is not set and `netlify login --request <message>` can be used to authenticate.
Alternatively, use --allow-anonymous to deploy without an account.

It seems that the secrets of the repo have been deleted. @Eomm do you still have them?

I can see the secret but the value is removed.

@Puppo Puppo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@gurgunday
gurgunday requested a review from Eomm October 21, 2026 20:42
@mcollina
mcollina merged commit 330e92b into fastify:main Oct 22, 2026
4 checks passed

This branch was successfully deployed

2 active deployments
staging — c2570bb3 Deployed Oct 19, 2026 by gurgunday via deploy-to-staging #204
sandbox — c2570bb3 Deployed Oct 19, 2026 by gurgunday via build-and-upload #204
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.

6 participants