Repository navigation
lib: add primordials.SafeArrayIterator - #36532
Conversation
There was a problem hiding this comment.
There's quite a few performance regressions here. I expect these will show up for other subsystem benchmarks as well due to the code that is being changed here, but here are the Buffer creation benchmark results for example:
confidence improvement accuracy (*) (**) (***)
buffers/buffer-creation.js n=600000 len=1024 type='fast-alloc' *** -16.77 % Β±3.11% Β±4.15% Β±5.42%
buffers/buffer-creation.js n=600000 len=1024 type='fast-alloc-fill' *** -19.31 % Β±4.12% Β±5.50% Β±7.18%
buffers/buffer-creation.js n=600000 len=1024 type='fast-allocUnsafe' *** -60.95 % Β±2.93% Β±3.91% Β±5.12%
buffers/buffer-creation.js n=600000 len=1024 type='slow-allocUnsafe' *** -25.14 % Β±3.70% Β±4.93% Β±6.43%
buffers/buffer-creation.js n=600000 len=10 type='fast-alloc' *** -84.48 % Β±4.53% Β±6.09% Β±8.07%
buffers/buffer-creation.js n=600000 len=10 type='fast-alloc-fill' *** -80.82 % Β±4.60% Β±6.18% Β±8.16%
buffers/buffer-creation.js n=600000 len=10 type='fast-allocUnsafe' *** -87.77 % Β±7.33% Β±9.88% Β±13.12%
buffers/buffer-creation.js n=600000 len=10 type='slow-allocUnsafe' *** -83.53 % Β±6.69% Β±9.01% Β±11.95%
buffers/buffer-creation.js n=600000 len=4096 type='fast-alloc' *** -16.15 % Β±2.99% Β±3.98% Β±5.18%
buffers/buffer-creation.js n=600000 len=4096 type='fast-alloc-fill' *** -18.88 % Β±3.98% Β±5.31% Β±6.92%
buffers/buffer-creation.js n=600000 len=4096 type='fast-allocUnsafe' *** -28.35 % Β±3.52% Β±4.70% Β±6.15%
buffers/buffer-creation.js n=600000 len=4096 type='slow-allocUnsafe' *** -26.75 % Β±3.74% Β±4.98% Β±6.49%
buffers/buffer-creation.js n=600000 len=8192 type='fast-alloc' *** -11.73 % Β±3.51% Β±4.67% Β±6.08%
buffers/buffer-creation.js n=600000 len=8192 type='fast-alloc-fill' *** -14.17 % Β±3.54% Β±4.72% Β±6.15%
buffers/buffer-creation.js n=600000 len=8192 type='fast-allocUnsafe' *** -27.15 % Β±3.93% Β±5.25% Β±6.87%
buffers/buffer-creation.js n=600000 len=8192 type='slow-allocUnsafe' *** -26.28 % Β±3.97% Β±5.32% Β±6.98%
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@mscdex Please check out the last benchmark results, they seem much better now. Details |
9a728a4 to
def229a
Compare
|
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/789/ Details |
Trott
left a comment
There was a problem hiding this comment.
LGTM once unblocked (which presumably will make the failing tests pass)
|
@nodejs/modules |
Trott
left a comment
There was a problem hiding this comment.
LGTM once unblocked (which presumably will make the failing tests pass)
def229a to
b975a4a
Compare
|
Benchmark CI (events): https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/803/console Those don't show any perf regression either. Details |
Commit Queue failed- Loading data for nodejs/node/pull/36532 β Done loading data for nodejs/node/pull/36532 ----------------------------------- PR info ------------------------------------ Title lib: add primordials.SafeArrayIterator (#36532) β Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch aduh95:safe-array-iterator -> nodejs:master Labels author ready, lib / src Commits 1 - lib: add primordials.SafeArrayIterator Committers 1 - Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/36532 Reviewed-By: Rich Trott ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/36532 Reviewed-By: Rich Trott -------------------------------------------------------------------------------- β Commits were pushed since the last review: β - lib: add primordials.SafeArrayIterator β Last GitHub Actions successful βΉ Last Benchmark CI on 2020-12-26T10:16:57Z: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/804/console βΉ Last Full PR CI on 2020-12-25T19:32:19Z: https://ci.nodejs.org/job/node-test-pull-request/35080/ - Querying data for job/node-test-pull-request/804/ β Last Jenkins CI successful βΉ This PR was created on Tue, 15 Dec 2020 17:21:16 GMT β Approvals: 1 β - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/36532#pullrequestreview-557887739 -------------------------------------------------------------------------------- β Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/447379775 |
PR-URL: nodejs#36532 Reviewed-By: Rich Trott <rtrott@gmail.com>
b975a4a to
0b6d307
Compare
|
Landed in 0b6d307 |
PR-URL: #36532 Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: nodejs#36532 Reviewed-By: Rich Trott <rtrott@gmail.com>
Make Node.js module loading resilient to prototype tempering from user-mode.
Blocked by #36428 and #36587.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes