Skip to content

Commit dc2b600

Browse files
committed
build: update benchmarks dependencies
Force process exit at the end of each benchmark script so runs do not hang on lingering handles after tinybench v6 update.
1 parent f550458 commit dc2b600

6 files changed

Lines changed: 56 additions & 53 deletions

File tree

packages/benchmarks/atom.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import * as jotai from 'jotai'
1111
import * as agera from '../agera/dist/index.js' // 'agera'
1212

1313
const bench = new Bench({
14+
warmup: true,
1415
time: 1000
1516
})
1617

@@ -78,3 +79,5 @@ bench
7879
await bench.run()
7980

8081
console.table(bench.table())
82+
83+
process.exit(0)

packages/benchmarks/computed.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as signals3 from 'alien-signals-3'
55
import * as agera from '../agera/dist/index.js' // 'agera'
66

77
const bench = new Bench({
8+
warmup: true,
89
time: 1000
910
})
1011

@@ -128,3 +129,5 @@ bench
128129
await bench.run()
129130

130131
console.table(bench.table())
132+
133+
process.exit(0)

packages/benchmarks/effect.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import * as reatom from '@reatom/core'
1313
import * as agera from '../agera/dist/index.js' // 'agera'
1414

1515
const bench = new Bench({
16+
warmup: true,
1617
time: 1000,
1718
throws: true
1819
})
@@ -203,3 +204,5 @@ bench
203204
await bench.run()
204205

205206
console.table(bench.table())
207+
208+
process.exit(0)

packages/benchmarks/effectScope.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as signals3 from 'alien-signals-3'
44
import * as agera from '../agera/dist/index.js' // 'agera'
55

66
const bench = new Bench({
7+
warmup: true,
78
time: 1000
89
})
910

@@ -73,3 +74,5 @@ await bench.warmup()
7374
await bench.run()
7475

7576
console.table(bench.table())
77+
78+
process.exit(0)

packages/benchmarks/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
"js-size": "node js-size.js"
2727
},
2828
"dependencies": {
29-
"@reatom/core": "^1000.15.1",
30-
"alien-signals-1": "npm:alien-signals@1.0.4",
31-
"alien-signals-3": "npm:alien-signals@3.1.2",
29+
"@reatom/core": "^1001.3.0",
30+
"alien-signals-1": "npm:alien-signals@1.0.13",
31+
"alien-signals-3": "npm:alien-signals@3.2.1",
3232
"effector": "^23.4.4",
33-
"jotai": "^2.17.0",
34-
"mobx": "^6.15.0",
35-
"nanostores": "^1.0.1",
33+
"jotai": "^2.20.2",
34+
"mobx": "^6.16.1",
35+
"nanostores": "^1.4.1",
3636
"playwright": "catalog:",
3737
"rxjs": "^7.8.2",
38-
"svelte": "^5.48.5",
39-
"tinybench": "^4.0.1",
40-
"valtio": "^2.3.0"
38+
"svelte": "^5.56.7",
39+
"tinybench": "^6.0.2",
40+
"valtio": "^2.3.2"
4141
}
4242
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)