Skip to content

feat(sdk-logs): Add Logger Configurator API & Trace-based + Min-Sever… #977

feat(sdk-logs): Add Logger Configurator API & Trace-based + Min-Sever…

feat(sdk-logs): Add Logger Configurator API & Trace-based + Min-Sever… #977

Workflow file for this run

name: Benchmark Tests
on:
push:
branches: [ main ]
permissions:
contents: read
jobs:
benchmark-tests:
permissions:
contents: write # required for pushing benchmark results to gh-pages
strategy:
fail-fast: false
matrix:
node_version:
- "22"
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
container:
image: ubuntu:24.04@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54
timeout-minutes: 10
steps:
# Apt packages:
# - git: Needed for 'npm run submodule'
- name: Setup container environment
run: |
apt-get update && apt-get install --fix-missing -y git
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
# Avoid "detected dubious ownership in repository" error when running
# `npm run submodule`.
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: ${{ matrix.node_version }}
- run: npm install -g npm@latest
- name: Bootstrap
run: npm ci --ignore-scripts
- name: Build 🔧
run: npm run compile
- name: Benchmark tests
run: |
npm run test:bench
find . -name .benchmark-results.txt -exec cat {} + > combined_benchmarks.txt
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'benchmarkjs'
output-file-path: combined_benchmarks.txt
gh-pages-branch: gh-pages
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: "benchmarks"
auto-push: true