Skip to content

benchmark: add startup benchmark for loading public modules - #35816

Closed
joyeecheung wants to merge 1 commit into
nodejs:masterfrom
joyeecheung:built-bench
Closed

benchmark: add startup benchmark for loading public modules#35816
joyeecheung wants to merge 1 commit into
nodejs:masterfrom
joyeecheung:built-bench

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

Adding a new benchmark for testing the performance of loading
available public modules.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Adding a new benchmark for testing the performance of loading
available public modules.
@nodejs-github-botnodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Oct 26, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup

@TrottTrott added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 28, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 28, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

'util',
'vm',
'zlib',
];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcode was likely missed some modules, just like v8, worker_threads here.

Can we directly use require('module').builtinModules ?

@joyeecheungjoyeecheungOct 29, 2020

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZYSzys That way we may not be able to get fair results on different versions of Node.js (some of them may have more modules)

@TrottTrott added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 30, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 30, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

joyeecheung added a commit that referenced this pull request Nov 4, 2020
Adding a new benchmark for testing the performance of loading
available public modules.
PR-URL: #35816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

Landed in 38c1569, thanks!

targos pushed a commit that referenced this pull request Nov 4, 2020
Adding a new benchmark for testing the performance of loading
available public modules.
PR-URL: #35816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@targostargos mentioned this pull request Nov 4, 2020
richardlau added a commit to richardlau/node-1 that referenced this pull request Nov 4, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: nodejs#35816
nodejs-github-bot pushed a commit that referenced this pull request Nov 5, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: #35816
PR-URL: #35968Fixes: #35962
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
@richardlau

Copy link
Copy Markdown
Member

If backported, this should land with #35968.

danielleadams pushed a commit that referenced this pull request Nov 9, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: #35816
PR-URL: #35968Fixes: #35962
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
BethGriggs pushed a commit that referenced this pull request Dec 8, 2020
Adding a new benchmark for testing the performance of loading
available public modules.
PR-URL: #35816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Dec 9, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: #35816
PR-URL: #35968Fixes: #35962
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
Adding a new benchmark for testing the performance of loading
available public modules.
PR-URL: #35816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: #35816
PR-URL: #35968Fixes: #35962
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
@BethGriggsBethGriggs mentioned this pull request Dec 10, 2020
BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
Adding a new benchmark for testing the performance of loading
available public modules.
PR-URL: #35816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
`inspector` and `trace_events` will throw errors if Node.js has been
compiled with `--without-intl`.
Refs: #35816
PR-URL: #35968Fixes: #35962
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarkIssues and PRs related to the benchmark subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@joyeecheung@nodejs-github-bot@richardlau@jasnell@Trott@ZYSzys