Skip to content

benchmark: support more options in startup benchmark

  1. Add options to benchmark the startup performance of a node "instance" after running a script. By default there are two options: test/fixtures/semicolon which is basically an empty file, and benchmark/fixtures/require-cachable which require all the cachable modules before exiting. This allows us to measure the overhead of bootstrap in more scenarios.
  2. Add options to benchmark the overhead of spinning node through a process and through a worker.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading