summaryrefslogtreecommitdiff
path: root/cli/bench/http
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/http')
-rw-r--r--cli/bench/http/deno_http_flash_ops_spawn.js2
-rw-r--r--cli/bench/http/deno_http_flash_spawn.js2
-rw-r--r--cli/bench/http/deno_http_native_headers.js2
-rw-r--r--cli/bench/http/deno_http_ops.js2
-rw-r--r--cli/bench/http/node_reactdom_ssr.js2
5 files changed, 10 insertions, 0 deletions
diff --git a/cli/bench/http/deno_http_flash_ops_spawn.js b/cli/bench/http/deno_http_flash_ops_spawn.js
index 6ee39a84a..b9d11462f 100644
--- a/cli/bench/http/deno_http_flash_ops_spawn.js
+++ b/cli/bench/http/deno_http_flash_ops_spawn.js
@@ -1,3 +1,5 @@
+// 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");
}
diff --git a/cli/bench/http/deno_http_flash_spawn.js b/cli/bench/http/deno_http_flash_spawn.js
index eb827b34b..e47acffc5 100644
--- a/cli/bench/http/deno_http_flash_spawn.js
+++ b/cli/bench/http/deno_http_flash_spawn.js
@@ -1,3 +1,5 @@
+// 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");
}
diff --git a/cli/bench/http/deno_http_native_headers.js b/cli/bench/http/deno_http_native_headers.js
index 23ef1e060..7c1eaa583 100644
--- a/cli/bench/http/deno_http_native_headers.js
+++ b/cli/bench/http/deno_http_native_headers.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
const addr = Deno.args[0] || "127.0.0.1:4500";
const [hostname, port] = addr.split(":");
const listener = Deno.listen({ hostname, port: Number(port) });
diff --git a/cli/bench/http/deno_http_ops.js b/cli/bench/http/deno_http_ops.js
index f65b32170..3fd0bef31 100644
--- a/cli/bench/http/deno_http_ops.js
+++ b/cli/bench/http/deno_http_ops.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
const addr = Deno.args[0] || "127.0.0.1:4500";
const [hostname, port] = addr.split(":");
const tcp = Deno.listen({ hostname, port: Number(port) });
diff --git a/cli/bench/http/node_reactdom_ssr.js b/cli/bench/http/node_reactdom_ssr.js
index 5e784b946..f82b504d7 100644
--- a/cli/bench/http/node_reactdom_ssr.js
+++ b/cli/bench/http/node_reactdom_ssr.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
var Gd = Object.create;
var Ac = Object.defineProperty;
var Xd = Object.getOwnPropertyDescriptor;