-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.33 KB
/
Copy pathnative-benchmark.yml
File metadata and controls
51 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Native Core Benchmark
on:
schedule:
- cron: '23 5 * * 3'
workflow_dispatch:
inputs:
sizes_mib:
description: Comma-separated input sizes in MiB
required: true
default: '1,10,50'
type: string
permissions:
contents: read
concurrency:
group: native-core-benchmark
cancel-in-progress: true
jobs:
benchmark:
name: Native core (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
steps:
- name: Checkout the code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version-file: .nvmrc
- name: Run deterministic benchmark
env:
BENCHMARK_OUTPUT: native-core-${{ runner.os }}.json
BENCHMARK_SIZES_MIB: ${{ inputs.sizes_mib || '1,10,50' }}
run: node scripts/benchmark-native.mjs
- name: Upload benchmark report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: native-core-${{ runner.os }}
path: native-core-${{ runner.os }}.json
if-no-files-found: error
retention-days: 30