summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
authorYiyu Lin <linyiyu1992@gmail.com>2023-01-13 15:51:32 +0800
committerGitHub <noreply@github.com>2023-01-13 16:51:32 +0900
commita00e432297d2ae119c8e1097aec74badc886f912 (patch)
tree7380b37245e889e97a8c7b1535a1e31fddb74738 /cli/bench
parent5707a958ac2b44d573d50260b1d0d40887662011 (diff)
chore: add `copyright_checker` tool and add the missing copyright (#17285)
Diffstat (limited to 'cli/bench')
-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
-rw-r--r--cli/bench/napi/bench.js2
-rw-r--r--cli/bench/stdio/stdio.js3
7 files changed, 14 insertions, 1 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;
diff --git a/cli/bench/napi/bench.js b/cli/bench/napi/bench.js
index 5917d3a28..63215a217 100644
--- a/cli/bench/napi/bench.js
+++ b/cli/bench/napi/bench.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { loadTestLibrary } from "../../../test_napi/common.js";
const lib = loadTestLibrary();
diff --git a/cli/bench/stdio/stdio.js b/cli/bench/stdio/stdio.js
index 1d11c273d..e53016df2 100644
--- a/cli/bench/stdio/stdio.js
+++ b/cli/bench/stdio/stdio.js
@@ -1,5 +1,6 @@
-// From https://github.com/just-js/benchmarks/tree/main/01-stdio
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//
+// From https://github.com/just-js/benchmarks/tree/main/01-stdio
const blocksize = parseInt(Deno.args[0] || 65536);
const buf = new Uint8Array(blocksize);