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(cache): compile ts to js in parallel for deno cache #23892

Merged
merged 1 commit into from
May 20, 2024

Conversation

dsherret
Copy link
Member

Benchmark 1: ../deno/deno_old cache main.ts
  Time (mean ± σ):     225.6 ms ±   6.5 ms    [User: 134.0 ms, System: 80.6 ms]
  Range (min … max):   219.2 ms … 237.2 ms    12 runs
 
Benchmark 2: ../deno/deno_new cache main.ts
  Time (mean ± σ):     168.7 ms ±   6.9 ms    [User: 234.3 ms, System: 167.2 ms]
  Range (min … max):   156.5 ms … 182.0 ms    16 runs
 
Summary
  ../deno/deno_new cache main.ts ran
    1.34 ± 0.07 times faster than ../deno/deno_old cache main.ts
% cat main.ts
import "https://deno.land/x/dax@0.22.0/mod.ts";
import "https://deno.land/x/dax@0.23.0/mod.ts";
import "https://deno.land/x/dax@0.24.0/mod.ts";
import "https://deno.land/x/dax@0.25.0/mod.ts";

Closes #23860

@dsherret dsherret requested a review from bartlomieju May 20, 2024 14:16
@dsherret dsherret merged commit c89f9f9 into denoland:main May 20, 2024
17 checks passed
@dsherret dsherret deleted the perf_cache_module_emits_parallel branch May 20, 2024 17:49
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.

Cache module emits in parallel
2 participants