summaryrefslogtreecommitdiff
path: root/cli/bench/deno_common.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-03-16 19:16:52 +0530
committerGitHub <noreply@github.com>2022-03-16 19:16:52 +0530
commit7044bf523bab3a6da47150a05823dd6571abfd49 (patch)
tree48967a64ec68b805b91ec14dcdbe954b10563f7c /cli/bench/deno_common.js
parentbfa4ed92bcd119fa5c8fdb6b444b83a092dccca9 (diff)
perf(web): optimize Blob.text and Blob.arrayBuffer (#13981)
Diffstat (limited to 'cli/bench/deno_common.js')
-rw-r--r--cli/bench/deno_common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js
index 629ed7669..284f9d216 100644
--- a/cli/bench/deno_common.js
+++ b/cli/bench/deno_common.js
@@ -39,7 +39,7 @@ function benchStats(name, n, t1, t2) {
function benchB64RtLong() {
const input = "long-string".repeat(99999);
- benchSync("b64_rt_long", 1e2, () => {
+ benchSync("b64_rt_long", 100, () => {
atob(btoa(input));
});
}
@@ -58,7 +58,7 @@ function benchUrlParse() {
function benchLargeBlobText() {
const input = "long-string".repeat(999_999);
- benchSync("blob_text_large", 3, () => {
+ benchSync("blob_text_large", 100, () => {
new Blob([input]).text();
});
}