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@d1e747a

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
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,22 @@ jobs:
140140
run: |
141141
nix-shell \
142142
-I nixpkgs=./tools/nix/pkgs.nix \
143-
--pure --keep SCCACHE_LOCAL_RW_MODE \
143+
--pure --keep SCCACHE_LOCAL_RW_MODE --keep CATEGORIES \
144144
--arg useSeparateDerivationForV8 true \
145145
--arg withPerfetto ${{ matrix.perfetto || false }} \
146146
--arg loadJSBuiltinsDynamically false \
147147
--arg ccache '(import <nixpkgs> {}).sccache' \
148148
--arg devTools '[]' \
149149
--arg benchmarkTools '[]' \
150150
--run '
151+
set -e
151152
make build-ci -j4 V=1
153+
# The napi benchmarks load addons of their own, both binaries use these.
154+
if [[ " $CATEGORIES " == *" napi "* ]]; then make bench-addons-build; fi
152155
'
153156
env:
154157
SCCACHE_LOCAL_RW_MODE: READ_ONLY
158+
CATEGORIES: ${{ inputs.category }}
155159

156160
- name: Run benchmark
157161
run: |
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
@@ -470,7 +470,11 @@ module.exports = {
470470
return process.binding(bindingName);
471471
}
472472
},
473-
buildType: process.features.debug ? 'Debug' : 'Release',
473+
// As in test/common: a --debug-node build is still a Release build, and its
474+
// addons are in build/Release.
475+
buildType: process.config.target_defaults ?
476+
process.config.target_defaults.default_configuration :
477+
'Release',
474478
createBenchmark(fn, configs, options) {
475479
return new Benchmark(fn, configs, options);
476480
},

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.