Skip to content

process: use rest parameters

Using rest parameters instead of manual switching can improve performance of nextTick().

 process/next-tick-breadth-args.js n=4000000          ***     27.61 %      ±0.89% ±1.19% ±1.55%
 process/next-tick-breadth.js n=4000000               ***      5.08 %      ±0.96% ±1.28% ±1.68%
 process/next-tick-depth-args.js n=12000000           ***      6.86 %      ±0.77% ±1.02% ±1.34%
 process/next-tick-depth.js n=12000000                         1.21 %      ±1.28% ±1.70% ±2.22%
 process/next-tick-exec-args.js n=5000000             ***      3.10 %      ±1.18% ±1.58% ±2.06%
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