Skip to content

build(deps-dev): bump @pokujs/multi-suite from 1.0.1 to 1.0.2 in the dev-dependencies group #3201

build(deps-dev): bump @pokujs/multi-suite from 1.0.1 to 1.0.2 in the dev-dependencies group

build(deps-dev): bump @pokujs/multi-suite from 1.0.1 to 1.0.2 in the dev-dependencies group #3201

Workflow file for this run

name: Benchmark
on:
pull_request:
paths:
- '.github/workflows/benchmark.yml'
- 'benchmarks/**'
- 'lib/**'
- 'tools/**'
- 'index.js'
- 'promise.js'
- 'package.json'
- 'package-lock.json'
push:
branches: [master]
workflow_dispatch:
env:
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_DATABASE: test
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22]
mysql-version: ['mysql:8.0.18']
use-compression: [0]
use-tls: [0]
name: Performance regression check
steps:
- uses: actions/checkout@v6
# - name: Set up MySQL
# run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_ROOT_PASSWORD=${{ env.MYSQL_PASSWORD }} -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
package-manager-cache: false
- name: Cache dependencies
uses: actions/cache@v5
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-
- name: Install npm dependencies
run: npm ci
# - name: Wait mysql server is ready
# run: node tools/wait-up.js
- name: Run benchmark
run: node benchmarks/benchmark.js | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v5
with:
path: ./cache
key: ${{ runner.os }}-benchmark-${{ github.sha }}
restore-keys: |
${{ runner.os }}-benchmark-
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1.22.0
with:
tool: 'benchmarkjs'
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: false
auto-push: false
alert-threshold: '115%'
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true