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(compiler): collect default value metadata for @api properties #816

Merged
merged 11 commits into from
Nov 15, 2018

Conversation

apapko
Copy link
Collaborator

@apapko apapko commented Nov 8, 2018

Details

Today, metadata object produced by the compiler does not contain default values for public properties.

In order for the component metadata consumers to detect default values of the public properties, the metadata object must send back the value object for both classMember and decorators metadata objects ( api properties only as it is the only public property, and no methods )
ex:

@api
index = 0;

will produce :

{
    "decorator": "api",
    "loc": {
        "end": { "column": 22, "line": 1 },
        "start": { "column": 0, "line": 1 }
    },
    "name": "index",
    "type": "property",
    "value": { type: "number", value: 0 },
}

Does this PR introduce a breaking change?

  • Yes
  • No

Any tests in lwc-platform and aura that validate metadata shape may need to be edited.

@apapko apapko requested review from diervo, pmdartus and a user November 8, 2018 21:45
@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: e6b27c4 | Target commit: fe61850

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: e6b27c4 | Target commit: 27aa576

lwc-engine-benchmark

table-append-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table/append/1k duration 157.85 (±5.55 ms) 154.90 (±4.10 ms) -3.0ms (1.9%) 👍
table-clear-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table/clear/1k duration 6.35 (±0.45 ms) 6.55 (±0.55 ms) +0.2ms (3.1%) 👌
table-create-10k metric base(e6b27c4) target(27aa576) trend
benchmark-table/create/10k duration 918.60 (±5.95 ms) 922.90 (±7.35 ms) +4.3ms (0.5%) 👎
table-create-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table/create/1k duration 120.05 (±2.50 ms) 119.95 (±2.65 ms) -0.1ms (0.1%) 👌
table-update-10th-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table/update-10th/1k duration 78.85 (±2.00 ms) 78.40 (±2.05 ms) -0.4ms (0.6%) 👌
tablecmp-append-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-component/append/1k duration 261.55 (±6.70 ms) 262.10 (±4.70 ms) +0.6ms (0.2%) 👌
tablecmp-clear-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-component/clear/1k duration 13.15 (±2.00 ms) 13.30 (±1.30 ms) +0.2ms (1.1%) 👌
tablecmp-create-10k metric base(e6b27c4) target(27aa576) trend
benchmark-table-component/create/10k duration 1833.35 (±13.75 ms) 1812.05 (±18.95 ms) -21.3ms (1.2%) 👍
tablecmp-create-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-component/create/1k duration 212.85 (±5.20 ms) 213.55 (±5.20 ms) +0.7ms (0.3%) 👌
tablecmp-update-10th-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-component/update-10th/1k duration 73.60 (±5.70 ms) 72.80 (±3.95 ms) -0.8ms (1.1%) 👌
wc-append-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-wc/append/1k duration 295.05 (±10.10 ms) 293.10 (±7.20 ms) -1.9ms (0.7%) 👌
wc-clear-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-wc/clear/1k duration 24.80 (±3.40 ms) 24.30 (±2.65 ms) -0.5ms (2.0%) 👌
wc-create-10k metric base(e6b27c4) target(27aa576) trend
benchmark-table-wc/create/10k duration 4502.65 (±30.75 ms) 4460.65 (±20.65 ms) -42.0ms (0.9%) 👍
wc-create-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-wc/create/1k duration 264.55 (±5.55 ms) 264.25 (±5.90 ms) -0.3ms (0.1%) 👌
wc-update-10th-1k metric base(e6b27c4) target(27aa576) trend
benchmark-table-wc/update-10th/1k duration 79.60 (±7.25 ms) 77.45 (±5.65 ms) -2.2ms (2.7%) 👌

