summaryrefslogtreecommitdiff
path: root/cli/bench/http/deno_http_flash_ops_spawn.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/http/deno_http_flash_ops_spawn.js')
-rw-r--r--cli/bench/http/deno_http_flash_ops_spawn.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/bench/http/deno_http_flash_ops_spawn.js b/cli/bench/http/deno_http_flash_ops_spawn.js
deleted file mode 100644
index b9d11462f..000000000
--- a/cli/bench/http/deno_http_flash_ops_spawn.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-if (Deno.build.os !== "linux") {
- throw new Error("SO_REUSEPORT is only supported on Linux");
-}
-
-const executable = Deno.execPath();
-const path = new URL("./deno_http_flash_ops.js", import.meta.url).pathname;
-// single flash instance runs on ~1.8 cores
-const cpus = navigator.hardwareConcurrency / 2;
-const processes = new Array(cpus);
-for (let i = 0; i < cpus; i++) {
- const proc = Deno.run({
- cmd: [executable, "run", "-A", "--unstable", path, Deno.args[0]],
- });
- processes.push(proc.status());
-}
-await Promise.all(processes);