Skip to content

Conversation

@Gerg
Copy link
Member

@Gerg Gerg commented Jan 26, 2026

  • Also marginally speeds up tests

Related to #4800 and #4802


Link to gem: https://github.com/rails/bootsnap

Without Bootsnap:

time ./bin/cloud_controller
ruby 3.2.10 (2026-01-14 revision a3a6d25788) [arm64-darwin25]
Usage: cloud_controller [options]
    -c, --config [ARG]               Configuration File
    -s, --secrets [ARG]              Secrets File
./bin/cloud_controller  1.31s user 0.78s system 61% cpu 3.388 total
❯ NO_DB_MIGRATION=1 multitime -n 10 bundle exec rspec spec/unit/actions/app_create_spec.rb
 
 ...

===> multitime results
1: bundle exec rspec spec/unit/actions/app_create_spec.rb
            Mean        Std.Dev.    Min         Median      Max
real        8.162       0.341       7.728       8.190       8.911
user        2.872       0.052       2.790       2.869       2.968
sys         1.503       0.049       1.426       1.502       1.591

With Bootsnap:

time ./bin/cloud_controller
ruby 3.2.10 (2026-01-14 revision a3a6d25788) [arm64-darwin25]
Usage: cloud_controller [options]
    -c, --config [ARG]               Configuration File
    -s, --secrets [ARG]              Secrets File
./bin/cloud_controller  0.74s user 0.56s system 65% cpu 1.983 total
❯ NO_DB_MIGRATION=1 multitime -n 10 bundle exec rspec spec/unit/actions/app_create_spec.rb

...

===> multitime results
1: bundle exec rspec spec/unit/actions/app_create_spec.rb
            Mean        Std.Dev.    Min         Median      Max
real        5.951       0.250       5.460       5.944       6.435
user        2.208       0.056       2.142       2.197       2.329
sys         0.950       0.046       0.890       0.938       1.036

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

- Also marginally speeds up tests
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