Repository navigation
docs(bench): adopt clearer sticky comment benchmark layout - #386
Merged
Merged
Conversation
Temporary no-op JSDoc markers in cva and class-variance-authority so a PR can exercise the benchmark workflow and sticky PR comment infrastructure. Revert after confirming CI.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
cva | a770bf9 | Commit Preview URL Branch Preview URL |
Jul 12 2026, 08:52 AM |
Contributor
BenchmarksComparing this PR's local benchmark run against the published npm versions (baselines resolved from each package's npm dist-tags —
|
| Task | This PR | 0.7.1 (release) |
Δ |
|---|---|---|---|
| cva: create | 15,283,049 ops/s ±0.07% | 13,684,726 ops/s ±0.27% | 🟢 +11.7% |
| cva: call defaults | 612,435 ops/s ±0.10% | 609,421 ops/s ±0.17% | +0.5% |
| cva: call with props | 101,245 ops/s ±0.17% | 99,810 ops/s ±0.16% | +1.4% |
| cx: many args | 5,714,733 ops/s ±0.19% | 5,986,164 ops/s ±0.09% | -4.5% |
| compose: two components | 516,359 ops/s ±0.15% | 522,628 ops/s ±0.17% | -1.2% |
cva
| Task | This PR | 1.0.0-beta.6 (prerelease) |
Δ |
|---|---|---|---|
| cva: create | 1,951,015 ops/s ±0.40% | 1,936,430 ops/s ±0.28% | +0.8% |
| cva: call defaults | 617,331 ops/s ±0.14% | 622,119 ops/s ±0.16% | -0.8% |
| cva: call with props | 97,907 ops/s ±0.14% | 95,862 ops/s ±0.16% | +2.1% |
| cx: many args | 5,298,824 ops/s ±0.11% | 4,857,684 ops/s ±0.10% | 🟢 +9.1% |
| composes: two components | 253,584 ops/s ±0.16% | 256,408 ops/s ±0.16% | -1.1% |
Commit 1efda0b · Node v24.18.0 · linux x64 · 2026-07-12T07:03:26.185Z
Metrics are produced by the untrusted PR benchmark job and validated for shape only — they are not authenticated. Treat large swings as a signal to investigate locally, not as proof of a regression.
Rename benchmark scenarios to plain-language create/call labels and add a short "How to read this" section to the sticky PR comment. Simplify the intro copy above the tables and allow parentheses in validated task names. Reverts the temporary package-source test markers from the earlier sticky comment verification push.
Render class-name generation and joining benchmarks before one-time component creation and composition. Add concise headings and guidance so contributors can identify the primary runtime signal at a glance.
5 of 8 tasks
Render runtime-first task labels with static/runtime annotations, simplify baseline column headers, refresh the intro and disclaimer copy, and keep a single table per package without extra section headings.
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Improves the sticky PR benchmark comment so contributors can scan results without benchmark-domain context.
Comment layout (
compare.ts)(runtime),(static),(static + runtime)0.7.1) and`version` (`beta`)for betacvaBenchmark fixtures (
*.bench.ts)Create component,Call component,Join class names, etc.)compare.tsmaps those internal names to the display labels shown in the commentTests
compare.test.tsThis branch also exercised the sticky comment workflow end-to-end during development; the temporary package-source test markers were removed before landing the final UX changes.
Additional context
Example rendered task row:
**cva** (runtime)<br />_component call with defaults_Absolute numbers between
cvaandclass-variance-authorityremain non-comparable — each table is intended to be read against its own published baseline only.What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).