Skip to content

Exercise cache digest dependency discovery in the boot benchmark - #2745

Merged
joelhawksley merged 1 commit into
mainfrom
joelhawksley-boot-benchmark-component-renders
Oct 23, 2026
Merged

joelhawksley merged 1 commit into
mainfrom
joelhawksley-boot-benchmark-component-renders

Conversation

@joelhawksley

Copy link
Copy Markdown
Member

The boot benchmark wasn't measuring cache digest computation:

  • the boot app left class reloading on, so CacheDigest.precompute! never ran
  • none of the generated components rendered another component, so dependency discovery was skipped

This pull request sets cache_classes = true in performance/boot.rb and makes every generated component render another one. Each component renders one other component in a shallow tree.

Locally, with PASSES=5, the boot ratio goes from 1.59 on main to 2.02 with #2741, so CI would now flag that regression.

…g class reloading in the benchmark app and having each generated component render another.
@joelhawksley
joelhawksley force-pushed the joelhawksley-boot-benchmark-component-renders branch from d22f229 to 9c58676 Compare October 23, 2026 19:52
@joelhawksley
joelhawksley merged commit cb04e56 into main Oct 23, 2026
25 checks passed
@joelhawksley
joelhawksley deleted the joelhawksley-boot-benchmark-component-renders branch October 23, 2026 20:08
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