★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/26381Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark,lib: add process.hrtime.bigint benchmark #26381

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
6 participants
@addaleax
Copy link
Member

addaleax commented Mar 1, 2019

Add a benchmark, and amend the relevant source code comment to state
that currently, switching to directly returning a BigInt is not
stopped by technical obstacles but rather the fact that using a typed
array is actually a bit faster (about 2.5 %, measured locally).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
benchmark,lib: add process.hrtime.bigint benchmark
Add a benchmark, and amend the relevant source code comment to state
that currently, switching to directly returning a BigInt is not
stopped by technical obstacles but rather the fact that using a typed
array is actually a bit faster (about 2.5 %, measured locally).
@jasnell

jasnell approved these changes Mar 1, 2019

@lpinca

lpinca approved these changes Mar 1, 2019

@cjihrig

cjihrig approved these changes Mar 3, 2019

@addaleax

This comment has been minimized.

Copy link
Member Author

addaleax commented Mar 4, 2019

@addaleax

This comment has been minimized.

Copy link
Member Author

addaleax commented Mar 5, 2019

Landed in 69906fb

@addaleax addaleax closed this Mar 5, 2019

@addaleax addaleax deleted the addaleax:hrtime-bigint-benchmark branch Mar 5, 2019

addaleax added a commit that referenced this pull request Mar 5, 2019

benchmark,lib: add process.hrtime.bigint benchmark
Add a benchmark, and amend the relevant source code comment to state
that currently, switching to directly returning a BigInt is not
stopped by technical obstacles but rather the fact that using a typed
array is actually a bit faster (about 2.5 %, measured locally).

PR-URL: #26381
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

BridgeAR added a commit to BridgeAR/node that referenced this pull request Mar 12, 2019

benchmark,lib: add process.hrtime.bigint benchmark
Add a benchmark, and amend the relevant source code comment to state
that currently, switching to directly returning a BigInt is not
stopped by technical obstacles but rather the fact that using a typed
array is actually a bit faster (about 2.5 %, measured locally).

PR-URL: nodejs#26381
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.