summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-02 16:00:42 -0500
committerGitHub <noreply@github.com>2023-01-02 21:00:42 +0000
commit10e4b2e14046b74469f7310c599579a6611513fe (patch)
treef6e446cb97d1df8b7413f3bf3a9c897ff487b275 /cli/bench
parentf729576b2db2aa6ce000a598ad2e45533f686213 (diff)
chore: update copyright year to 2023 (#17247)
Yearly tradition of creating extra noise in git.
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/async_ops.js2
-rw-r--r--cli/bench/cache_api.js2
-rw-r--r--cli/bench/command.js2
-rw-r--r--cli/bench/console.js2
-rw-r--r--cli/bench/deno_common.js2
-rw-r--r--cli/bench/encode_into.js2
-rw-r--r--cli/bench/fs/run.mjs2
-rw-r--r--cli/bench/fs/serve.jsx2
-rw-r--r--cli/bench/getrandom.js2
-rw-r--r--cli/bench/http.rs2
-rw-r--r--cli/bench/http/bun_hono_router.js2
-rw-r--r--cli/bench/http/bun_http.js2
-rw-r--r--cli/bench/http/bun_http_send_file.js2
-rw-r--r--cli/bench/http/deno_flash_hono_router.js2
-rw-r--r--cli/bench/http/deno_flash_send_file.js2
-rw-r--r--cli/bench/http/deno_http_flash.js2
-rw-r--r--cli/bench/http/deno_http_flash_ops.js2
-rw-r--r--cli/bench/http/deno_http_flash_post_bin.js2
-rw-r--r--cli/bench/http/deno_http_native.js2
-rw-r--r--cli/bench/http/deno_http_read_headers.js2
-rw-r--r--cli/bench/http/deno_post_bin.js2
-rw-r--r--cli/bench/http/deno_post_json.js2
-rw-r--r--cli/bench/http/deno_tcp.ts2
-rw-r--r--cli/bench/http/node_http.js2
-rw-r--r--cli/bench/http/node_http_read_headers.js2
-rw-r--r--cli/bench/http/node_post_bin.js2
-rw-r--r--cli/bench/http/node_post_json.js2
-rw-r--r--cli/bench/http/node_tcp.js2
-rw-r--r--cli/bench/lsp.rs2
-rw-r--r--cli/bench/lsp_bench_standalone.rs2
-rw-r--r--cli/bench/main.rs2
-rw-r--r--cli/bench/op_now.js2
-rw-r--r--cli/bench/secure_curves.js2
-rw-r--r--cli/bench/stdio/stdio.c2
-rw-r--r--cli/bench/stdio/stdio.js2
-rw-r--r--cli/bench/tcp.js2
-rw-r--r--cli/bench/tty.js2
-rw-r--r--cli/bench/url_parse.js2
-rw-r--r--cli/bench/write_file.js2
39 files changed, 39 insertions, 39 deletions
diff --git a/cli/bench/async_ops.js b/cli/bench/async_ops.js
index 2647accbd..d608e7a9e 100644
--- a/cli/bench/async_ops.js
+++ b/cli/bench/async_ops.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args
diff --git a/cli/bench/cache_api.js b/cli/bench/cache_api.js
index 3e059e80a..31537917e 100644
--- a/cli/bench/cache_api.js
+++ b/cli/bench/cache_api.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const cacheName = "cache-v1";
const cache = await caches.open(cacheName);
diff --git a/cli/bench/command.js b/cli/bench/command.js
index 5b57dd4f6..04e8456d3 100644
--- a/cli/bench/command.js
+++ b/cli/bench/command.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
Deno.bench("echo deno", async () => {
await new Deno.Command("echo", { args: ["deno"] }).output();
diff --git a/cli/bench/console.js b/cli/bench/console.js
index b1873953c..f31d77d25 100644
--- a/cli/bench/console.js
+++ b/cli/bench/console.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const count = 100000;
const start = Date.now();
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js
index 0ce055912..2676fc8de 100644
--- a/cli/bench/deno_common.js
+++ b/cli/bench/deno_common.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// v8 builtin that's close to the upper bound non-NOPs
Deno.bench("date_now", { n: 5e5 }, () => {
diff --git a/cli/bench/encode_into.js b/cli/bench/encode_into.js
index aaee23434..0767ebfce 100644
--- a/cli/bench/encode_into.js
+++ b/cli/bench/encode_into.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args
diff --git a/cli/bench/fs/run.mjs b/cli/bench/fs/run.mjs
index 92471d638..7f27438b0 100644
--- a/cli/bench/fs/run.mjs
+++ b/cli/bench/fs/run.mjs
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
let total = 5;
let current = "";
diff --git a/cli/bench/fs/serve.jsx b/cli/bench/fs/serve.jsx
index 3ef07c6a0..dff01c4b0 100644
--- a/cli/bench/fs/serve.jsx
+++ b/cli/bench/fs/serve.jsx
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
/** @jsx h */
import results from "./deno.json" assert { type: "json" };
diff --git a/cli/bench/getrandom.js b/cli/bench/getrandom.js
index 94df0a802..810fa4a71 100644
--- a/cli/bench/getrandom.js
+++ b/cli/bench/getrandom.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
let [total, count] = typeof Deno !== "undefined"
? Deno.args
: [process.argv[2], process.argv[3]];
diff --git a/cli/bench/http.rs b/cli/bench/http.rs
index 3dbe304c6..c95ba9721 100644
--- a/cli/bench/http.rs
+++ b/cli/bench/http.rs
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use super::Result;
use std::sync::atomic::{AtomicU16, Ordering};
diff --git a/cli/bench/http/bun_hono_router.js b/cli/bench/http/bun_hono_router.js
index 38f9c3542..395ac35a0 100644
--- a/cli/bench/http/bun_hono_router.js
+++ b/cli/bench/http/bun_hono_router.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const port = Bun.argv[2] || "4545";
const { Hono } = require("../testdata/npm/hono/dist/index.js");
diff --git a/cli/bench/http/bun_http.js b/cli/bench/http/bun_http.js
index 89ff9b121..5eaa328eb 100644
--- a/cli/bench/http/bun_http.js
+++ b/cli/bench/http/bun_http.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const port = Bun.argv[2] || "4545";
Bun.serve({
fetch(_req) {
diff --git a/cli/bench/http/bun_http_send_file.js b/cli/bench/http/bun_http_send_file.js
index 268da9ae9..745cf34b8 100644
--- a/cli/bench/http/bun_http_send_file.js
+++ b/cli/bench/http/bun_http_send_file.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const port = Bun.argv[2] || "4545";
const path = new URL("../testdata/128k.bin", import.meta.url).pathname;
diff --git a/cli/bench/http/deno_flash_hono_router.js b/cli/bench/http/deno_flash_hono_router.js
index af6adc9ba..ef78849b2 100644
--- a/cli/bench/http/deno_flash_hono_router.js
+++ b/cli/bench/http/deno_flash_hono_router.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { Hono } from "https://deno.land/x/hono@v2.0.9/mod.ts";
const addr = Deno.args[0] || "127.0.0.1:4500";
diff --git a/cli/bench/http/deno_flash_send_file.js b/cli/bench/http/deno_flash_send_file.js
index db2ad7a82..b613a6164 100644
--- a/cli/bench/http/deno_flash_send_file.js
+++ b/cli/bench/http/deno_flash_send_file.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_http_flash.js b/cli/bench/http/deno_http_flash.js
index 4b6a1eb21..4add599eb 100644
--- a/cli/bench/http/deno_http_flash.js
+++ b/cli/bench/http/deno_http_flash.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_http_flash_ops.js b/cli/bench/http/deno_http_flash_ops.js
index 970447a42..1ef2f65ed 100644
--- a/cli/bench/http/deno_http_flash_ops.js
+++ b/cli/bench/http/deno_http_flash_ops.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file
diff --git a/cli/bench/http/deno_http_flash_post_bin.js b/cli/bench/http/deno_http_flash_post_bin.js
index cea530e60..b81553dcd 100644
--- a/cli/bench/http/deno_http_flash_post_bin.js
+++ b/cli/bench/http/deno_http_flash_post_bin.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_http_native.js b/cli/bench/http/deno_http_native.js
index a45416ada..285bc9b1f 100644
--- a/cli/bench/http/deno_http_native.js
+++ b/cli/bench/http/deno_http_native.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_http_read_headers.js b/cli/bench/http/deno_http_read_headers.js
index 75346b38d..de9738c97 100644
--- a/cli/bench/http/deno_http_read_headers.js
+++ b/cli/bench/http/deno_http_read_headers.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_post_bin.js b/cli/bench/http/deno_post_bin.js
index 33ffeed1b..ebdced64b 100644
--- a/cli/bench/http/deno_post_bin.js
+++ b/cli/bench/http/deno_post_bin.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_post_json.js b/cli/bench/http/deno_post_json.js
index 90c68f6e4..5a905f8d5 100644
--- a/cli/bench/http/deno_post_json.js
+++ b/cli/bench/http/deno_post_json.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// 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(":");
diff --git a/cli/bench/http/deno_tcp.ts b/cli/bench/http/deno_tcp.ts
index 43b4d2264..a7ce03e66 100644
--- a/cli/bench/http/deno_tcp.ts
+++ b/cli/bench/http/deno_tcp.ts
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Used for benchmarking Deno's networking.
// TODO(bartlomieju): Replace this with a real HTTP server once
// https://github.com/denoland/deno/issues/726 is completed.
diff --git a/cli/bench/http/node_http.js b/cli/bench/http/node_http.js
index 3380c86a5..3c0d9c41c 100644
--- a/cli/bench/http/node_http.js
+++ b/cli/bench/http/node_http.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
diff --git a/cli/bench/http/node_http_read_headers.js b/cli/bench/http/node_http_read_headers.js
index 98716c72b..0ec230a3a 100644
--- a/cli/bench/http/node_http_read_headers.js
+++ b/cli/bench/http/node_http_read_headers.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
diff --git a/cli/bench/http/node_post_bin.js b/cli/bench/http/node_post_bin.js
index d0f2d6667..9026c2958 100644
--- a/cli/bench/http/node_post_bin.js
+++ b/cli/bench/http/node_post_bin.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
diff --git a/cli/bench/http/node_post_json.js b/cli/bench/http/node_post_json.js
index 074d005d0..bab64b28d 100644
--- a/cli/bench/http/node_post_json.js
+++ b/cli/bench/http/node_post_json.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
diff --git a/cli/bench/http/node_tcp.js b/cli/bench/http/node_tcp.js
index cb51a63a5..2f8abb375 100644
--- a/cli/bench/http/node_tcp.js
+++ b/cli/bench/http/node_tcp.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Note: this is a keep-alive server.
const { Server } = require("net");
const port = process.argv[2] || "4544";
diff --git a/cli/bench/lsp.rs b/cli/bench/lsp.rs
index 7aa35d099..fe6fd2703 100644
--- a/cli/bench/lsp.rs
+++ b/cli/bench/lsp.rs
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use deno_core::error::AnyError;
use deno_core::serde::Deserialize;
diff --git a/cli/bench/lsp_bench_standalone.rs b/cli/bench/lsp_bench_standalone.rs
index b8682f7cd..080f25e73 100644
--- a/cli/bench/lsp_bench_standalone.rs
+++ b/cli/bench/lsp_bench_standalone.rs
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use deno_bench_util::bencher::benchmark_group;
use deno_bench_util::bencher::benchmark_main;
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 02df982d8..e6b9895f2 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use deno_core::error::AnyError;
use deno_core::serde_json;
diff --git a/cli/bench/op_now.js b/cli/bench/op_now.js
index edce96fed..adc78d451 100644
--- a/cli/bench/op_now.js
+++ b/cli/bench/op_now.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args
diff --git a/cli/bench/secure_curves.js b/cli/bench/secure_curves.js
index dfb40c261..3ad9c004f 100644
--- a/cli/bench/secure_curves.js
+++ b/cli/bench/secure_curves.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
let [total, count] = typeof Deno !== "undefined"
? Deno.args
: [process.argv[2], process.argv[3]];
diff --git a/cli/bench/stdio/stdio.c b/cli/bench/stdio/stdio.c
index 8125a0d00..f878c5b43 100644
--- a/cli/bench/stdio/stdio.c
+++ b/cli/bench/stdio/stdio.c
@@ -1,5 +1,5 @@
// From https://github.com/just-js/benchmarks/tree/main/01-stdio
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
#include <stdlib.h>
#include <stdio.h>
diff --git a/cli/bench/stdio/stdio.js b/cli/bench/stdio/stdio.js
index 0663d6fd7..1d11c273d 100644
--- a/cli/bench/stdio/stdio.js
+++ b/cli/bench/stdio/stdio.js
@@ -1,5 +1,5 @@
// From https://github.com/just-js/benchmarks/tree/main/01-stdio
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const blocksize = parseInt(Deno.args[0] || 65536);
const buf = new Uint8Array(blocksize);
diff --git a/cli/bench/tcp.js b/cli/bench/tcp.js
index 826f5f87b..6b9023951 100644
--- a/cli/bench/tcp.js
+++ b/cli/bench/tcp.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const listener = Deno.listen({ port: 4500 });
const response = new TextEncoder().encode(
diff --git a/cli/bench/tty.js b/cli/bench/tty.js
index c01af255f..f7e992093 100644
--- a/cli/bench/tty.js
+++ b/cli/bench/tty.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args
diff --git a/cli/bench/url_parse.js b/cli/bench/url_parse.js
index d19793f63..56d6fc484 100644
--- a/cli/bench/url_parse.js
+++ b/cli/bench/url_parse.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args
diff --git a/cli/bench/write_file.js b/cli/bench/write_file.js
index 2f09b3645..b02d3eb56 100644
--- a/cli/bench/write_file.js
+++ b/cli/bench/write_file.js
@@ -1,4 +1,4 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
let [total, count] = typeof Deno !== "undefined"
? Deno.args