Skip to content

Commit dd8d364

Browse files
committed
fix: use node with esbuild-register to run the benches and add v8 flags
1 parent b9dc77f commit dd8d364

File tree

4 files changed

+30
-57
lines changed

4 files changed

+30
-57
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@typescript-eslint/eslint-plugin": "^5.37.0",
1515
"@typescript-eslint/parser": "^5.48.1",
1616
"esbuild": "^0.17.0",
17+
"esbuild-register": "^3.4.2",
1718
"eslint": "^7.32.0",
1819
"eslint-import-resolver-typescript": "^3.5.1",
1920
"eslint-plugin-import": "^2.26.0",
@@ -27,7 +28,6 @@
2728
"rollup-plugin-dts": "^5.1.1",
2829
"rollup-plugin-esbuild": "^5.0.0",
2930
"ts-jest": "^29.0.5",
30-
"ts-node": "^7.0.1",
3131
"tslib": "^2.4.1",
3232
"typescript": "4.9.4"
3333
},

packages/benchmark.js-plugin/moon.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
tasks:
22
bench:
3-
command: ts-node benches/sample.ts
3+
command: sh -c "node $CODSPEED_V8_FLAGS -r esbuild-register benches/sample.ts"
44
inputs:
55
- "benches/**"
66
local: true
7+
platform: "system"
78
options:
89
cache: false

packages/tinybench-plugin/moon.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
tasks:
22
bench:
3-
command: ts-node benches/sample.ts
3+
command: sh -c "node $CODSPEED_V8_FLAGS -r esbuild-register benches/sample.ts"
44
inputs:
55
- "benches/**"
66
local: true
7+
platform: "system"
78
options:
89
cache: false

pnpm-lock.yaml

Lines changed: 25 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)