From 115cc1e6ae00cfd9283c1549060892e0c00dcbc4 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 27 Oct 2022 07:58:27 -0700 Subject: Revert "perf(core): generate inlined wrappers for async ops (#16428)" (#16443) --- core/examples/http_bench_json_ops.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/examples/http_bench_json_ops.js') diff --git a/core/examples/http_bench_json_ops.js b/core/examples/http_bench_json_ops.js index 261d91559..883ef1752 100644 --- a/core/examples/http_bench_json_ops.js +++ b/core/examples/http_bench_json_ops.js @@ -2,8 +2,6 @@ // This is not a real HTTP server. We read blindly one time into 'requestBuf', // then write this fixed 'responseBuf'. The point of this benchmark is to // exercise the event loop in a simple yet semi-realistic way. -Deno.core.initializeAsyncOps(); - const requestBuf = new Uint8Array(64 * 1024); const responseBuf = new Uint8Array( "HTTP/1.1 200 OK\r\nContent-Length: 12\r\n\r\nHello World\n" @@ -18,7 +16,7 @@ function listen() { /** Accepts a connection, returns rid. */ function accept(serverRid) { - return Deno.core.ops.op_accept(serverRid); + return Deno.core.opAsync("op_accept", serverRid); } async function serve(rid) { -- cgit v1.2.3