From 4f97cbe0a6e7461e2316061690295c9fde7d0842 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Mon, 9 Feb 2026 11:03:33 +0100 Subject: [PATCH] feat(ci): add memory profiling --- .github/workflows/codspeed.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 9c002e5f..88eb1f69 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -23,11 +23,22 @@ jobs: - run: pnpm install --frozen-lockfile --prefer-offline - run: pnpm moon run :build - - name: Run benchmarks - # use version from `main` branch to always test the latest version, in real projects, use a tag, like `@v2` + - name: Run simulation benchmarks + uses: CodSpeedHQ/action@main + with: + mode: simulation + run: | + pnpm moon run tinybench-plugin:bench + pnpm moon run vitest-plugin:bench + pnpm moon run benchmark.js-plugin:bench + pnpm --workspace-concurrency 1 -r bench-tinybench + pnpm --workspace-concurrency 1 -r bench-benchmark-js + pnpm --workspace-concurrency 1 -r bench-vitest + + - name: Run memory benchmarks uses: CodSpeedHQ/action@main with: - mode: instrumentation + mode: memory run: | pnpm moon run tinybench-plugin:bench pnpm moon run vitest-plugin:bench