diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c1f9b1fce44f..7ed5b3a2c6e2 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -68,3 +68,4 @@ jobs: token: ${{ secrets.CODSPEED_TOKEN }} env: CODSPEED_BENCHMARK: true + CODSPEED_DEBUG: true diff --git a/packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts b/packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts index 0c51a42b0f74..c830593afd68 100644 --- a/packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts +++ b/packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts @@ -9,6 +9,11 @@ import path from 'path' import { compileFile } from '../../../utils/compileFile' import { generateTestClient } from '../../../utils/getTestClient' +console.log('process.execPath', process.execPath) +console.log('process.execArgv', process.execArgv) +console.log('process.argv', process.argv) +console.log('process.env', JSON.stringify(process.env, null, 2)) + let suite = withCodSpeed(new Benchmark.Suite('typescript')).add('client generation ~50 Models', { defer: true, fn: function (deferred) { diff --git a/packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts b/packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts index 3910f327b264..749d6134b41f 100644 --- a/packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts +++ b/packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts @@ -5,6 +5,11 @@ import Benchmark from 'benchmark' import { generateTestClient } from '../../../utils/getTestClient' +console.log('process.execPath', process.execPath) +console.log('process.execArgv', process.execArgv) +console.log('process.argv', process.argv) +console.log('process.env', JSON.stringify(process.env, null, 2)) + const suite = withCodSpeed(new Benchmark.Suite('typescript')) // @ts-ignore // eslint-disable-next-line @typescript-eslint/no-floating-promises diff --git a/packages/get-platform/bench/get-platform.bench.ts b/packages/get-platform/bench/get-platform.bench.ts index 12d6af75da73..8d3115aefcb3 100644 --- a/packages/get-platform/bench/get-platform.bench.ts +++ b/packages/get-platform/bench/get-platform.bench.ts @@ -3,6 +3,11 @@ import Benchmark from 'benchmark' import { getBinaryTargetForCurrentPlatformInternal, getos } from '../src/getPlatform' +console.log('process.execPath', process.execPath) +console.log('process.execArgv', process.execArgv) +console.log('process.argv', process.argv) +console.log('process.env', JSON.stringify(process.env, null, 2)) + void withCodSpeed(new Benchmark.Suite('get-platform')) .add('getBinaryTargetForCurrentPlatform', { defer: true, diff --git a/scripts/bench.ts b/scripts/bench.ts index 51531794001b..836114a3aa7f 100644 --- a/scripts/bench.ts +++ b/scripts/bench.ts @@ -25,6 +25,9 @@ async function run(benchmarks: string[]) { try { await execa.command(`pnpm tsx ${location}`, { stdio: 'inherit', + // env: process.env, + // execPath: process.execPath, + execPath: 'node', }) } catch (e) { console.error(e)