Skip to content

build,win: add PGO workload scripts#63696

Open
StefanStojanovic wants to merge 2 commits into
nodejs:mainfrom
JaneaSystems:mefi-win-pgo-workloads
Open

build,win: add PGO workload scripts#63696
StefanStojanovic wants to merge 2 commits into
nodejs:mainfrom
JaneaSystems:mefi-win-pgo-workloads

Conversation

@StefanStojanovic
Copy link
Copy Markdown
Contributor

This PR adds PGO workload scripts to be used for the PGO-enabled build of Node.js, as well as the wrapper script to run all of the workloads and combine all of the profraw files into profdata on Windows. This way, the build becomes a 3-step process:

  • Build the instrumented binary: vcbuild.bat pgo-generate
  • Run workloads and merge profile data: pgo.ps1
  • Build the optimized binary: vcbuild.bat pgo-use

While this was developed primarily for Windows, PGO itself is platform-agnostic, so the workloads should do well on other platforms that support PGO, although some utility scripts for running an instrumented build and getting results should probably be added to make its usage simpler.

I will share the performance differences in the following days, showcasing the improvements with PGO enabled on Windows.

Refs: #61964

Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
@StefanStojanovic StefanStojanovic added windows Issues and PRs related to the Windows platform. build Issues and PRs related to build files or the CI. labels Jun 1, 2026
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jun 1, 2026
Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants