Skip to content

perf(web): optimize Blob.text and Blob.arrayBuffer#13981

Merged
littledivy merged 6 commits intodenoland:mainfrom
littledivy:blobby
Mar 16, 2022
Merged

perf(web): optimize Blob.text and Blob.arrayBuffer#13981
littledivy merged 6 commits intodenoland:mainfrom
littledivy:blobby

Conversation

@littledivy
Copy link
Member

@littledivy littledivy commented Mar 16, 2022

blob_text_large:     	n = 100, dt = 0.655s, r = 153/s, t = 6550000ns/op

@littledivy littledivy marked this pull request as draft March 16, 2022 09:01
@littledivy littledivy marked this pull request as ready for review March 16, 2022 09:38
@littledivy littledivy requested a review from bartlomieju as a code owner March 16, 2022 09:38
function benchB64RtLong() {
const input = "long-string".repeat(99999);
benchSync("b64_rt_long", 1e2, () => {
benchSync("b64_rt_long", 100, () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be great to rewrite these to use new Deno.bench() API ;)

@littledivy littledivy merged commit 7044bf5 into denoland:main Mar 16, 2022
@littledivy littledivy deleted the blobby branch March 16, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants