-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
[Merged by Bors] - Optimize Get/SetPropertyByName #2608
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2608 +/- ##
==========================================
+ Coverage 49.42% 49.61% +0.19%
==========================================
Files 386 384 -2
Lines 39244 39082 -162
==========================================
- Hits 19396 19391 -5
+ Misses 19848 19691 -157
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Also, I'm seeing that you do additional benchmarking on the engine for every one of your PRs. Would you be open to integrate that on our repo?
bors r+ |
Similar to #2604, `GetPropertyByName`/`SetPropertyByName` has only string property key. So, we can skip index and utf16 conversions. This improves QuickJS benchmark score 5.8% on average. Richards: 37.0 -> 41.2 DeltaBlue: 38.1 -> 41.4 Crypto: 59.6 -> 59.8 RayTrace: 146 -> 159 EarleyBoyer: 138 -> 142 Splay: 104 -> 106 NavierStokes: 10.2 -> 10.3
Build failed: |
bors retry |
Similar to #2604, `GetPropertyByName`/`SetPropertyByName` has only string property key. So, we can skip index and utf16 conversions. This improves QuickJS benchmark score 5.8% on average. Richards: 37.0 -> 41.2 DeltaBlue: 38.1 -> 41.4 Crypto: 59.6 -> 59.8 RayTrace: 146 -> 159 EarleyBoyer: 138 -> 142 Splay: 104 -> 106 NavierStokes: 10.2 -> 10.3
Pull request successfully merged into main. Build succeeded: |
yeah, it would be nice to have the benchmark in CI, or regular run on any pipeline here. But, I'm not familiar with how the CI works here and how I can test it. I simply downloaded the benchmark and combined the tests by running |
Similar to #2604,
GetPropertyByName
/SetPropertyByName
has only string property key. So, we can skip index and utf16 conversions.This improves QuickJS benchmark score 5.8% on average.
Richards: 37.0 -> 41.2
DeltaBlue: 38.1 -> 41.4
Crypto: 59.6 -> 59.8
RayTrace: 146 -> 159
EarleyBoyer: 138 -> 142
Splay: 104 -> 106
NavierStokes: 10.2 -> 10.3