Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: use stream for getDeclDeps #19

Merged
merged 1 commit into from
Feb 22, 2024
Merged

perf: use stream for getDeclDeps #19

merged 1 commit into from
Feb 22, 2024

Conversation

scarf005
Copy link
Contributor

runtime: deno 1.41.0 (aarch64-apple-darwin)

file:///Users/nemo/repo/stackgraph/graph/decl_deps_bench.ts
benchmark      time (avg)        iter/s             (min … max)       p75       p99      p995
--------------------------------------------------------------- -----------------------------
array           3.55 ms/iter         281.3     (2.2 ms … 10.47 ms) 4.09 ms 6.55 ms 10.47 ms
stream          2.52 ms/iter         397.2     (1.87 ms … 6.01 ms) 2.61 ms 5.62 ms 6.01 ms

summary
  stream
   1.41x faster than array

@scarf005 scarf005 merged commit 37fc86f into main Feb 22, 2024
3 checks passed
@scarf005 scarf005 deleted the perf/stream branch February 22, 2024 09:18
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.

1 participant