Skip to content

Commit 17e85f9

Browse files
chore: update benchmark deps and minor fix (#346)
* test: fix benchmark output * chore(bench/gc): update deps * chore: update deps --------- Co-authored-by: Alex Potsides <[email protected]>
1 parent 9efe50d commit 17e85f9

File tree

4 files changed

+31
-45
lines changed

4 files changed

+31
-45
lines changed

benchmarks/add-dir/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
"start": "npm run build && node dist/src/index.js"
1313
},
1414
"devDependencies": {
15-
"@chainsafe/libp2p-noise": "^11.0.0",
16-
"@chainsafe/libp2p-yamux": "^3.0.5",
15+
"@chainsafe/libp2p-noise": "^14.1.0",
16+
"@chainsafe/libp2p-yamux": "^6.0.1",
1717
"@helia/unixfs": "^1.4.0",
1818
"@ipld/dag-pb": "^4.0.2",
19-
"@libp2p/websockets": "^5.0.3",
20-
"aegir": "^39.0.4",
19+
"@libp2p/websockets": "^8.0.9",
20+
"aegir": "^41.3.5",
2121
"blockstore-fs": "^1.0.1",
2222
"datastore-level": "^10.0.1",
23-
"execa": "^7.0.0",
24-
"helia": "^1.0.0",
23+
"execa": "^8.0.1",
24+
"helia": "^2.1.0",
2525
"ipfs-core": "^0.18.0",
2626
"ipfs-unixfs-importer": "^15.1.5",
2727
"ipfsd-ctl": "^13.0.0",
28-
"it-all": "^2.0.0",
29-
"it-drain": "^2.0.0",
30-
"it-map": "^2.0.1",
31-
"kubo": "^0.22.0",
28+
"it-all": "^3.0.4",
29+
"it-drain": "^3.0.5",
30+
"it-map": "^3.0.5",
31+
"kubo": "^0.25.0",
3232
"kubo-rpc-client": "^3.0.1",
33-
"libp2p": "^0.43.0",
34-
"multiformats": "^11.0.1",
33+
"libp2p": "^1.1.0",
34+
"multiformats": "^13.0.0",
3535
"tinybench": "^2.4.0"
3636
}
3737
}

benchmarks/gc/package.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,21 @@
1010
"start": "npm run build && node dist/src/index.js"
1111
},
1212
"devDependencies": {
13-
"@chainsafe/libp2p-noise": "^12.0.0",
14-
"@chainsafe/libp2p-yamux": "^4.0.2",
15-
"@ipld/dag-pb": "^4.0.3",
16-
"@libp2p/websockets": "^6.0.1",
17-
"aegir": "^39.0.4",
18-
"blockstore-fs": "^1.0.1",
19-
"datastore-level": "^10.0.1",
20-
"execa": "^7.0.0",
21-
"helia": "^1.0.0",
13+
"@ipld/dag-pb": "^4.0.6",
14+
"aegir": "^41.2.0",
15+
"blockstore-fs": "^1.1.8",
16+
"datastore-level": "^10.1.5",
17+
"execa": "^8.0.1",
18+
"helia": "^2.1.0",
2219
"ipfs-core": "^0.18.0",
2320
"ipfsd-ctl": "^13.0.0",
24-
"it-all": "^3.0.2",
25-
"it-drain": "^3.0.1",
26-
"it-map": "^3.0.3",
27-
"kubo": "^0.22.0",
28-
"kubo-rpc-client": "^3.0.1",
29-
"libp2p": "^0.45.2",
30-
"multiformats": "^11.0.1",
31-
"tinybench": "^2.4.0"
21+
"it-all": "^3.0.4",
22+
"it-drain": "^3.0.5",
23+
"it-map": "^3.0.5",
24+
"kubo": "^0.25.0",
25+
"kubo-rpc-client": "^3.0.2",
26+
"multiformats": "^13.0.0",
27+
"tinybench": "^2.5.1"
3228
},
3329
"private": true
3430
}

benchmarks/gc/src/helia.ts

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import os from 'node:os'
22
import path from 'node:path'
3-
import { noise } from '@chainsafe/libp2p-noise'
4-
import { yamux } from '@chainsafe/libp2p-yamux'
53
import * as dagPb from '@ipld/dag-pb'
6-
import { webSockets } from '@libp2p/websockets'
74
import { FsBlockstore } from 'blockstore-fs'
85
import { LevelDatastore } from 'datastore-level'
96
import { createHelia, type DAGWalker } from 'helia'
107
import all from 'it-all'
118
import drain from 'it-drain'
129
import map from 'it-map'
13-
import { createLibp2p } from 'libp2p'
1410
import type { GcBenchmark } from './index.js'
1511

1612
const dagPbWalker: DAGWalker = {
@@ -28,17 +24,11 @@ export async function createHeliaBenchmark (): Promise<GcBenchmark> {
2824
const helia = await createHelia({
2925
blockstore: new FsBlockstore(`${repoPath}/blocks`),
3026
datastore: new LevelDatastore(`${repoPath}/data`),
31-
libp2p: await createLibp2p({
32-
transports: [
33-
webSockets()
34-
],
35-
connectionEncryption: [
36-
noise()
37-
],
38-
streamMuxers: [
39-
yamux()
40-
]
41-
}),
27+
libp2p: {
28+
addresses: {
29+
listen: []
30+
}
31+
},
4232
dagWalkers: [
4333
dagPbWalker
4434
],

benchmarks/gc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async function main (): Promise<void> {
165165
await suite.run()
166166

167167
if (process.env.INCREMENT != null) {
168-
if (process.env.ITERATION === '1') {
168+
if (process.env.ITERATIONS === '1') {
169169
console.info('implementation, count, clear pins (ms), add blocks (ms), add pins (ms), gc (ms)')
170170
}
171171

0 commit comments

Comments
 (0)