Skip to content

Precompile shipit assets before benchmark iterations#494

Closed
k0kubun wants to merge 1 commit intoruby:mainfrom
k0kubun:precompile-shipit-assets
Closed

Precompile shipit assets before benchmark iterations#494
k0kubun wants to merge 1 commit intoruby:mainfrom
k0kubun:precompile-shipit-assets

Conversation

@k0kubun
Copy link
Member

@k0kubun k0kubun commented Mar 20, 2026

The shipit-engine ships CoffeeScript assets that require a Node.js runtime to compile via Sprockets. Without precompilation, Sprockets shells out to Node.js on the first request during warmup/benchmark iterations, adding noise to timing measurements.

Run assets:precompile once before any iterations, and skip it on subsequent runs by checking for the Sprockets manifest file.

Fixes #493

The shipit-engine ships CoffeeScript assets that require a Node.js
runtime to compile via Sprockets. Without precompilation, Sprockets
shells out to Node.js on the first request during warmup/benchmark
iterations, adding noise to timing measurements.

Run assets:precompile once before any iterations, and skip it on
subsequent runs by checking for the Sprockets manifest file.

Fixes ruby#493
@byroot
Copy link
Member

byroot commented Mar 20, 2026

#495 should make this unnecessarily.

@k0kubun k0kubun closed this Mar 20, 2026
@k0kubun k0kubun deleted the precompile-shipit-assets branch March 20, 2026 18:56
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.

shipit shells out to a JavaScript runtime

2 participants