GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — benchmark,tools: fix napi benchmarks on GHA · nodejs/node@493bd6c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • benchmark.yml
  • benchmark
    • common.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/benchmark.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/benchmark.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
--arg withPerfetto ${{ matrix.perfetto || false }} \
141141
--arg ccache '(import <nixpkgs> {}).sccache' \
142142
--run '
143-
make build-ci -j4 V=1
143+
make build-ci -j4 V=1 ${{ contains(format(' {0} ', inputs.category), ' napi ') && '&& make bench-addons-build' || '' }}
144144
' tools/nix/ci-shell.nix
145145
env:
146146
SCCACHE_LOCAL_RW_MODE: READ_ONLY
Collapse file

‎benchmark/common.js‎

Copy file name to clipboardExpand all lines: benchmark/common.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,11 @@ module.exports = {
441441
return process.binding(bindingName);
442442
}
443443
},
444-
buildType: process.features.debug ? 'Debug' : 'Release',
444+
// As in test/common: a --debug-node build is still a Release build, and its
445+
// addons are in build/Release.
446+
buildType: process.config.target_defaults ?
447+
process.config.target_defaults.default_configuration :
448+
'Release',
445449
createBenchmark(fn, configs, options) {
446450
return new Benchmark(fn, configs, options);
447451
},

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.