summaryrefslogtreecommitdiff
path: root/bench_util
diff options
context:
space:
mode:
Diffstat (limited to 'bench_util')
-rw-r--r--bench_util/benches/op_baseline.rs32
1 files changed, 23 insertions, 9 deletions
diff --git a/bench_util/benches/op_baseline.rs b/bench_util/benches/op_baseline.rs
index 89fb3d2f3..4b3bc0203 100644
--- a/bench_util/benches/op_baseline.rs
+++ b/bench_util/benches/op_baseline.rs
@@ -9,7 +9,14 @@ use deno_bench_util::bencher::Bencher;
use deno_core::op;
use deno_core::Extension;
-deno_core::extension!(bench_setup, ops = [op_pi_json, op_pi_async, op_nop]);
+deno_core::extension!(
+ bench_setup,
+ ops = [
+ // op_pi_json,
+ op_pi_async,
+ op_nop
+ ]
+);
fn setup() -> Vec<Extension> {
vec![bench_setup::init_ops()]
@@ -18,10 +25,12 @@ fn setup() -> Vec<Extension> {
#[op]
fn op_nop() {}
-#[op]
-fn op_pi_json() -> i64 {
- 314159
-}
+// TODO(bartlomieju): reenable, currently this op generates a fast function,
+// which is wrong, because i64 is not a compatible type for fast call.
+// #[op]
+// fn op_pi_json() -> i64 {
+// 314159
+// }
// this is a function since async closures aren't stable
#[op]
@@ -29,9 +38,9 @@ async fn op_pi_async() -> i64 {
314159
}
-fn bench_op_pi_json(b: &mut Bencher) {
- bench_js_sync(b, r#"Deno.core.ops.op_pi_json();"#, setup);
-}
+// fn bench_op_pi_json(b: &mut Bencher) {
+// bench_js_sync(b, r#"Deno.core.ops.op_pi_json();"#, setup);
+// }
fn bench_op_nop(b: &mut Bencher) {
bench_js_sync(b, r#"Deno.core.ops.op_nop();"#, setup);
@@ -41,6 +50,11 @@ fn bench_op_async(b: &mut Bencher) {
bench_js_async(b, r#"Deno.core.opAsync("op_pi_async");"#, setup);
}
-benchmark_group!(benches, bench_op_pi_json, bench_op_nop, bench_op_async,);
+benchmark_group!(
+ benches,
+ // bench_op_pi_json,
+ bench_op_nop,
+ bench_op_async,
+);
bench_or_profile!(benches);