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

fix(synthetic-shadow): types and bugs in preparation for final split #1192

Merged
merged 4 commits into from
May 6, 2019

Conversation

caridy
Copy link
Collaborator

@caridy caridy commented Apr 23, 2019

Details

  • avoid referencing document and window directly from function bodies because they are bound to a closure, and JSDOM shares these functions between workers (this will help in the future)
  • adjust types for EventTarget that surfaced many potential bugs
  • adjust some patched properties to have the proper description

Does this PR introduce a breaking change?

  • No

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

Copy link
Member

@pmdartus pmdartus left a comment

Choose a reason for hiding this comment

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

This is great PR @caridy!

? Document.prototype.elementFromPoint
: (Document.prototype as any).msElementFromPoint; // IE11

// TODO: when does defaultView return a null?
const defaultViewGetter: (this: Document) => Window = getOwnPropertyDescriptor(
Copy link
Member

Choose a reason for hiding this comment

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

defaultView is null when a document has no browsing context. A good example is the owner document of a node in a template doesn't have a default view. Here is an example: https://jsfiddle.net/hv9z0q5a/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

great, I will update the PR to take that into account, I wasn't sure.

@salesforce-best-lwc-internal

This comment has been minimized.

@salesforce-best-lwc-internal

This comment has been minimized.

@caridy
Copy link
Collaborator Author

caridy commented Apr 26, 2019

Ok ,we are down to 5 integration compat tests in IE11:

81 passing (366.70s)
5 failing

  1. shadow root element from point should return correct element should return correct document elements:
    selector needs to be typeof string
    running internet explorer (v11.103) on Windows 10
    Check out job at https://saucelabs.com/tests/38581b902a374fa4831fd2c5a8471050
    Error: selector needs to be typeof string
    at getText() - at elements() - getText.js:18:17

  2. Event target in slot elements should receive event with correct target:
    Event never bubbled to parent
    running internet explorer (v11.103) on Windows 10
    Check out job at https://saucelabs.com/tests/72b4df4237774cb8b66d5b179974924e
    Error: Event never bubbled to parent
    at execute() - index.js:312:3

  3. Event target in slot elements should receive event with correct target:
    did not receive expected event target in parent
    running internet explorer (v11.103) on Windows 10
    Check out job at https://saucelabs.com/tests/8d6efc31eeb548e29401067c4f4153b7
    Error: did not receive expected event target in parent
    at execute() - index.js:312:3

  4. Event target in slot elements should receive event with correct target:
    did not receive expected event target in slot element's parent handler
    running internet explorer (v11.103) on Windows 10
    Check out job at https://saucelabs.com/tests/df1e5ebd30264edebfe791d943ad4982
    Error: did not receive expected event target in slot element's parent handler
    at execute() - index.js:312:3

  5. Component with a wired method should update data correctly:
    Should update todo id
    running internet explorer (v11.103) on Windows 10
    Check out job at https://saucelabs.com/tests/63b5b729c7d84421a4492039dd8d8938
    Error: Should update todo id
    at execute() - index.js:312:3

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: a257c23 | Target commit: 857ab1e

lwc-engine-benchmark

table-append-1k metric base(a257c23) target(857ab1e) trend
benchmark-table/append/1k duration 146.70 (±3.55 ms) 145.30 (±3.65 ms) -1.4ms (1.0%) 👌
table-clear-1k metric base(a257c23) target(857ab1e) trend
benchmark-table/clear/1k duration 11.25 (±0.60 ms) 11.55 (±0.75 ms) +0.3ms (2.7%) 👌
table-create-10k metric base(a257c23) target(857ab1e) trend
benchmark-table/create/10k duration 875.80 (±7.45 ms) 887.05 (±5.45 ms) +11.3ms (1.3%) 👎
table-create-1k metric base(a257c23) target(857ab1e) trend
benchmark-table/create/1k duration 118.45 (±2.80 ms) 118.50 (±2.30 ms) +0.0ms (0.0%) 👌
table-update-10th-1k metric base(a257c23) target(857ab1e) trend
benchmark-table/update-10th/1k duration 75.70 (±3.05 ms) 68.50 (±1.85 ms) -7.2ms (9.5%) 👍
tablecmp-append-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-component/append/1k duration 224.65 (±11.55 ms) 227.25 (±12.50 ms) +2.6ms (1.2%) 👌
tablecmp-clear-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-component/clear/1k duration 6.45 (±1.25 ms) 6.35 (±1.10 ms) -0.1ms (1.6%) 👌
tablecmp-create-10k metric base(a257c23) target(857ab1e) trend
benchmark-table-component/create/10k duration 1725.80 (±13.10 ms) 1719.60 (±13.35 ms) -6.2ms (0.4%) 👌
tablecmp-create-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-component/create/1k duration 210.70 (±4.25 ms) 206.75 (±6.25 ms) -3.9ms (1.9%) 👍
tablecmp-update-10th-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-component/update-10th/1k duration 64.95 (±3.85 ms) 64.45 (±3.05 ms) -0.5ms (0.8%) 👌
wc-append-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-wc/append/1k duration 224.65 (±15.15 ms) 226.95 (±15.60 ms) +2.3ms (1.0%) 👌
wc-clear-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-wc/clear/1k duration 11.05 (±1.40 ms) 11.00 (±1.75 ms) -0.1ms (0.5%) 👌
wc-create-10k metric base(a257c23) target(857ab1e) trend
benchmark-table-wc/create/10k duration 1820.10 (±21.50 ms) 1869.50 (±22.45 ms) +49.4ms (2.7%) 👎
wc-create-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-wc/create/1k duration 213.30 (±6.45 ms) 215.50 (±6.60 ms) +2.2ms (1.0%) 👌
wc-update-10th-1k metric base(a257c23) target(857ab1e) trend
benchmark-table-wc/update-10th/1k duration 66.10 (±4.10 ms) 63.50 (±4.90 ms) -2.6ms (3.9%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: a257c23 | Target commit: d42f69d

lwc-engine-benchmark

table-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/append/1k duration 146.70 (±3.55 ms) 146.95 (±6.00 ms) +0.3ms (0.2%) 👌
table-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/clear/1k duration 11.25 (±0.60 ms) 11.25 (±0.65 ms) 0.0ms (0.0%) 👌
table-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table/create/10k duration 875.80 (±7.45 ms) 868.75 (±4.90 ms) -7.0ms (0.8%) 👍
table-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/create/1k duration 118.45 (±2.80 ms) 116.60 (±2.15 ms) -1.9ms (1.6%) 👍
table-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/update-10th/1k duration 75.70 (±3.05 ms) 67.85 (±1.75 ms) -7.8ms (10.4%) 👍
tablecmp-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/append/1k duration 224.65 (±11.55 ms) 229.45 (±8.30 ms) +4.8ms (2.1%) 👌
tablecmp-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/clear/1k duration 6.45 (±1.25 ms) 5.90 (±0.90 ms) -0.5ms (8.5%) 👌
tablecmp-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/create/10k duration 1725.80 (±13.10 ms) 1744.70 (±19.15 ms) +18.9ms (1.1%) 👎
tablecmp-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/create/1k duration 210.70 (±4.25 ms) 213.10 (±4.05 ms) +2.4ms (1.1%) 👌
tablecmp-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/update-10th/1k duration 64.95 (±3.85 ms) 66.75 (±4.00 ms) +1.8ms (2.8%) 👌
wc-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/append/1k duration 224.65 (±15.15 ms) 234.30 (±16.65 ms) +9.7ms (4.3%) 👌
wc-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/clear/1k duration 11.05 (±1.40 ms) 11.25 (±1.30 ms) +0.2ms (1.8%) 👌
wc-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/create/10k duration 1820.10 (±21.50 ms) 1870.50 (±24.60 ms) +50.4ms (2.8%) 👎
wc-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/create/1k duration 213.30 (±6.45 ms) 215.50 (±4.95 ms) +2.2ms (1.0%) 👌
wc-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/update-10th/1k duration 66.10 (±4.10 ms) 67.30 (±6.30 ms) +1.2ms (1.8%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: a257c23 | Target commit: d42f69d

lwc-engine-benchmark

table-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/append/1k duration 146.70 (±3.55 ms) 147.00 (±4.85 ms) +0.3ms (0.2%) 👌
table-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/clear/1k duration 11.25 (±0.60 ms) 11.25 (±0.70 ms) 0.0ms (0.0%) 👌
table-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table/create/10k duration 875.80 (±7.45 ms) 887.35 (±5.25 ms) +11.5ms (1.3%) 👎
table-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/create/1k duration 118.45 (±2.80 ms) 117.20 (±2.20 ms) -1.3ms (1.1%) 👌
table-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table/update-10th/1k duration 75.70 (±3.05 ms) 69.25 (±1.95 ms) -6.4ms (8.5%) 👍
tablecmp-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/append/1k duration 224.65 (±11.55 ms) 223.35 (±8.90 ms) -1.3ms (0.6%) 👌
tablecmp-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/clear/1k duration 6.45 (±1.25 ms) 5.75 (±1.05 ms) -0.7ms (10.9%) 👌
tablecmp-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/create/10k duration 1725.80 (±13.10 ms) 1715.60 (±14.85 ms) -10.2ms (0.6%) 👍
tablecmp-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/create/1k duration 210.70 (±4.25 ms) 210.80 (±4.95 ms) +0.1ms (0.0%) 👌
tablecmp-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-component/update-10th/1k duration 64.95 (±3.85 ms) 64.75 (±4.25 ms) -0.2ms (0.3%) 👌
wc-append-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/append/1k duration 224.65 (±15.15 ms) 228.35 (±18.85 ms) +3.7ms (1.6%) 👌
wc-clear-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/clear/1k duration 11.05 (±1.40 ms) 10.85 (±1.75 ms) -0.2ms (1.8%) 👌
wc-create-10k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/create/10k duration 1820.10 (±21.50 ms) 1848.75 (±12.35 ms) +28.7ms (1.6%) 👎
wc-create-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/create/1k duration 213.30 (±6.45 ms) 216.75 (±5.95 ms) +3.4ms (1.6%) 👎
wc-update-10th-1k metric base(a257c23) target(d42f69d) trend
benchmark-table-wc/update-10th/1k duration 66.10 (±4.10 ms) 66.05 (±5.00 ms) -0.0ms (0.1%) 👌

const toggleElement = browser.execute(function() {
return document
.querySelector('integration-nested-render-conditional')
.shadowRoot.querySelectorAll('.toggle');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jodarove any particular reason for doing querySelector instead of querySelectorAll? it looks ok, just curious.

Copy link
Contributor

Choose a reason for hiding this comment

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

the test was checking that there were no element in the array (value.length). since values is the wdio property, i think is more readable/stable if we test that value is null (no element returned)

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 1477d56 | Target commit: d42f69d

lwc-engine-benchmark

table-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/append/1k duration 146.80 (±3.50 ms) 147.50 (±3.25 ms) +0.7ms (0.5%) 👌
table-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/clear/1k duration 10.95 (±0.65 ms) 11.40 (±0.70 ms) +0.5ms (4.1%) 👌
table-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table/create/10k duration 875.50 (±6.20 ms) 887.65 (±4.80 ms) +12.1ms (1.4%) 👎
table-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/create/1k duration 119.80 (±3.85 ms) 118.50 (±2.35 ms) -1.3ms (1.1%) 👌
table-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/update-10th/1k duration 68.05 (±1.85 ms) 76.00 (±3.50 ms) +8.0ms (11.7%) 👎
tablecmp-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/append/1k duration 226.35 (±9.90 ms) 223.25 (±9.20 ms) -3.1ms (1.4%) 👌
tablecmp-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/clear/1k duration 5.85 (±1.15 ms) 5.85 (±0.85 ms) 0.0ms (0.0%) 👌
tablecmp-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/create/10k duration 1712.95 (±12.55 ms) 1735.45 (±14.95 ms) +22.5ms (1.3%) 👎
tablecmp-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/create/1k duration 213.85 (±5.35 ms) 215.80 (±6.15 ms) +2.0ms (0.9%) 👌
tablecmp-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/update-10th/1k duration 63.00 (±3.60 ms) 65.40 (±5.30 ms) +2.4ms (3.8%) 👌
wc-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/append/1k duration 232.55 (±18.10 ms) 234.40 (±13.30 ms) +1.8ms (0.8%) 👌
wc-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/clear/1k duration 11.10 (±2.20 ms) 10.60 (±1.60 ms) -0.5ms (4.5%) 👌
wc-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/create/10k duration 1872.00 (±22.25 ms) 1855.20 (±20.40 ms) -16.8ms (0.9%) 👍
wc-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/create/1k duration 216.30 (±4.90 ms) 217.65 (±5.25 ms) +1.3ms (0.6%) 👌
wc-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/update-10th/1k duration 66.85 (±5.25 ms) 65.85 (±4.65 ms) -1.0ms (1.5%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 1477d56 | Target commit: d42f69d

lwc-engine-benchmark

table-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/append/1k duration 146.80 (±3.50 ms) 147.00 (±4.20 ms) +0.2ms (0.1%) 👌
table-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/clear/1k duration 10.95 (±0.65 ms) 11.15 (±0.60 ms) +0.2ms (1.8%) 👌
table-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table/create/10k duration 875.50 (±6.20 ms) 874.75 (±5.85 ms) -0.8ms (0.1%) 👌
table-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/create/1k duration 119.80 (±3.85 ms) 117.40 (±2.30 ms) -2.4ms (2.0%) 👍
table-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table/update-10th/1k duration 68.05 (±1.85 ms) 76.35 (±3.35 ms) +8.3ms (12.2%) 👎
tablecmp-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/append/1k duration 226.35 (±9.90 ms) 225.25 (±10.15 ms) -1.1ms (0.5%) 👌
tablecmp-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/clear/1k duration 5.85 (±1.15 ms) 5.65 (±0.85 ms) -0.2ms (3.4%) 👌
tablecmp-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/create/10k duration 1712.95 (±12.55 ms) 1729.20 (±12.80 ms) +16.3ms (0.9%) 👎
tablecmp-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/create/1k duration 213.85 (±5.35 ms) 211.35 (±5.70 ms) -2.5ms (1.2%) 👌
tablecmp-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-component/update-10th/1k duration 63.00 (±3.60 ms) 66.55 (±3.25 ms) +3.5ms (5.6%) 👎
wc-append-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/append/1k duration 232.55 (±18.10 ms) 228.20 (±18.95 ms) -4.4ms (1.9%) 👌
wc-clear-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/clear/1k duration 11.10 (±2.20 ms) 10.50 (±1.60 ms) -0.6ms (5.4%) 👌
wc-create-10k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/create/10k duration 1872.00 (±22.25 ms) 1838.40 (±19.70 ms) -33.6ms (1.8%) 👍
wc-create-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/create/1k duration 216.30 (±4.90 ms) 215.95 (±3.60 ms) -0.4ms (0.2%) 👌
wc-update-10th-1k metric base(1477d56) target(d42f69d) trend
benchmark-table-wc/update-10th/1k duration 66.85 (±5.25 ms) 67.95 (±5.45 ms) +1.1ms (1.6%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: e42e0db | Target commit: cb3b91e

lwc-engine-benchmark

table-append-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table/append/1k duration 152.50 (±4.40 ms) 151.80 (±3.30 ms) -0.7ms (0.5%) 👌
table-clear-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table/clear/1k duration 11.55 (±0.70 ms) 11.60 (±0.60 ms) +0.0ms (0.4%) 👌
table-create-10k metric base(e42e0db) target(cb3b91e) trend
benchmark-table/create/10k duration 904.75 (±5.85 ms) 901.90 (±6.15 ms) -2.9ms (0.3%) 👌
table-create-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table/create/1k duration 119.95 (±2.75 ms) 119.00 (±3.05 ms) -1.0ms (0.8%) 👌
table-update-10th-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table/update-10th/1k duration 78.90 (±1.25 ms) 69.70 (±1.40 ms) -9.2ms (11.7%) 👍
tablecmp-append-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-component/append/1k duration 234.85 (±11.80 ms) 228.65 (±10.25 ms) -6.2ms (2.6%) 👌
tablecmp-clear-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-component/clear/1k duration 6.40 (±0.95 ms) 6.65 (±1.10 ms) +0.3ms (3.9%) 👌
tablecmp-create-10k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-component/create/10k duration 1742.35 (±12.25 ms) 1741.45 (±16.90 ms) -0.9ms (0.1%) 👌
tablecmp-create-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-component/create/1k duration 215.00 (±5.40 ms) 215.20 (±6.55 ms) +0.2ms (0.1%) 👌
tablecmp-update-10th-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-component/update-10th/1k duration 67.65 (±4.95 ms) 67.85 (±4.40 ms) +0.2ms (0.3%) 👌
wc-append-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-wc/append/1k duration 231.10 (±19.15 ms) 233.65 (±18.25 ms) +2.6ms (1.1%) 👌
wc-clear-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-wc/clear/1k duration 11.35 (±1.45 ms) 11.75 (±1.55 ms) +0.4ms (3.5%) 👌
wc-create-10k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-wc/create/10k duration 1898.95 (±14.55 ms) 1896.35 (±19.20 ms) -2.6ms (0.1%) 👌
wc-create-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-wc/create/1k duration 217.75 (±4.25 ms) 218.55 (±5.10 ms) +0.8ms (0.4%) 👌
wc-update-10th-1k metric base(e42e0db) target(cb3b91e) trend
benchmark-table-wc/update-10th/1k duration 68.65 (±5.25 ms) 68.30 (±4.65 ms) -0.4ms (0.5%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 68359c8 | Target commit: bb15a2a

lwc-engine-benchmark

table-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/append/1k duration 151.80 (±4.15 ms) 150.25 (±4.25 ms) -1.6ms (1.0%) 👌
table-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/clear/1k duration 11.30 (±0.65 ms) 11.65 (±0.75 ms) +0.3ms (3.1%) 👌
table-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table/create/10k duration 888.35 (±7.00 ms) 884.10 (±5.50 ms) -4.2ms (0.5%) 👍
table-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/create/1k duration 120.95 (±3.20 ms) 118.90 (±3.30 ms) -2.0ms (1.7%) 👍
table-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/update-10th/1k duration 69.60 (±3.20 ms) 70.80 (±3.60 ms) +1.2ms (1.7%) 👌
tablecmp-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/append/1k duration 224.15 (±7.60 ms) 227.95 (±12.05 ms) +3.8ms (1.7%) 👎
tablecmp-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/clear/1k duration 6.95 (±1.15 ms) 6.75 (±1.15 ms) -0.2ms (2.9%) 👌
tablecmp-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/create/10k duration 1746.75 (±11.85 ms) 1770.30 (±14.20 ms) +23.5ms (1.3%) 👎
tablecmp-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/create/1k duration 212.15 (±4.60 ms) 216.65 (±6.75 ms) +4.5ms (2.1%) 👎
tablecmp-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/update-10th/1k duration 65.95 (±4.00 ms) 68.20 (±4.75 ms) +2.2ms (3.4%) 👌
wc-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/append/1k duration 234.15 (±19.55 ms) 235.30 (±17.10 ms) +1.2ms (0.5%) 👌
wc-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/clear/1k duration 12.15 (±1.75 ms) 12.05 (±1.65 ms) -0.1ms (0.8%) 👌
wc-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/create/10k duration 1895.15 (±21.50 ms) 1872.20 (±22.25 ms) -23.0ms (1.2%) 👍
wc-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/create/1k duration 219.40 (±4.05 ms) 218.05 (±4.80 ms) -1.3ms (0.6%) 👌
wc-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/update-10th/1k duration 68.65 (±4.85 ms) 66.10 (±6.00 ms) -2.6ms (3.7%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 68359c8 | Target commit: bb15a2a

lwc-engine-benchmark

table-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/append/1k duration 151.80 (±4.15 ms) 151.90 (±4.45 ms) +0.1ms (0.1%) 👌
table-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/clear/1k duration 11.30 (±0.65 ms) 11.30 (±0.60 ms) 0.0ms (0.0%) 👌
table-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table/create/10k duration 888.35 (±7.00 ms) 881.00 (±6.60 ms) -7.3ms (0.8%) 👍
table-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/create/1k duration 120.95 (±3.20 ms) 118.30 (±2.45 ms) -2.6ms (2.2%) 👍
table-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table/update-10th/1k duration 69.60 (±3.20 ms) 69.70 (±2.00 ms) +0.1ms (0.1%) 👌
tablecmp-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/append/1k duration 224.15 (±7.60 ms) 227.55 (±9.75 ms) +3.4ms (1.5%) 👎
tablecmp-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/clear/1k duration 6.95 (±1.15 ms) 6.80 (±1.20 ms) -0.2ms (2.2%) 👌
tablecmp-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/create/10k duration 1746.75 (±11.85 ms) 1761.80 (±15.95 ms) +15.0ms (0.9%) 👎
tablecmp-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/create/1k duration 212.15 (±4.60 ms) 215.00 (±5.40 ms) +2.9ms (1.3%) 👌
tablecmp-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-component/update-10th/1k duration 65.95 (±4.00 ms) 64.45 (±4.45 ms) -1.5ms (2.3%) 👌
wc-append-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/append/1k duration 234.15 (±19.55 ms) 242.10 (±16.85 ms) +8.0ms (3.4%) 👌
wc-clear-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/clear/1k duration 12.15 (±1.75 ms) 12.40 (±1.95 ms) +0.3ms (2.1%) 👌
wc-create-10k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/create/10k duration 1895.15 (±21.50 ms) 1885.20 (±23.50 ms) -10.0ms (0.5%) 👌
wc-create-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/create/1k duration 219.40 (±4.05 ms) 218.10 (±4.65 ms) -1.3ms (0.6%) 👌
wc-update-10th-1k metric base(68359c8) target(bb15a2a) trend
benchmark-table-wc/update-10th/1k duration 68.65 (±4.85 ms) 67.65 (±3.80 ms) -1.0ms (1.5%) 👌

@caridy
Copy link
Collaborator Author

caridy commented May 6, 2019

We still have few flappers here, but we will move forward, @jodarove will fix them in another PR.

@caridy caridy merged commit 6d2de54 into master May 6, 2019
@caridy caridy deleted the caridy/types branch May 6, 2019 21:31
ekashida pushed a commit that referenced this pull request May 10, 2019
…1192)

* fix(synthetic-shadow): types and bugs

* fix(synthetic-shadow): activeElement only works if patch on doc

* fix(synthetic-shadow): PR 1192 feedback

* fix(synthetic-shadow): bug fix for async retargeting
ekashida added a commit that referenced this pull request May 10, 2019
* fix(engine): fixes #1199 and #1198 - disconnecting bug (#1202) (#1209)

* fix(engine): issues #1199 and #1198 when disconnecting

* fix(engine): PR 1202 feedback

* fix(engine): undefined elm needs protection

* fix(engine): adding tests for PR 1202

* fix(engine): test fix for native shadow

* fix: refactor mutation observer polyfill to fix memory leaks (#1200)

* fix: refactor mutation observer polyfill to fix memory leaks

* fix: address pr feedback

* test(integration-karma): migrate nested-template-event-target (#1207)

* test(integration-karma): migrate nested-template-event-target

* test(integration-karma): migrate root-listener-event-target

* test(integration-karma): migrate slotted-custome-element-event-target

* test(integration-karma): migrate nested-render-conditional

* test: increase timeout for two tests that flap in ie11

* fix(synthetic-shadow): types and bugs in preparation for final split (#1192)

* fix(synthetic-shadow): types and bugs

* fix(synthetic-shadow): activeElement only works if patch on doc

* fix(synthetic-shadow): PR 1192 feedback

* fix(synthetic-shadow): bug fix for async retargeting

* fix: prevent tabbing into subtrees with tabindex -1 (#1206)

* test: adjust tests to reproduce issue

* refactor: tabIndex setter comment

* refactor: keyboard focus handling relative to current context

* test: failing test for internal negative tabindex

* fix: correct tabbing when negative tabindex in zero tabindex

* chore: remove .only

* chore: use getOwnerDocument instead of ownerDocumentGetter

* chore: refactor test to use blocking selenium api

* test(integration-karma): migrate misc tests from integration-test (#1212)

* test(integration-karma): migrate non-composed-events-on-custom-element

* test(integration-karma): migrate events/slotted-native-element

* test(integration-karma): migrate events/window-event-listiner

* test(integration-karma): roolback migrate window-event-listener

* test(integration-karma): migrate rendering/duplicate-text-rendering

* test(integration-karma): migrate rendering/form-tag

* test(integration-karma): migrate rendering/nested-state

* test(integration-karma): migrate rendering/null-logging

* feat(babel): add filename/location to error (#1208)

* feat(babel): add filename/location to error

* wip: fix tests

* wip: return consistent location object

* wip: review comments

* fix: provide a way to disable document patching (#1221)

* fix: provide a way to disable document patching

* fix: update names and move function out
ekashida pushed a commit that referenced this pull request May 14, 2019
…1192)

* fix(synthetic-shadow): types and bugs

* fix(synthetic-shadow): activeElement only works if patch on doc

* fix(synthetic-shadow): PR 1192 feedback

* fix(synthetic-shadow): bug fix for async retargeting
ekashida pushed a commit that referenced this pull request May 14, 2019
…1192)

* fix(synthetic-shadow): types and bugs

* fix(synthetic-shadow): activeElement only works if patch on doc

* fix(synthetic-shadow): PR 1192 feedback

* fix(synthetic-shadow): bug fix for async retargeting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants