Skip to content

async_hooks: add async local storage propagation benchmarks - #46414

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:async_hooks/als_benchmark
Feb 3, 2023
Merged

async_hooks: add async local storage propagation benchmarks#46414
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:async_hooks/als_benchmark

Conversation

@legendecas

Copy link
Copy Markdown
Member

Add micro-benchmarks to verify the performance degradation related to
the number of active AsyncLocalStorages.

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.

@nodejs-github-botnodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. benchmark Issues and PRs related to the benchmark subsystem. labels Jan 30, 2023
@legendecas
legendecasforce-pushed the async_hooks/als_benchmark branch from 4881769 to fa59ad3CompareJanuary 30, 2023 08:55
@jasnelljasnell added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 30, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 30, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

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`.
@legendecas
legendecasforce-pushed the async_hooks/als_benchmark branch from fa59ad3 to 22c8683CompareFebruary 2, 2023 03:35
@legendecas

Copy link
Copy Markdown
MemberAuthor

Style fix after #46424 landed.

@legendecaslegendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 2, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 2, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@FlarnaFlarna added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 3000d77 into nodejs:mainFeb 3, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 3000d77

@legendecas
legendecas deleted the async_hooks/als_benchmark branch February 4, 2023 02:00
MylesBorins pushed a commit that referenced this pull request Feb 18, 2023
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: #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>
@MylesBorinsMylesBorins mentioned this pull request Feb 19, 2023
danielleadams pushed a commit that referenced this pull request Apr 11, 2023
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: #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>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooksIssues and PRs related to the async hooks subsystem.benchmarkIssues and PRs related to the benchmark subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@legendecas@nodejs-github-bot@jasnell@JungMinu@Flarna