summaryrefslogtreecommitdiff
path: root/benchmark/async_hooks/async-local-storage-propagate-asyncresource.js
Commit message (Collapse)AuthorAgeFilesLines
* async_hooks: add async local storage propagation benchmarksChengzhong Wu2023-02-031-0/+46
Add micro-benchmarks to verify the performance degradation related to the number of active `AsyncLocalStorage`s. With these benchmarks, trying to improve the async context propagation to be an O(1) operation, which is an operation more frequent compared to `asyncLocalStorage.run` and `asyncLocalStorage.getStore`. PR-URL: https://github.com/nodejs/node/pull/46414 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>