-
Notifications
You must be signed in to change notification settings - Fork 513
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
Using generate_args0 : -20% exec time??? #2316
Using generate_args0 : -20% exec time??? #2316
Conversation
Aaaaaaaand I retest and fail the firsts unit tests WTF |
Salut Denis, Impressive work ! I have ran the same tests as a few days ago, the results are not really different from the current development version. Do you get different results ?
|
I still haven't removed some garbage and optimized it. Still, your results with Firefox are a little strange. I'll have to check on that. When testing each function separately the difference might be difficult to see as the browser will likely optimize some conditions when it sees that they are often "true" (which in real life isn't always the case). I'll have to check the difference in speed between |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
It's strange. When using |
I do get different results on Firefox (toggle
Notice that "func with no args" is +6.4% slower with my version.... when this is the same code between the 2 versions... Raw data :
|
Should now be a little more optimized for :
Not gonna lie, it is a little hard to optimize the output considering the number of possible combinations ( 192? ). |
Results with old benchmark :
Raw data :
Results with new benchmark :
-21.875% on execution time. Discussion :
|
With 10x more data :
New version seems overall faster. Raw data:
|
Hum... I may have an idea to speed up processing of defaults values when kwargs are passed : |
I have merged the PR. Thanks for the hard work Denis ! |
Not ready for merge.
Link to the old benchmark
Using the following benchmark :
Usage of
generateArgs0
is toggled injs_to_ast.js
line 2107 :const USE_PERSO_ARGS0 = true;
.It seems execution time is reduced by 20% (from 3.15sec to 2.5sec).
Tasks remaining :
{$kw:[{},{}]}
.