benchmark: support more options in startup benchmark
- 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, andbenchmark/fixtures/require-cachable
which require all the cachable modules before exiting. This allows us to measure the overhead of bootstrap in more scenarios. - Add options to benchmark the overhead of spinning node through a process and through a worker.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines