-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
π Fix safeApply
never calling original apply
#3102
Conversation
Existing verson of the code was wrong as it was expecting `apply` to be directly defined on the called function while in theory it comes from the `Function.prototype`. Given benchmarks we did on https://github.com/dubzzz/fast-check-benchmarks/blob/main/benchmark-poisoning-results.txt, we expect some performance uplift from this change: - before: from 8,572.147 to 8,823.322 ops/sec - after: from 15,083.692 to 15,573.392 ops/sec Measurments on fast-check itself will be carried out before merging the fix to make sure of the performance boost.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 48d4cb5:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit fdefee0:
|
Performance measurements for current main (dd5b27b) (aka main) vs 3.1.0 (aka 3.1.0) vs this PR (aka extra):
More details at: https://github.com/dubzzz/fast-check-benchmarks/runs/8103484316 |
Existing version of the code was wrong as it was expecting
apply
to be directly defined on the called function while in theory it comes from theFunction.prototype
.Given benchmarks we did on https://github.com/dubzzz/fast-check-benchmarks/blob/main/benchmark-poisoning-results.txt, we expect some performance uplift from this change:
Measurements on fast-check itself will be carried out before merging the fix to make sure of the performance boost.
Category:
Potential impacts: