mirror of
https://github.com/denoland/deno.git
synced 2025-08-01 17:42:32 +00:00
perf(web): optimize Blob.text and Blob.arrayBuffer (#13981)
This commit is contained in:
parent
bfa4ed92bc
commit
7044bf523b
2 changed files with 20 additions and 12 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue