3 ms·
One of Bun's assertions is that their AsyncLocalStorage is significantly faster than Node's, b/c it purposefully only implements the subset of async_hooks that
by stephen 3y ago
One of Bun's assertions is that their AsyncLocalStorage is significantly faster than Node's, b/c it purposefully only implements the subset of async_hooks that can be implemented w/o affecting performance:
https://github.com/oven-sh/bun/pull/3089 https://github.com/oven-sh/bun/pull/3089
I haven't had a chance to test it out yet, but perhaps the OP could add Bun to the mix? To compare it's promise overhead vs. Node's promise overhead.
Also there is an issue in Node about performing the same optimization:
https://github.com/nodejs/node/issues/46265 https://github.com/nodejs/node/issues/46265