Skip to content
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

feat: [WIP] first prototype of node reactions #1431

Closed
wants to merge 44 commits into from

Conversation

ravijayaramappa
Copy link
Contributor

@ravijayaramappa ravijayaramappa commented Jul 29, 2019

Details

First prototype of node-reactions RFC salesforce/lwc-rfcs#11

Started with #1173 as the base.

Does this PR introduce breaking changes?

  • No, it does not introduce breaking changes.

If yes, please describe the impact and migration path for existing applications.

The PR fulfills these requirements:

  • Have tests for the proposed changes been added? ❌
  • Have you followed these instructions to clearly describe the issue being fixed or feature enhanced? ✅

@ravijayaramappa ravijayaramappa added the work-in-progress Work in progress label Jul 29, 2019
@ravijayaramappa ravijayaramappa added this to the 224 milestone Jul 29, 2019
@ravijayaramappa ravijayaramappa changed the title [WIP] first prototype of @lwc/node reactions [WIP] first prototype of node reactions Jul 29, 2019
forEach.call(reactionQueue, (entry: ReactionEvent, index: number) => {
// TODO: Should this be fault tolerant? If one callback failed, should the processing end of continue?
entry.callback.call(entry.node, entry.type);
reactionQueue.slice(index, 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravijayaramappa ravijayaramappa changed the title [WIP] first prototype of node reactions feat: [WIP] first prototype of node reactions Jul 29, 2019
@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

@@ -19,8 +21,10 @@ export default function queueReactionsForTree(
reactionTypes: Array<ReactionEventType>,
reactionQueue: Array<ReactionEvent>
): void {
if (process.env.NODE_ENV !== 'production') {
assert.invariant(!isUndefined(root), `Expected a dom node but received ${root}`);
Copy link
Contributor

@caridy caridy Jul 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... but received undefined isn't it?

if (root instanceof Element && !!root.shadowRoot) {
const nodeType = nodeTypeGetter.call(root);
// Perf optimization: Only Element type can have shadowRoot
if (nodeType === 1 && (root as Element).shadowRoot) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worry about this check here. if the element has a closed shadowRoot, we can't do much. That's why I think my suggestion was to patch attachShadow() so we can always grab the shadowRoot when needed, and we can have a custom mechanism to determine shadow. Something like:

if (!isUndefined(root.$$myInternalFn$$)) {
     const sr = root.$$myInternalFn$$();
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the patch on attachShadow will create $$myInternalFn$$ or a symbol to provide a fn to access the shadow root instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, agreed. Closed shadow was an open question in the RFC too.
About patching attachShadow and adding a field, if I put my security hat on: What stops external users from utilizing the same field to bypass closed shadow?

}

if (isTrue(hasChildNodes.call(root))) {
// Perf optimization: Element and Document Fragment are the only types that need to be processed
if ((nodeType === 1 || nodeType === 11) && isTrue(hasChildNodes.call(root))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably the call to hasChildNodes then childNodesGetter is slower than just childNodesGetter because you cross the bridge only once.

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

enumerable: true,
configurable: true,
get(this: Node) {
return isConnected.call(this);
Copy link
Contributor

@caridy caridy Aug 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isConnected is the same you import from Node.prototype, I suspect that it must be patched here if it doesn't exist, and to provide shadow semantics.

Copy link
Member

@ekashida ekashida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be generating environment-specific dist files in this package? We don't do that for engine, synthetic-shadow, or wire-service.

@caridy
Copy link
Contributor

caridy commented Aug 5, 2019

@ekashida you're right, this is not different than those other pkgs, we shouild have the same build step.

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: a0a0862 | Target commit: 24b1326

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: a0a0862 | Target commit: 7d0851b

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 15.3% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

❌ Regressions base (a0a0862) target (c0a9db9) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 14.22 (± 0.74ms) 20.87 (± 0.75ms) +6.6ms (46.7%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 269.50 (± 5.49ms) 302.81 (± 4.58ms) +33.3ms (12.4%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.61 (± 0.14ms) 16.31 (± 0.65ms) +10.7ms (190.8%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2217.97 (± 14.76ms) 2478.85 (± 14.14ms) +260.9ms (11.8%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 226.32 (± 2.76ms) 268.84 (± 3.84ms) +42.5ms (18.8%)
wc-append-1k.benchmark/benchmark-table-wc/append/1k 430.91 (± 4.63ms) 467.40 (± 6.84ms) +36.5ms (8.5%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.10 (± 1.32ms) 70.89 (± 1.28ms) +27.8ms (64.5%)
wc-create-10k.benchmark/benchmark-table-wc/create/10k 3253.20 (± 30.63ms) 3490.15 (± 23.38ms) +236.9ms (7.3%)
wc-create-1k.benchmark/benchmark-table-wc/create/1k 378.62 (± 3.59ms) 413.11 (± 3.66ms) +34.5ms (9.1%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 11.7% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (96a2b96) target (a2616d3) trend
tablecmp-update-10th-1k.benchmark/benchmark-table-component/update-10th/1k 95.58 (± 1.53ms) 90.27 (± 1.89ms) -5.3ms (5.6%)
❌ Regressions base (96a2b96) target (a2616d3) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 16.05 (± 0.55ms) 23.04 (± 0.57ms) +7.0ms (43.6%)
table-create-1k.benchmark/benchmark-table/create/1k 127.30 (± 2.84ms) 134.68 (± 3.19ms) +7.4ms (5.8%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 273.65 (± 3.40ms) 306.18 (± 4.77ms) +32.5ms (11.9%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.43 (± 0.20ms) 18.48 (± 0.43ms) +12.0ms (187.3%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2258.13 (± 15.98ms) 2484.41 (± 18.53ms) +226.3ms (10.0%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 237.92 (± 4.15ms) 262.34 (± 3.72ms) +24.4ms (10.3%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.59 (± 1.52ms) 67.03 (± 1.58ms) +23.4ms (53.8%)
wc-create-1k.benchmark/benchmark-table-wc/create/1k 381.09 (± 2.42ms) 405.32 (± 4.66ms) +24.2ms (6.4%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 9.6% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (850bd12) target (459a5b0) trend
tablecmp-update-10th-1k.benchmark/benchmark-table-component/update-10th/1k 97.57 (± 3.02ms) 91.22 (± 2.21ms) -6.4ms (6.5%)
❌ Regressions base (850bd12) target (459a5b0) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 16.35 (± 0.62ms) 21.91 (± 0.61ms) +5.6ms (34.0%)
table-create-1k.benchmark/benchmark-table/create/1k 126.56 (± 2.34ms) 133.42 (± 3.15ms) +6.9ms (5.4%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 265.98 (± 4.21ms) 301.18 (± 3.82ms) +35.2ms (13.2%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.58 (± 0.21ms) 17.16 (± 0.49ms) +10.6ms (160.5%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2261.51 (± 19.22ms) 2481.11 (± 18.45ms) +219.6ms (9.7%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 241.82 (± 3.98ms) 258.56 (± 3.29ms) +16.7ms (6.9%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 44.84 (± 1.19ms) 68.77 (± 2.52ms) +23.9ms (53.4%)
wc-create-1k.benchmark/benchmark-table-wc/create/1k 386.37 (± 4.05ms) 409.67 (± 5.16ms) +23.3ms (6.0%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 17.0% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

❌ Regressions base (b0c4512) target (e42df95) trend
table-append-1k.benchmark/benchmark-table/append/1k 188.38 (± 4.00ms) 199.50 (± 3.12ms) +11.1ms (5.9%)
table-clear-1k.benchmark/benchmark-table/clear/1k 16.16 (± 0.69ms) 24.23 (± 0.66ms) +8.1ms (49.9%)
table-create-10k.benchmark/benchmark-table/create/10k 1086.61 (± 6.40ms) 1155.12 (± 10.77ms) +68.5ms (6.3%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 280.78 (± 4.45ms) 316.74 (± 3.07ms) +36.0ms (12.8%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.94 (± 0.15ms) 19.13 (± 0.49ms) +13.2ms (222.1%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2331.13 (± 18.22ms) 2585.18 (± 11.95ms) +254.1ms (10.9%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 229.78 (± 3.46ms) 273.82 (± 4.87ms) +44.0ms (19.2%)
wc-append-1k.benchmark/benchmark-table-wc/append/1k 435.55 (± 6.71ms) 472.37 (± 4.46ms) +36.8ms (8.5%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 42.78 (± 1.04ms) 70.52 (± 1.85ms) +27.7ms (64.8%)
wc-create-1k.benchmark/benchmark-table-wc/create/1k 379.16 (± 4.81ms) 429.76 (± 3.62ms) +50.6ms (13.3%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 11.4% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (5b21e3c) target (0b0c624) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 16.49 (± 0.59ms) 7.63 (± 0.20ms) -8.9ms (53.7%)
❌ Regressions base (5b21e3c) target (0b0c624) trend
table-append-1k.benchmark/benchmark-table/append/1k 182.63 (± 2.15ms) 203.81 (± 4.83ms) +21.2ms (11.6%)
table-create-1k.benchmark/benchmark-table/create/1k 125.92 (± 2.72ms) 136.82 (± 5.49ms) +10.9ms (8.7%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 271.30 (± 3.68ms) 296.74 (± 4.27ms) +25.4ms (9.4%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.55 (± 0.10ms) 18.25 (± 0.74ms) +11.7ms (178.6%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2232.09 (± 22.59ms) 2464.43 (± 21.63ms) +232.3ms (10.4%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 242.12 (± 1.85ms) 273.57 (± 2.92ms) +31.5ms (13.0%)
wc-append-1k.benchmark/benchmark-table-wc/append/1k 441.23 (± 5.90ms) 465.60 (± 4.31ms) +24.4ms (5.5%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.08 (± 1.18ms) 70.24 (± 1.61ms) +27.2ms (63.0%)
wc-create-1k.benchmark/benchmark-table-wc/create/1k 378.58 (± 3.20ms) 405.06 (± 5.37ms) +26.5ms (7.0%)

}
if (qualifiedReactionTypes.length > 0) {
if (ObjectKeys(qualifiedReactionTypes).length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bitwise flag with be just compare to something different than 0

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 5.9% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (89ee65e) target (1f0f83c) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 14.66 (± 0.59ms) 7.24 (± 0.19ms) -7.4ms (50.7%)
❌ Regressions base (89ee65e) target (1f0f83c) trend
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.95 (± 0.19ms) 13.09 (± 0.74ms) +7.1ms (119.9%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2345.92 (± 21.33ms) 2472.43 (± 21.89ms) +126.5ms (5.4%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 230.94 (± 4.32ms) 265.62 (± 3.10ms) +34.7ms (15.0%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.40 (± 1.31ms) 67.00 (± 0.94ms) +23.6ms (54.4%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 8.9% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (eeb6930) target (5252f26) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 15.85 (± 0.64ms) 7.50 (± 0.18ms) -8.3ms (52.7%)
❌ Regressions base (eeb6930) target (5252f26) trend
table-append-1k.benchmark/benchmark-table/append/1k 185.86 (± 3.54ms) 195.71 (± 3.36ms) +9.8ms (5.3%)
table-update-10th-1k.benchmark/benchmark-table/update-10th/1k 96.31 (± 1.46ms) 102.40 (± 0.96ms) +6.1ms (6.3%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 270.61 (± 5.59ms) 300.63 (± 3.94ms) +30.0ms (11.1%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.01 (± 0.32ms) 14.81 (± 1.33ms) +8.8ms (146.4%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2250.11 (± 13.31ms) 2491.50 (± 18.78ms) +241.4ms (10.7%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 237.35 (± 4.75ms) 269.33 (± 2.43ms) +32.0ms (13.5%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.26 (± 0.62ms) 65.98 (± 1.03ms) +22.7ms (52.5%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 6.7% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (d955b51) target (035ed11) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 15.62 (± 0.78ms) 6.54 (± 0.21ms) -9.1ms (58.2%)
wc-append-1k.benchmark/benchmark-table-wc/append/1k 445.17 (± 5.41ms) 418.09 (± 4.61ms) -27.1ms (6.1%)
❌ Regressions base (d955b51) target (035ed11) trend
table-create-1k.benchmark/benchmark-table/create/1k 133.28 (± 5.86ms) 140.62 (± 5.92ms) +7.3ms (5.5%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 275.45 (± 5.34ms) 304.75 (± 3.45ms) +29.3ms (10.6%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.82 (± 0.23ms) 12.60 (± 0.30ms) +6.8ms (116.5%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2301.43 (± 15.69ms) 2577.16 (± 16.13ms) +275.7ms (12.0%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 237.57 (± 3.84ms) 254.56 (± 3.66ms) +17.0ms (7.2%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 44.14 (± 1.64ms) 63.85 (± 1.13ms) +19.7ms (44.7%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 5.7% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (8d6baab) target (286f00b) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 15.18 (± 0.75ms) 7.14 (± 0.19ms) -8.0ms (53.0%)
❌ Regressions base (8d6baab) target (286f00b) trend
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.93 (± 0.15ms) 13.04 (± 0.46ms) +7.1ms (119.9%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 231.00 (± 4.57ms) 262.38 (± 3.33ms) +31.4ms (13.6%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 42.11 (± 1.02ms) 68.47 (± 2.12ms) +26.4ms (62.6%)

@caridy
Copy link
Contributor

caridy commented Aug 29, 2019

Web Platform Tests

wpt branch: master

command: ./wpt run --binary-arg=-headless --log-mach=mach.txt --log-mach-level=debug firefox dom

// without node-reactions
Ran 326 tests finished in 155.4 seconds.
• 299 ran as expected. 0 tests skipped.
• 10 tests had errors unexpectedly
• 17 tests had unexpected subtest results

// with node-reactions
Ran 326 tests finished in 395.6 seconds.
• 291 ran as expected. 0 tests skipped.
• 10 tests had errors unexpectedly
• 7 tests timed out unexpectedly
• 18 tests had unexpected subtest results

to preserve native behavior for invalid arguments
@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 7.7% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (9a7f822) target (381ec04) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 14.90 (± 0.82ms) 7.62 (± 0.17ms) -7.3ms (48.9%)
❌ Regressions base (9a7f822) target (381ec04) trend
table-append-1k.benchmark/benchmark-table/append/1k 192.01 (± 1.85ms) 202.08 (± 2.86ms) +10.1ms (5.2%)
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 274.75 (± 3.90ms) 302.07 (± 5.79ms) +27.3ms (9.9%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.95 (± 0.23ms) 13.44 (± 0.30ms) +7.5ms (125.8%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2244.80 (± 10.82ms) 2512.88 (± 23.91ms) +268.1ms (11.9%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 230.37 (± 3.53ms) 266.42 (± 1.81ms) +36.1ms (15.6%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.01 (± 0.59ms) 65.25 (± 1.42ms) +22.2ms (51.7%)

@ravijayaramappa ravijayaramappa removed the work-in-progress Work in progress label Sep 4, 2019
@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 5.7% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (f6844f2) target (ff7ff66) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 15.27 (± 0.46ms) 7.63 (± 0.13ms) -7.6ms (50.1%)
❌ Regressions base (f6844f2) target (ff7ff66) trend
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 275.57 (± 6.31ms) 296.43 (± 5.75ms) +20.9ms (7.6%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.66 (± 0.14ms) 13.96 (± 0.44ms) +7.3ms (109.5%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2395.70 (± 23.06ms) 2611.24 (± 15.29ms) +215.5ms (9.0%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 231.17 (± 3.71ms) 268.32 (± 3.74ms) +37.2ms (16.1%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 45.17 (± 1.65ms) 71.02 (± 1.64ms) +25.8ms (57.2%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 6.3% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (f6844f2) target (8be8d6e) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 15.27 (± 0.46ms) 7.21 (± 0.17ms) -8.1ms (52.8%)
❌ Regressions base (f6844f2) target (8be8d6e) trend
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 275.57 (± 6.31ms) 303.74 (± 4.84ms) +28.2ms (10.2%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 6.66 (± 0.14ms) 14.05 (± 0.54ms) +7.4ms (110.9%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 231.17 (± 3.71ms) 257.14 (± 3.57ms) +26.0ms (11.2%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 45.17 (± 1.65ms) 71.57 (± 2.79ms) +26.4ms (58.4%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 6.6% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (f561d93) target (e3abfbd) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 14.21 (± 0.53ms) 6.88 (± 0.23ms) -7.3ms (51.6%)
❌ Regressions base (f561d93) target (e3abfbd) trend
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 270.99 (± 3.50ms) 285.12 (± 3.68ms) +14.1ms (5.2%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.83 (± 0.13ms) 13.39 (± 0.31ms) +7.6ms (129.9%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2287.83 (± 21.35ms) 2476.86 (± 17.51ms) +189.0ms (8.3%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 229.06 (± 3.72ms) 256.73 (± 3.38ms) +27.7ms (12.1%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.28 (± 1.06ms) 69.58 (± 2.38ms) +26.3ms (60.7%)

@salesforce-best-lwc-internal
Copy link

⚠ Performance Regression

Best has detected that there is a 6.1% performance regression across your benchmarks.

Please click here to see more details.

Click to view significantly changed benchmarks

lwc-engine-benchmark

✅ Improvements base (f561d93) target (e3abfbd) trend
table-clear-1k.benchmark/benchmark-table/clear/1k 14.21 (± 0.53ms) 6.65 (± 0.15ms) -7.6ms (53.2%)
table-create-10k.benchmark/benchmark-table/create/10k 1166.30 (± 5.34ms) 1088.60 (± 5.15ms) -77.7ms (6.7%)
❌ Regressions base (f561d93) target (e3abfbd) trend
tablecmp-append-1k.benchmark/benchmark-table-component/append/1k 270.99 (± 3.50ms) 291.53 (± 6.03ms) +20.5ms (7.6%)
tablecmp-clear-1k.benchmark/benchmark-table-component/clear/1k 5.83 (± 0.13ms) 12.92 (± 0.36ms) +7.1ms (121.8%)
tablecmp-create-10k.benchmark/benchmark-table-component/create/10k 2287.83 (± 21.35ms) 2548.47 (± 21.79ms) +260.6ms (11.4%)
tablecmp-create-1k.benchmark/benchmark-table-component/create/1k 229.06 (± 3.72ms) 250.89 (± 3.10ms) +21.8ms (9.5%)
wc-clear-1k.benchmark/benchmark-table-wc/clear/1k 43.28 (± 1.06ms) 70.36 (± 2.27ms) +27.1ms (62.6%)

@ravijayaramappa
Copy link
Contributor Author

Closed in favor of #1504

@ravijayaramappa ravijayaramappa deleted the ravi/master/node-reactions branch January 26, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants