summaryrefslogtreecommitdiff
path: root/core/examples
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-06 03:01:28 -0600
committerGitHub <noreply@github.com>2023-06-06 11:01:28 +0200
commit0bbdbace02d8b17a02bd3c631b82f508d0effa4a (patch)
tree836c1faac1dd7e1afc358255554f88e934f282be /core/examples
parent5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b (diff)
refactor(core): ensureFastOps is an op-generating proxy (#19377)
Startup benchmark shows no changes (within 1ms, identical system/user times).
Diffstat (limited to 'core/examples')
-rw-r--r--core/examples/http_bench_json_ops/http_bench_json_ops.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/examples/http_bench_json_ops/http_bench_json_ops.js b/core/examples/http_bench_json_ops/http_bench_json_ops.js
index 6cf2a8be2..a840e4e9f 100644
--- a/core/examples/http_bench_json_ops/http_bench_json_ops.js
+++ b/core/examples/http_bench_json_ops/http_bench_json_ops.js
@@ -9,10 +9,7 @@ const { op_listen } = Deno.core.ops;
const {
op_accept,
op_read_socket,
-} = Deno.core.generateAsyncOpHandler(
- "op_accept",
- "op_read_socket",
-);
+} = Deno.core.ensureFastOps();
const requestBuf = new Uint8Array(64 * 1024);
const responseBuf = new Uint8Array(