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(ext/node): move winerror binding to rust #17792

Merged
merged 5 commits into from
Feb 16, 2023

Conversation

littledivy
Copy link
Member

16873 lines of JS removed from the snapshot.

@bartlomieju
Copy link
Member

Are you sure it's that many lines? The diff doesn't show it. What's the size difference of the snapshot?

@ry
Copy link
Member

ry commented Feb 15, 2023

@bartlomieju note the JS file got renamed to RS

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Is this PR ready?

# hyperfine --warmup 5 "/tmp/deno-pr17792 run x.js" "/tmp/deno-main run x.js" "deno run x.js"
Benchmark 1: /tmp/deno-pr17792 run x.js
  Time (mean ± σ):      23.0 ms ±   0.6 ms    [User: 17.1 ms, System: 3.9 ms]
  Range (min … max):    22.2 ms …  25.0 ms    112 runs

Benchmark 2: /tmp/deno-main run x.js
  Time (mean ± σ):      22.8 ms ±   0.5 ms    [User: 18.0 ms, System: 4.1 ms]
  Range (min … max):    22.1 ms …  24.5 ms    115 runs

Benchmark 3: deno run x.js (1.30.3)
  Time (mean ± σ):      16.3 ms ±   0.5 ms    [User: 17.7 ms, System: 4.5 ms]
  Range (min … max):    15.6 ms …  18.2 ms    149 runs

@bartlomieju
Copy link
Member

It's a bit concerning there's no difference in startup time :/ let's push forward with other modules we listed before fully evaluating it.

@littledivy littledivy marked this pull request as ready for review February 16, 2023 12:45
@littledivy
Copy link
Member Author

Fully hooked up now, and no difference in execution time :(

...maybe thats because winerror.ts is just constants that don't impact deserilazation as much. IMO Let's continue porting larger parts to Rust.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@littledivy littledivy merged commit 0aeb8bc into denoland:main Feb 16, 2023
@HACKERPRO456
Copy link

#17792 (comment)

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.

4 participants