cache: 'pnpm'
- name: Install dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
+ - name: Production Build
+ run: pnpm build:prod
- uses: bencherdev/bencher@main
- name: Run production benchmark
run: |
--file benchmark-report.json \
--err \
--github-actions ${{ secrets.GITHUB_TOKEN }} \
- "pnpm benchmark:tatami-ng:prod"
+ "pnpm benchmark:tatami-ng"
To run the internal benchmark, you just need to navigate to the root of poolifier cloned repository and run:
+- `pnpm build:prod`
- `pnpm benchmark:tatami-ng`
### [Results](https://bencher.dev/perf/poolifier)
"build:prod": "rollup --config",
"build:typedoc": "rollup --config --environment DOCUMENTATION,BUILD:development",
"build:analyze": "rollup --config --environment ANALYZE,BUILD:development",
- "benchmark:tatami-ng": "pnpm build && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
- "benchmark:tatami-ng:prod": "pnpm build:prod && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
- "benchmark:tatami-ng:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
+ "benchmark:tatami-ng": "node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
+ "benchmark:tatami-ng:debug": "node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
"test": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha 'tests/**/*.test.mjs'",
"test:debug": "pnpm build && cross-env NODE_ENV=test mocha --no-parallel --inspect 'tests/**/*.test.mjs'",
"coverage": "c8 report --reporter=lcov",