diff --git a/perf/impl/Makefile b/perf/impl/Makefile index 61f0a8208..8117f3389 100644 --- a/perf/impl/Makefile +++ b/perf/impl/Makefile @@ -7,12 +7,12 @@ JS_SUBDIRS := $(wildcard js-libp2p/*/.) all: $(RUST_SUBDIRS) $(GO_SUBDIRS) $(HTTPS_SUBDIRS) $(QUIC_GO_SUBDIRS) $(JS_SUBDIRS) #$(RUST_SUBDIRS): # $(MAKE) -C $@ -#$(GO_SUBDIRS): -# $(MAKE) -C $@ -#$(HTTPS_SUBDIRS): -# $(MAKE) -C $@ -#$(QUIC_GO_SUBDIRS): -# $(MAKE) -C $@ +$(GO_SUBDIRS): + $(MAKE) -C $@ +$(HTTPS_SUBDIRS): + $(MAKE) -C $@ +$(QUIC_GO_SUBDIRS): + $(MAKE) -C $@ $(JS_SUBDIRS): $(MAKE) -C $@ diff --git a/perf/impl/js-libp2p/next/Makefile b/perf/impl/js-libp2p/v1.0/Makefile similarity index 100% rename from perf/impl/js-libp2p/next/Makefile rename to perf/impl/js-libp2p/v1.0/Makefile diff --git a/perf/impl/js-libp2p/next/index.js b/perf/impl/js-libp2p/v1.0/index.js similarity index 100% rename from perf/impl/js-libp2p/next/index.js rename to perf/impl/js-libp2p/v1.0/index.js diff --git a/perf/impl/js-libp2p/next/package-lock.json b/perf/impl/js-libp2p/v1.0/package-lock.json similarity index 100% rename from perf/impl/js-libp2p/next/package-lock.json rename to perf/impl/js-libp2p/v1.0/package-lock.json diff --git a/perf/impl/js-libp2p/next/package.json b/perf/impl/js-libp2p/v1.0/package.json similarity index 85% rename from perf/impl/js-libp2p/next/package.json rename to perf/impl/js-libp2p/v1.0/package.json index 7e34a5f2c..dc78f0d62 100644 --- a/perf/impl/js-libp2p/next/package.json +++ b/perf/impl/js-libp2p/v1.0/package.json @@ -1,5 +1,5 @@ { - "name": "@libp2p/perf-js-libp2p-next", + "name": "@libp2p/perf-js-libp2p-1-0", "private": true, "main": "index.js", "type": "module", diff --git a/perf/impl/js-libp2p/next/perf b/perf/impl/js-libp2p/v1.0/perf similarity index 92% rename from perf/impl/js-libp2p/next/perf rename to perf/impl/js-libp2p/v1.0/perf index d61d6058c..fbafed458 100755 --- a/perf/impl/js-libp2p/next/perf +++ b/perf/impl/js-libp2p/v1.0/perf @@ -29,4 +29,4 @@ for ((i = 1; i <= $#; i++)); do done # Run perf -node impl/js-libp2p/next/index.js --run-server=$run_server --server-address=$server_address --upload-bytes=$upload_bytes --download-bytes=$download_bytes --transport=$transport +node impl/js-libp2p/v1.0/index.js --run-server=$run_server --server-address=$server_address --upload-bytes=$upload_bytes --download-bytes=$download_bytes --transport=$transport diff --git a/perf/impl/js-libp2p/next/tcp/dist/index.min.js b/perf/impl/js-libp2p/v1.0/tcp/dist/index.min.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/index.min.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/index.min.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/constants.d.ts b/perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.d.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/constants.d.ts rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.d.ts diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/constants.d.ts.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.d.ts.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/constants.d.ts.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.d.ts.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/constants.js b/perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/constants.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/constants.js.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.js.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/constants.js.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/constants.js.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/index.d.ts b/perf/impl/js-libp2p/v1.0/tcp/dist/src/index.d.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/index.d.ts rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/index.d.ts diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/index.d.ts.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/index.d.ts.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/index.d.ts.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/index.d.ts.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/index.js b/perf/impl/js-libp2p/v1.0/tcp/dist/src/index.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/index.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/index.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/index.js.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/index.js.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/index.js.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/index.js.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/listener.d.ts b/perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.d.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/listener.d.ts rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.d.ts diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/listener.d.ts.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.d.ts.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/listener.d.ts.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.d.ts.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/listener.js b/perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/listener.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/listener.js.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.js.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/listener.js.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/listener.js.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.d.ts b/perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.d.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.d.ts rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.d.ts diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.d.ts.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.d.ts.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.d.ts.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.d.ts.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.js b/perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.js.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.js.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/socket-to-conn.js.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/socket-to-conn.js.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/utils.d.ts b/perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.d.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/utils.d.ts rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.d.ts diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/utils.d.ts.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.d.ts.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/utils.d.ts.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.d.ts.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/utils.js b/perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.js similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/utils.js rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.js diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/utils.js.map b/perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.js.map similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/src/utils.js.map rename to perf/impl/js-libp2p/v1.0/tcp/dist/src/utils.js.map diff --git a/perf/impl/js-libp2p/next/tcp/dist/tsconfig.tsbuildinfo b/perf/impl/js-libp2p/v1.0/tcp/dist/tsconfig.tsbuildinfo similarity index 100% rename from perf/impl/js-libp2p/next/tcp/dist/tsconfig.tsbuildinfo rename to perf/impl/js-libp2p/v1.0/tcp/dist/tsconfig.tsbuildinfo diff --git a/perf/impl/js-libp2p/next/tcp/package.json b/perf/impl/js-libp2p/v1.0/tcp/package.json similarity index 100% rename from perf/impl/js-libp2p/next/tcp/package.json rename to perf/impl/js-libp2p/v1.0/tcp/package.json diff --git a/perf/impl/js-libp2p/next/tcp/src/constants.ts b/perf/impl/js-libp2p/v1.0/tcp/src/constants.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/src/constants.ts rename to perf/impl/js-libp2p/v1.0/tcp/src/constants.ts diff --git a/perf/impl/js-libp2p/next/tcp/src/index.ts b/perf/impl/js-libp2p/v1.0/tcp/src/index.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/src/index.ts rename to perf/impl/js-libp2p/v1.0/tcp/src/index.ts diff --git a/perf/impl/js-libp2p/next/tcp/src/listener.ts b/perf/impl/js-libp2p/v1.0/tcp/src/listener.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/src/listener.ts rename to perf/impl/js-libp2p/v1.0/tcp/src/listener.ts diff --git a/perf/impl/js-libp2p/next/tcp/src/socket-to-conn.ts b/perf/impl/js-libp2p/v1.0/tcp/src/socket-to-conn.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/src/socket-to-conn.ts rename to perf/impl/js-libp2p/v1.0/tcp/src/socket-to-conn.ts diff --git a/perf/impl/js-libp2p/next/tcp/src/utils.ts b/perf/impl/js-libp2p/v1.0/tcp/src/utils.ts similarity index 100% rename from perf/impl/js-libp2p/next/tcp/src/utils.ts rename to perf/impl/js-libp2p/v1.0/tcp/src/utils.ts diff --git a/perf/runner/src/versions.ts b/perf/runner/src/versions.ts index ad4e94e39..788c044fe 100644 --- a/perf/runner/src/versions.ts +++ b/perf/runner/src/versions.ts @@ -5,16 +5,16 @@ export type Version = { } export const versions: Array = [ - /*{ + { id: "v0.34", implementation: "quic-go", transportStacks: ["quic-v1"] }, - { + /*{ id: "v0.53", implementation: "rust-libp2p", transportStacks: ["tcp", "quic-v1"] - }, + },*/ { id: "v0.1", implementation: "https", @@ -39,19 +39,14 @@ export const versions: Array = [ id: "v0.31", implementation: "go-libp2p", transportStacks: ["tcp", "quic-v1"] - },*/ - { - id: "v0.46", - implementation: "js-libp2p", - transportStacks: ["tcp"] }, { - id: "next", + id: "v0.46", implementation: "js-libp2p", transportStacks: ["tcp"] }, { - id: "next-default", + id: "v1,0", implementation: "js-libp2p", transportStacks: ["tcp"] },