diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index caf170cb..8142d989 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -25,6 +25,7 @@ "@libp2p/tcp": "^10.0.0", "@libp2p/webrtc": "^5.0.0", "@libp2p/websockets": "^9.0.0", + "@libp2p/webtransport": "^5.0.0", "@multiformats/multiaddr": "^12.2.1", "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", diff --git a/benchmarks/transports/src/runner/helia/transports.browser.ts b/benchmarks/transports/src/runner/helia/transports.browser.ts index dfe238fe..edd4439a 100644 --- a/benchmarks/transports/src/runner/helia/transports.browser.ts +++ b/benchmarks/transports/src/runner/helia/transports.browser.ts @@ -2,6 +2,7 @@ import { circuitRelayTransport } from '@libp2p/circuit-relay-v2' import { webRTC } from '@libp2p/webrtc' import { webSockets } from '@libp2p/websockets' import * as wsFilters from '@libp2p/websockets/filters' +import { webTransport } from '@libp2p/webtransport' import type { Transport } from '@libp2p/interface' interface TransportFactory { (...args: any[]): Transport } @@ -12,6 +13,7 @@ export function getTransports (): TransportFactory[] { filter: wsFilters.all }), webRTC(), - circuitRelayTransport() + circuitRelayTransport(), + webTransport() ] }