| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This reduces the runtime and makes sure the strict and loose options can be tested individually. Besides that a couple of redundant cases were removed.
This adds a smarter logic to compare object keys and it also skips the object key comparison for arrays, if possible. Besides that it adds a fast path for empty objects and arrays. It also adds a fast path for boxed strings and improves the comparison performance for TypedArrays with extra keys on the object. On top of that a few functions are now safer to call by using uncurryThis and by caching the actual function.
Currently the comparison could throw an error in case a boxed primitive has no valueOf function on one side of the assert call.
|
@BridgeAR build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/417/pipeline |
Sorry, something went wrong.
|
Benchmark: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/220/ |
Sorry, something went wrong.
15:10:24 not ok 43 parallel/test-benchmark-assert |
Sorry, something went wrong.
|
@jasnell I fixed the test already. |
Sorry, something went wrong.
|
@nodejs/util @nodejs/testing PTAL |
Sorry, something went wrong.
Sorry, something went wrong.
|
@nodejs/benchmarking |
Sorry, something went wrong.
|
Since this PR did not yet get any attention and I have a follow-up PR. I am closing this one and just have a combined PR afterwards. See #22197 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
See individual commits for detailed description.
Checklist