summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock12
-rw-r--r--Cargo.toml2
-rw-r--r--cli/bench/deno_common.js26
-rw-r--r--cli/tests/testdata/run/ffi/unstable_ffi_3.js4
4 files changed, 22 insertions, 22 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 780fc5624..0cf53d7bc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1136,9 +1136,9 @@ dependencies = [
[[package]]
name = "deno_core"
-version = "0.242.0"
+version = "0.243.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bce3947a74745927b2409b7d3533d7a9c06c7271c56a2e334cce9e431a7f6bfb"
+checksum = "cadc994e8ecacc8b44a60bd26e510a9913d69ff9aa2fca39f9c0378084ba722d"
dependencies = [
"anyhow",
"bit-set",
@@ -1576,9 +1576,9 @@ dependencies = [
[[package]]
name = "deno_ops"
-version = "0.118.0"
+version = "0.119.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5a63b1ef458869727ad0c524fc1378a20038027fbb170a09730b5c763980f0b"
+checksum = "3ac6a58c4aef86af8a55751cb157c703cd9f21f209026515412e0912ca9c2e4c"
dependencies = [
"proc-macro-rules",
"proc-macro2",
@@ -5241,9 +5241,9 @@ dependencies = [
[[package]]
name = "serde_v8"
-version = "0.151.0"
+version = "0.152.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f491e71da04e4ae2b178ea3572d40fce81ab760253437ccd3bd4a57a19a39e8"
+checksum = "016d49be02ecb10655486c7e0a3fe2fe9345bc4c7f3cf5c66671ff327115eabe"
dependencies = [
"bytes",
"derive_more",
diff --git a/Cargo.toml b/Cargo.toml
index ed1f0642a..92f77c3f2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@ repository = "https://github.com/denoland/deno"
[workspace.dependencies]
deno_ast = { version = "0.31.6", features = ["transpiling"] }
-deno_core = { version = "0.242.0" }
+deno_core = { version = "0.243.0" }
deno_runtime = { version = "0.137.0", path = "./runtime" }
napi_sym = { version = "0.59.0", path = "./cli/napi/sym" }
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js
index b10b1e7a7..b4319c8a3 100644
--- a/cli/bench/deno_common.js
+++ b/cli/bench/deno_common.js
@@ -5,34 +5,32 @@ Deno.bench("date_now", { n: 5e5 }, () => {
Date.now();
});
+const { op_void_sync, op_void_async, op_add } = Deno[Deno.internal].core
+ .ensureFastOps();
+
// Fast API calls
{
- const { op_add } = Deno[Deno.internal].core.ops;
- // deno-lint-ignore no-inner-declarations
- function add(a, b) {
- return op_add(a, b);
- }
// deno-lint-ignore no-inner-declarations
function addJS(a, b) {
return a + b;
}
- Deno.bench("op_add", () => add(1, 2));
+ Deno.bench("op_add", () => op_add(1, 2));
Deno.bench("add_js", () => addJS(1, 2));
}
-const { op_void_sync } = Deno[Deno.internal].core.ops;
-function sync() {
- return op_void_sync();
-}
-sync(); // Warmup
-
// Void ops measure op-overhead
-Deno.bench("op_void_sync", () => sync());
+Deno.bench("op_void_sync", () => op_void_sync());
Deno.bench(
"op_void_async",
{ n: 1e6 },
- () => Deno[Deno.internal].core.opAsync("op_void_async"),
+ () => op_void_async(),
+);
+
+Deno.bench(
+ "op_void_await_async",
+ { n: 1e6 },
+ async () => await op_void_async(),
);
// A very lightweight op, that should be highly optimizable
diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_3.js b/cli/tests/testdata/run/ffi/unstable_ffi_3.js
index b59a264ea..075fb3a54 100644
--- a/cli/tests/testdata/run/ffi/unstable_ffi_3.js
+++ b/cli/tests/testdata/run/ffi/unstable_ffi_3.js
@@ -1,4 +1,6 @@
-Deno[Deno.internal].core.opAsync("op_ffi_call_ptr_nonblocking", null, {
+const { op_ffi_call_ptr_nonblocking } = Deno[Deno.internal].core
+ .ensureFastOps();
+op_ffi_call_ptr_nonblocking(null, {
name: null,
parameters: [],
result: "void",