Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
benchmark: always throw the same Error instance
Stack trace capturing currently accounts for 40 % of the benchmark running time. Always throwing the same exception object removes that overhead and lets the benchmark be more focused on what it is supposed to measure. Refs: nodejs#34512 (comment)
- Loading branch information