`
import { LightningElement, api } from 'lwc';
export default class Foo extends LightningElement {
_privateTodo
Copy link

Choose a reason for hiding this comment

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

missing ';'

type: "property",
value: {
type: "object",
value: {
Copy link

Choose a reason for hiding this comment

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

nice!

{ type: "string", value: "stringval" },
{ type: "number", value: 0 },
{ type: "null", value: null },
{ type: undefined, value: undefined },
Copy link

Choose a reason for hiding this comment

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

I wonder if type should be undefined vs "undefined", as for example null technically is also an undefined type... just something to ponder about

Copy link
Collaborator Author

@apapko apapko Nov 9, 2018

Choose a reason for hiding this comment

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

my thinking was as follows:

@api nullProp = null;

since the null has its own type - NullLiteral, we can capture it explicitly as a 'null' type;

Versus absence of value,

@api novalue;

where we cannot deduce its type, in which case it is truly undefined.
Anyhow, i will be adding 'unresolved' for consistency

}

if (type === 'property') {
meta.value = extractValueMetadata(parentValue)
Copy link

Choose a reason for hiding this comment

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

missed ';'

function extractStringValueMeta(valueNode) {
return {
type: 'string',
value: valueNode && valueNode.value || undefined,
Copy link

Choose a reason for hiding this comment

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

when would the undefined condition kick in ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

absence of value in valueNode.value is returned as 'null'; therefore returning undefined instead.

}

if (!valueNode || !Array.isArray(valueNode.elements)) {
return arrayValueMeta;
Copy link

Choose a reason for hiding this comment

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

when would this condition be hit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

elements always have value of empty array, i'm just being paranoid :). Will remove the !Array.isArray(valueNode.elements) check.


const values = {};

// TODO: do we want this as an object with properties mapped to the value objects
Copy link

Choose a reason for hiding this comment

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

probably a map (as is done here) is better, more in line with expectations

@@ -184,6 +184,93 @@ function generateError(source, { errorInfo, messageArgs } = {}) {
return error;
}

function extractValueMetadata(valueNode) {

// TODO: should we flag anything we can't resolve , such as expressions, as type: 'unresolved' instead of undefined?
Copy link

Choose a reason for hiding this comment

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

that would probably be more consistent with the way wire decorator value metadata works, either way we do it, it's just best to keep it consistent types wise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What i'm currently doing is not collecting value metadata for expressions at all, since we cannot resolve their value; However, the absence of a default value on the static property is captured as undefined.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Looks good, a few minor questions.

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: fdbc119 | Target commit: aa1981b

lwc-engine-benchmark

table-append-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table/append/1k duration 156.50 (±5.80 ms) 155.45 (±3.40 ms) -1.1ms (0.7%) 👌
table-clear-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table/clear/1k duration 6.20 (±0.40 ms) 6.60 (±0.50 ms) +0.4ms (6.5%) 👎
table-create-10k metric base(fdbc119) target(aa1981b) trend
benchmark-table/create/10k duration 920.30 (±7.90 ms) 932.70 (±7.60 ms) +12.4ms (1.3%) 👎
table-create-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table/create/1k duration 119.35 (±2.00 ms) 118.25 (±3.15 ms) -1.1ms (0.9%) 👌
table-update-10th-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table/update-10th/1k duration 79.65 (±2.00 ms) 78.85 (±3.15 ms) -0.8ms (1.0%) 👌
tablecmp-append-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-component/append/1k duration 264.65 (±6.65 ms) 264.65 (±5.85 ms) 0.0ms (0.0%) 👌
tablecmp-clear-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-component/clear/1k duration 12.50 (±1.25 ms) 12.65 (±2.20 ms) +0.2ms (1.2%) 👌
tablecmp-create-10k metric base(fdbc119) target(aa1981b) trend
benchmark-table-component/create/10k duration 1819.35 (±13.35 ms) 1836.35 (±16.05 ms) +17.0ms (0.9%) 👎
tablecmp-create-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-component/create/1k duration 213.00 (±5.60 ms) 213.35 (±6.15 ms) +0.3ms (0.2%) 👌
tablecmp-update-10th-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-component/update-10th/1k duration 75.80 (±5.10 ms) 72.10 (±4.40 ms) -3.7ms (4.9%) 👌
wc-append-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-wc/append/1k duration 290.45 (±11.70 ms) 296.65 (±13.05 ms) +6.2ms (2.1%) 👌
wc-clear-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-wc/clear/1k duration 25.25 (±2.15 ms) 24.50 (±2.55 ms) -0.8ms (3.0%) 👌
wc-create-10k metric base(fdbc119) target(aa1981b) trend
benchmark-table-wc/create/10k duration 4469.90 (±36.75 ms) 4510.90 (±28.65 ms) +41.0ms (0.9%) 👎
wc-create-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-wc/create/1k duration 272.45 (±4.35 ms) 264.80 (±6.20 ms) -7.6ms (2.8%) 👍
wc-update-10th-1k metric base(fdbc119) target(aa1981b) trend
benchmark-table-wc/update-10th/1k duration 81.30 (±6.85 ms) 78.85 (±6.50 ms) -2.5ms (3.0%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: fdbc119 | Target commit: 8b0cf62

lwc-engine-benchmark

table-append-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table/append/1k duration 156.50 (±5.80 ms) 155.35 (±4.05 ms) -1.2ms (0.7%) 👌
table-clear-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table/clear/1k duration 6.20 (±0.40 ms) 6.55 (±0.45 ms) +0.3ms (5.6%) 👌
table-create-10k metric base(fdbc119) target(8b0cf62) trend
benchmark-table/create/10k duration 920.30 (±7.90 ms) 930.60 (±6.35 ms) +10.3ms (1.1%) 👎
table-create-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table/create/1k duration 119.35 (±2.00 ms) 120.00 (±3.00 ms) +0.7ms (0.5%) 👌
table-update-10th-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table/update-10th/1k duration 79.65 (±2.00 ms) 78.75 (±1.90 ms) -0.9ms (1.1%) 👌
tablecmp-append-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-component/append/1k duration 264.65 (±6.65 ms) 262.60 (±6.10 ms) -2.0ms (0.8%) 👌
tablecmp-clear-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-component/clear/1k duration 12.50 (±1.25 ms) 14.15 (±1.65 ms) +1.6ms (13.2%) 👎
tablecmp-create-10k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-component/create/10k duration 1819.35 (±13.35 ms) 1799.10 (±15.80 ms) -20.3ms (1.1%) 👍
tablecmp-create-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-component/create/1k duration 213.00 (±5.60 ms) 215.70 (±5.40 ms) +2.7ms (1.3%) 👌
tablecmp-update-10th-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-component/update-10th/1k duration 75.80 (±5.10 ms) 72.85 (±3.15 ms) -3.0ms (3.9%) 👌
wc-append-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-wc/append/1k duration 290.45 (±11.70 ms) 296.20 (±10.55 ms) +5.7ms (2.0%) 👌
wc-clear-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-wc/clear/1k duration 25.25 (±2.15 ms) 23.55 (±2.65 ms) -1.7ms (6.7%) 👍
wc-create-10k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-wc/create/10k duration 4469.90 (±36.75 ms) 4470.30 (±28.40 ms) +0.4ms (0.0%) 👌
wc-create-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-wc/create/1k duration 272.45 (±4.35 ms) 265.05 (±6.70 ms) -7.4ms (2.7%) 👍
wc-update-10th-1k metric base(fdbc119) target(8b0cf62) trend
benchmark-table-wc/update-10th/1k duration 81.30 (±6.85 ms) 79.85 (±6.50 ms) -1.5ms (1.8%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 3c921db | Target commit: 128a380

lwc-engine-benchmark

table-append-1k metric base(3c921db) target(128a380) trend
benchmark-table/append/1k duration 157.00 (±4.00 ms) 157.35 (±6.70 ms) +0.3ms (0.2%) 👌
table-clear-1k metric base(3c921db) target(128a380) trend
benchmark-table/clear/1k duration 6.40 (±0.50 ms) 6.60 (±0.45 ms) +0.2ms (3.1%) 👌
table-create-10k metric base(3c921db) target(128a380) trend
benchmark-table/create/10k duration 926.40 (±10.15 ms) 916.55 (±8.70 ms) -9.9ms (1.1%) 👍
table-create-1k metric base(3c921db) target(128a380) trend
benchmark-table/create/1k duration 121.20 (±2.70 ms) 120.00 (±3.20 ms) -1.2ms (1.0%) 👌
table-update-10th-1k metric base(3c921db) target(128a380) trend
benchmark-table/update-10th/1k duration 89.25 (±2.75 ms) 90.15 (±1.20 ms) +0.9ms (1.0%) 👎
tablecmp-append-1k metric base(3c921db) target(128a380) trend
benchmark-table-component/append/1k duration 263.30 (±6.20 ms) 261.75 (±6.45 ms) -1.5ms (0.6%) 👌
tablecmp-clear-1k metric base(3c921db) target(128a380) trend
benchmark-table-component/clear/1k duration 12.50 (±1.35 ms) 12.10 (±1.85 ms) -0.4ms (3.2%) 👌
tablecmp-create-10k metric base(3c921db) target(128a380) trend
benchmark-table-component/create/10k duration 1807.75 (±14.60 ms) 1831.40 (±16.20 ms) +23.7ms (1.3%) 👎
tablecmp-create-1k metric base(3c921db) target(128a380) trend
benchmark-table-component/create/1k duration 215.75 (±4.10 ms) 213.75 (±4.60 ms) -2.0ms (0.9%) 👌
tablecmp-update-10th-1k metric base(3c921db) target(128a380) trend
benchmark-table-component/update-10th/1k duration 76.15 (±6.30 ms) 76.45 (±6.70 ms) +0.3ms (0.4%) 👌
wc-append-1k metric base(3c921db) target(128a380) trend
benchmark-table-wc/append/1k duration 287.05 (±9.95 ms) 292.30 (±12.95 ms) +5.3ms (1.8%) 👌
wc-clear-1k metric base(3c921db) target(128a380) trend
benchmark-table-wc/clear/1k duration 24.65 (±3.30 ms) 25.85 (±2.65 ms) +1.2ms (4.9%) 👌
wc-create-10k metric base(3c921db) target(128a380) trend
benchmark-table-wc/create/10k duration 4495.40 (±35.25 ms) 4487.75 (±32.70 ms) -7.6ms (0.2%) 👌
wc-create-1k metric base(3c921db) target(128a380) trend
benchmark-table-wc/create/1k duration 269.50 (±4.60 ms) 266.35 (±7.00 ms) -3.1ms (1.2%) 👌
wc-update-10th-1k metric base(3c921db) target(128a380) trend
benchmark-table-wc/update-10th/1k duration 76.25 (±6.50 ms) 80.85 (±4.95 ms) +4.6ms (6.0%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 738956f | Target commit: 473f615

lwc-engine-benchmark

table-append-1k metric base(738956f) target(473f615) trend
benchmark-table/append/1k duration 152.05 (±4.65 ms) 156.70 (±4.05 ms) +4.6ms (3.1%) 👎
table-clear-1k metric base(738956f) target(473f615) trend
benchmark-table/clear/1k duration 6.25 (±0.40 ms) 6.65 (±0.35 ms) +0.4ms (6.4%) 👎
table-create-10k metric base(738956f) target(473f615) trend
benchmark-table/create/10k duration 920.70 (±6.85 ms) 922.15 (±7.90 ms) +1.5ms (0.2%) 👌
table-create-1k metric base(738956f) target(473f615) trend
benchmark-table/create/1k duration 121.45 (±2.95 ms) 119.70 (±2.95 ms) -1.8ms (1.4%) 👍
table-update-10th-1k metric base(738956f) target(473f615) trend
benchmark-table/update-10th/1k duration 79.90 (±1.80 ms) 78.95 (±2.90 ms) -1.0ms (1.2%) 👌
tablecmp-append-1k metric base(738956f) target(473f615) trend
benchmark-table-component/append/1k duration 263.05 (±8.20 ms) 262.85 (±6.60 ms) -0.2ms (0.1%) 👌
tablecmp-clear-1k metric base(738956f) target(473f615) trend
benchmark-table-component/clear/1k duration 13.10 (±1.75 ms) 12.30 (±1.85 ms) -0.8ms (6.1%) 👌
tablecmp-create-10k metric base(738956f) target(473f615) trend
benchmark-table-component/create/10k duration 1821.80 (±16.10 ms) 1848.00 (±14.45 ms) +26.2ms (1.4%) 👎
tablecmp-create-1k metric base(738956f) target(473f615) trend
benchmark-table-component/create/1k duration 212.95 (±4.90 ms) 212.70 (±7.00 ms) -0.3ms (0.1%) 👌
tablecmp-update-10th-1k metric base(738956f) target(473f615) trend
benchmark-table-component/update-10th/1k duration 72.40 (±5.20 ms) 74.35 (±5.50 ms) +1.9ms (2.7%) 👌
wc-append-1k metric base(738956f) target(473f615) trend
benchmark-table-wc/append/1k duration 270.70 (±11.40 ms) 262.95 (±12.30 ms) -7.8ms (2.9%) 👍
wc-clear-1k metric base(738956f) target(473f615) trend
benchmark-table-wc/clear/1k duration 24.55 (±2.65 ms) 24.45 (±3.00 ms) -0.1ms (0.4%) 👌
wc-create-10k metric base(738956f) target(473f615) trend
benchmark-table-wc/create/10k duration 1938.65 (±64.20 ms) 1947.95 (±46.20 ms) +9.3ms (0.5%) 👌
wc-create-1k metric base(738956f) target(473f615) trend
benchmark-table-wc/create/1k duration 233.80 (±5.85 ms) 234.55 (±5.30 ms) +0.8ms (0.3%) 👌
wc-update-10th-1k metric base(738956f) target(473f615) trend
benchmark-table-wc/update-10th/1k duration 72.35 (±5.90 ms) 73.60 (±5.45 ms) +1.3ms (1.7%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 738956f | Target commit: aaa86e1

lwc-engine-benchmark

table-append-1k metric base(738956f) target(aaa86e1) trend
benchmark-table/append/1k duration 152.05 (±4.65 ms) 155.85 (±4.15 ms) +3.8ms (2.5%) 👎
table-clear-1k metric base(738956f) target(aaa86e1) trend
benchmark-table/clear/1k duration 6.25 (±0.40 ms) 6.80 (±0.60 ms) +0.5ms (8.8%) 👎
table-create-10k metric base(738956f) target(aaa86e1) trend
benchmark-table/create/10k duration 920.70 (±6.85 ms) 924.65 (±7.05 ms) +3.9ms (0.4%) 👌
table-create-1k metric base(738956f) target(aaa86e1) trend
benchmark-table/create/1k duration 121.45 (±2.95 ms) 118.35 (±2.70 ms) -3.1ms (2.6%) 👍
table-update-10th-1k metric base(738956f) target(aaa86e1) trend
benchmark-table/update-10th/1k duration 79.90 (±1.80 ms) 89.45 (±1.75 ms) +9.5ms (12.0%) 👎
tablecmp-append-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-component/append/1k duration 263.05 (±8.20 ms) 258.95 (±5.55 ms) -4.1ms (1.6%) 👌
tablecmp-clear-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-component/clear/1k duration 13.10 (±1.75 ms) 12.25 (±2.00 ms) -0.8ms (6.5%) 👌
tablecmp-create-10k metric base(738956f) target(aaa86e1) trend
benchmark-table-component/create/10k duration 1821.80 (±16.10 ms) 1805.10 (±14.50 ms) -16.7ms (0.9%) 👍
tablecmp-create-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-component/create/1k duration 212.95 (±4.90 ms) 212.40 (±5.80 ms) -0.6ms (0.3%) 👌
tablecmp-update-10th-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-component/update-10th/1k duration 72.40 (±5.20 ms) 72.15 (±4.50 ms) -0.3ms (0.3%) 👌
wc-append-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-wc/append/1k duration 270.70 (±11.40 ms) 256.25 (±17.75 ms) -14.4ms (5.3%) 👍
wc-clear-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-wc/clear/1k duration 24.55 (±2.65 ms) 25.20 (±2.75 ms) +0.6ms (2.6%) 👌
wc-create-10k metric base(738956f) target(aaa86e1) trend
benchmark-table-wc/create/10k duration 1938.65 (±64.20 ms) 1933.05 (±38.80 ms) -5.6ms (0.3%) 👌
wc-create-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-wc/create/1k duration 233.80 (±5.85 ms) 235.30 (±5.35 ms) +1.5ms (0.6%) 👌
wc-update-10th-1k metric base(738956f) target(aaa86e1) trend
benchmark-table-wc/update-10th/1k duration 72.35 (±5.90 ms) 76.65 (±6.05 ms) +4.3ms (5.9%) 👎

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 738956f | Target commit: c022f37

lwc-engine-benchmark

table-append-1k metric base(738956f) target(c022f37) trend
benchmark-table/append/1k duration 152.05 (±4.65 ms) 152.70 (±4.70 ms) +0.6ms (0.4%) 👌
table-clear-1k metric base(738956f) target(c022f37) trend
benchmark-table/clear/1k duration 6.25 (±0.40 ms) 6.35 (±0.35 ms) +0.1ms (1.6%) 👌
table-create-10k metric base(738956f) target(c022f37) trend
benchmark-table/create/10k duration 920.70 (±6.85 ms) 913.10 (±5.90 ms) -7.6ms (0.8%) 👍
table-create-1k metric base(738956f) target(c022f37) trend
benchmark-table/create/1k duration 121.45 (±2.95 ms) 118.35 (±3.05 ms) -3.1ms (2.6%) 👍
table-update-10th-1k metric base(738956f) target(c022f37) trend
benchmark-table/update-10th/1k duration 79.90 (±1.80 ms) 78.90 (±2.10 ms) -1.0ms (1.3%) 👌
tablecmp-append-1k metric base(738956f) target(c022f37) trend
benchmark-table-component/append/1k duration 263.05 (±8.20 ms) 259.70 (±9.15 ms) -3.3ms (1.3%) 👌
tablecmp-clear-1k metric base(738956f) target(c022f37) trend
benchmark-table-component/clear/1k duration 13.10 (±1.75 ms) 12.25 (±1.85 ms) -0.8ms (6.5%) 👌
tablecmp-create-10k metric base(738956f) target(c022f37) trend
benchmark-table-component/create/10k duration 1821.80 (±16.10 ms) 1796.25 (±11.35 ms) -25.5ms (1.4%) 👍
tablecmp-create-1k metric base(738956f) target(c022f37) trend
benchmark-table-component/create/1k duration 212.95 (±4.90 ms) 213.75 (±3.65 ms) +0.8ms (0.4%) 👌
tablecmp-update-10th-1k metric base(738956f) target(c022f37) trend
benchmark-table-component/update-10th/1k duration 72.40 (±5.20 ms) 70.60 (±5.05 ms) -1.8ms (2.5%) 👌
wc-append-1k metric base(738956f) target(c022f37) trend
benchmark-table-wc/append/1k duration 270.70 (±11.40 ms) 262.45 (±15.10 ms) -8.3ms (3.0%) 👍
wc-clear-1k metric base(738956f) target(c022f37) trend
benchmark-table-wc/clear/1k duration 24.55 (±2.65 ms) 24.00 (±2.85 ms) -0.6ms (2.2%) 👌
wc-create-10k metric base(738956f) target(c022f37) trend
benchmark-table-wc/create/10k duration 1938.65 (±64.20 ms) 1947.75 (±45.25 ms) +9.1ms (0.5%) 👌
wc-create-1k metric base(738956f) target(c022f37) trend
benchmark-table-wc/create/1k duration 233.80 (±5.85 ms) 233.20 (±6.35 ms) -0.6ms (0.3%) 👌
wc-update-10th-1k metric base(738956f) target(c022f37) trend
benchmark-table-wc/update-10th/1k duration 72.35 (±5.90 ms) 73.75 (±5.15 ms) +1.4ms (1.9%) 👌

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 738956f | Target commit: fcdb8e5

lwc-engine-benchmark

table-append-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table/append/1k duration 152.05 (±4.65 ms) 159.55 (±6.45 ms) +7.5ms (4.9%) 👎
table-clear-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table/clear/1k duration 6.25 (±0.40 ms) 6.30 (±0.45 ms) +0.0ms (0.8%) 👌
table-create-10k metric base(738956f) target(fcdb8e5) trend
benchmark-table/create/10k duration 920.70 (±6.85 ms) 910.05 (±6.50 ms) -10.7ms (1.2%) 👍
table-create-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table/create/1k duration 121.45 (±2.95 ms) 118.65 (±2.80 ms) -2.8ms (2.3%) 👍
table-update-10th-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table/update-10th/1k duration 79.90 (±1.80 ms) 89.30 (±2.65 ms) +9.4ms (11.8%) 👎
tablecmp-append-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-component/append/1k duration 263.05 (±8.20 ms) 261.55 (±7.25 ms) -1.5ms (0.6%) 👌
tablecmp-clear-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-component/clear/1k duration 13.10 (±1.75 ms) 12.00 (±1.35 ms) -1.1ms (8.4%) 👌
tablecmp-create-10k metric base(738956f) target(fcdb8e5) trend
benchmark-table-component/create/10k duration 1821.80 (±16.10 ms) 1792.05 (±14.20 ms) -29.7ms (1.6%) 👍
tablecmp-create-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-component/create/1k duration 212.95 (±4.90 ms) 216.80 (±6.90 ms) +3.9ms (1.8%) 👎
tablecmp-update-10th-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-component/update-10th/1k duration 72.40 (±5.20 ms) 73.25 (±5.20 ms) +0.8ms (1.2%) 👌
wc-append-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-wc/append/1k duration 270.70 (±11.40 ms) 271.85 (±7.40 ms) +1.2ms (0.4%) 👌
wc-clear-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-wc/clear/1k duration 24.55 (±2.65 ms) 22.45 (±1.90 ms) -2.1ms (8.6%) 👍
wc-create-10k metric base(738956f) target(fcdb8e5) trend
benchmark-table-wc/create/10k duration 1938.65 (±64.20 ms) 1992.60 (±44.75 ms) +53.9ms (2.8%) 👎
wc-create-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-wc/create/1k duration 233.80 (±5.85 ms) 235.55 (±5.40 ms) +1.8ms (0.7%) 👌
wc-update-10th-1k metric base(738956f) target(fcdb8e5) trend
benchmark-table-wc/update-10th/1k duration 72.35 (±5.90 ms) 75.05 (±6.55 ms) +2.7ms (3.7%) 👎

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 9c1da4d | Target commit: 3f8876b

lwc-engine-benchmark

table-append-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table/append/1k duration 157.70 (±3.85 ms) 159.15 (±5.05 ms) +1.4ms (0.9%) 👌
table-clear-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table/clear/1k duration 7.00 (±0.55 ms) 7.05 (±0.55 ms) +0.0ms (0.7%) 👌
table-create-10k metric base(9c1da4d) target(3f8876b) trend
benchmark-table/create/10k duration 966.05 (±7.10 ms) 944.60 (±8.35 ms) -21.4ms (2.2%) 👍
table-create-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table/create/1k duration 121.90 (±2.65 ms) 120.20 (±3.85 ms) -1.7ms (1.4%) 👌
table-update-10th-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table/update-10th/1k duration 82.30 (±3.80 ms) 79.70 (±2.60 ms) -2.6ms (3.2%) 👍
tablecmp-append-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-component/append/1k duration 271.00 (±5.50 ms) 271.55 (±5.80 ms) +0.5ms (0.2%) 👌
tablecmp-clear-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-component/clear/1k duration 12.85 (±2.00 ms) 13.70 (±1.70 ms) +0.8ms (6.6%) 👌
tablecmp-create-10k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-component/create/10k duration 1850.90 (±13.95 ms) 1856.40 (±16.55 ms) +5.5ms (0.3%) 👎
tablecmp-create-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-component/create/1k duration 217.50 (±5.30 ms) 218.60 (±4.50 ms) +1.1ms (0.5%) 👌
tablecmp-update-10th-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-component/update-10th/1k duration 75.05 (±4.80 ms) 73.85 (±5.10 ms) -1.2ms (1.6%) 👌
wc-append-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-wc/append/1k duration 264.00 (±16.75 ms) 271.30 (±12.30 ms) +7.3ms (2.8%) 👌
wc-clear-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-wc/clear/1k duration 24.40 (±2.50 ms) 24.70 (±2.25 ms) +0.3ms (1.2%) 👌
wc-create-10k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-wc/create/10k duration 1933.15 (±40.60 ms) 1953.00 (±62.65 ms) +19.8ms (1.0%) 👎
wc-create-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-wc/create/1k duration 232.80 (±5.05 ms) 236.55 (±5.50 ms) +3.8ms (1.6%) 👎
wc-update-10th-1k metric base(9c1da4d) target(3f8876b) trend
benchmark-table-wc/update-10th/1k duration 77.35 (±5.65 ms) 75.50 (±5.55 ms) -1.8ms (2.4%) 👌

@apapko apapko merged commit c64e4b3 into master Nov 15, 2018
@apapko apapko deleted the apapko/meta-prop-value branch November 15, 2018 19:07
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.

1 participant