Description
As we discussed in the meeting today, I think it would be good to get a write up of the performance characteristics of the different solutions. More concretely, we're interested in performance of
(a) async_hooks enabled and PromiseHooks disabled
(b) monkey patching solution in JS
If (a) is vastly slower, then we have a general problem with async_hooks that need to be solved -- focusing on just promisehooks is not enough.
Alternatively, if both (a) and (b) have comparable perf (or if (a) is faster), then V8 can work on optimizing just PromiseHooks to get a net win and have acceptable performance to make async_hook production ready.
Note: solution (b) doesn't work for async/await, so this would have to be a promise based workload (or just a transpiled version of async/await workload).