Repository navigation
ci: measure the engines with CodSpeed - #1
Merged
Merged
Conversation
…lity layer and OIDC
Contributor
Author
Congrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
RAprogramm
approved these changes
Nov 16, 2026
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.
Summary
The
Benchmarks (CodSpeed)job inci.ymlwas already there, but the benches linked against upstreamcriterion, so CodSpeed had nothing it could measure. The job also needed aCODSPEED_TOKENsecret. This PR gets the integration working end to end.Harness
criteriondependency now points atcodspeed-criterion-compat6.0.0, renamed tocriterion. Bench code keeps its existing imports. Outside CodSpeed it still runs as plain criterion.wl-size/benches/compress.rs,wl-check/benches/check.rs) are kept unchanged.wl-html/benches/html.rs:parse(html5ever plus span alignment) andcheck(HTML rules) on clean, attribute-heavy and rule-violating documentswl-css/benches/css.rs: the CSS scanner and rules on simple, nested (@media) and rule-violating stylesheetswl-js/benches/js.rs: the oxc parse plus JS rules on small, function-heavy and rule-violating scriptswl-profile/benches/profile.rs: loading and validating the embeddedprofile-1clippy::significant_drop_tightening. Each bench file therefore has a crate-level#![allow]with a writtenreason, asAGENTS.mdrequires. With that in place,cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::pedantic -W clippy::nurseryandcargo +nightly fmt --all --checkboth pass.CI
id-token: write), so theCODSPEED_TOKENsecret is no longer used.CodSpeedHQ/actionis bumped from v5.0.0 to v5.6.3, andactions.lockis updated to the matching commit (af75f77). The nested actions (actions/cache,actions/github-script) are the same pinned commits as before. Please regenerate the lock withgh actions-lockif you prefer.--locked.continue-on-erroris removed, so benchmark failures now show up. The job is still not part of the release gate.README
https://app.codspeed.io//badge.json→https://codspeed.io/badge.json).Local results (simulation)
All 19 benchmarks ran under
codspeed run -m simulation -- cargo codspeed run. Some examples: full pipelinecheck/mixed(24 KiB) 7.9 ms,html_check/violations4.8 ms,zlib9/len_32768691 µs,profile_1_load366 µs.Next steps
maingets a baseline; after that, pull requests get performance reports.CODSPEED_TOKENsecret can be deleted once this is merged.Comment
@codspeedbot add a benchmark for <function>and I'll extend the suite.