Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@augustjk
Copy link
Member

Fixes #4289

While swc did fix this upstream it's not released yet and I don't know how long it takes for that to make it into Next.js's version of swc.

It seems like a tiny lift for us to add this to make it work now.

@changeset-bot
Copy link

changeset-bot bot commented Oct 20, 2023

πŸ¦‹ Changeset detected

Latest commit: 0153dd0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lit-labs/ssr-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@AndrewJakubowicz AndrewJakubowicz left a comment

Choose a reason for hiding this comment

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

Nice!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2023

πŸ“Š Tachometer Benchmark Results

Summary

nop-update

  • this-change, tip-of-tree, previous-release: unsure πŸ” -7% - +5% (-1.42ms - +1.01ms)
    this-change vs tip-of-tree

render

  • this-change: 76.55ms - 79.44ms
  • this-change, tip-of-tree, previous-release: unsure πŸ” -3% - +8% (-1.07ms - +2.74ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -3% - +3% (-1.63ms - +1.86ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -1% - +5% (-0.55ms - +2.52ms)
    this-change vs tip-of-tree

update

  • this-change: 872.31ms - 890.40ms
  • this-change, tip-of-tree, previous-release: unsure πŸ” -7% - +0% (-5.80ms - +0.42ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -2% - +3% (-2.98ms - +4.07ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -0% - +2% (-3.38ms - +21.66ms)
    this-change vs tip-of-tree

update-reflect

  • this-change: 851.40ms - 867.99ms
  • this-change, tip-of-tree, previous-release: unsure πŸ” -1% - +1% (-13.36ms - +10.04ms)
    this-change vs tip-of-tree

Results

this-change

render

VersionAvg timevs
76.55ms - 79.44ms-

update

VersionAvg timevs
872.31ms - 890.40ms-

update-reflect

VersionAvg timevs
851.40ms - 867.99ms-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
33.97ms - 36.36ms-unsure πŸ”
-3% - +8%
-1.07ms - +2.74ms
unsure πŸ”
-0% - +11%
+0.04ms - +3.75ms
tip-of-tree
tip-of-tree
32.85ms - 35.81msunsure πŸ”
-8% - +3%
-2.74ms - +1.07ms
-unsure πŸ”
-3% - +9%
-0.99ms - +3.11ms
previous-release
previous-release
31.85ms - 34.69msfaster βœ”
0% - 11%
0.04ms - 3.75ms
unsure πŸ”
-9% - +3%
-3.11ms - +0.99ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
72.37ms - 76.65ms-unsure πŸ”
-7% - +0%
-5.80ms - +0.42ms
unsure πŸ”
-9% - +0%
-7.39ms - +0.40ms
tip-of-tree
tip-of-tree
74.94ms - 79.45msunsure πŸ”
-1% - +8%
-0.42ms - +5.80ms
-unsure πŸ”
-6% - +4%
-4.77ms - +3.15ms
previous-release
previous-release
74.75ms - 81.26msunsure πŸ”
-1% - +10%
-0.40ms - +7.39ms
unsure πŸ”
-4% - +6%
-3.15ms - +4.77ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
19.88ms - 21.69ms-unsure πŸ”
-7% - +5%
-1.42ms - +1.01ms
unsure πŸ”
-8% - +5%
-1.76ms - +1.02ms
tip-of-tree
tip-of-tree
20.18ms - 21.80msunsure πŸ”
-5% - +7%
-1.01ms - +1.42ms
-unsure πŸ”
-7% - +6%
-1.50ms - +1.17ms
previous-release
previous-release
20.09ms - 22.22msunsure πŸ”
-5% - +9%
-1.02ms - +1.76ms
unsure πŸ”
-6% - +7%
-1.17ms - +1.50ms
-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
59.42ms - 61.88ms-unsure πŸ”
-3% - +3%
-1.63ms - +1.86ms
unsure πŸ”
-4% - +5%
-2.54ms - +2.82ms
tip-of-tree
tip-of-tree
59.30ms - 61.78msunsure πŸ”
-3% - +3%
-1.86ms - +1.63ms
-unsure πŸ”
-4% - +4%
-2.66ms - +2.72ms
previous-release
previous-release
58.12ms - 62.90msunsure πŸ”
-5% - +4%
-2.82ms - +2.54ms
unsure πŸ”
-4% - +4%
-2.72ms - +2.66ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
136.15ms - 141.63ms-unsure πŸ”
-2% - +3%
-2.98ms - +4.07ms
unsure πŸ”
-1% - +4%
-1.52ms - +5.85ms
tip-of-tree
tip-of-tree
136.12ms - 140.56msunsure πŸ”
-3% - +2%
-4.07ms - +2.98ms
-unsure πŸ”
-1% - +4%
-1.70ms - +4.94ms
previous-release
previous-release
134.26ms - 139.19msunsure πŸ”
-4% - +1%
-5.85ms - +1.52ms
unsure πŸ”
-4% - +1%
-4.94ms - +1.70ms
-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
54.28ms - 56.50ms-unsure πŸ”
-1% - +5%
-0.55ms - +2.52ms
unsure πŸ”
-4% - +2%
-1.99ms - +1.07ms
tip-of-tree
tip-of-tree
53.34ms - 55.47msunsure πŸ”
-5% - +1%
-2.52ms - +0.55ms
-unsure πŸ”
-5% - +0%
-2.94ms - +0.06ms
previous-release
previous-release
54.79ms - 56.91msunsure πŸ”
-2% - +4%
-1.07ms - +1.99ms
unsure πŸ”
-0% - +5%
-0.06ms - +2.94ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
914.49ms - 933.28ms-unsure πŸ”
-0% - +2%
-3.38ms - +21.66ms
unsure πŸ”
-2% - +1%
-16.71ms - +11.71ms
tip-of-tree
tip-of-tree
906.48ms - 923.02msunsure πŸ”
-2% - +0%
-21.66ms - +3.38ms
-unsure πŸ”
-3% - +0%
-25.14ms - +1.85ms
previous-release
previous-release
915.72ms - 937.06msunsure πŸ”
-1% - +2%
-11.71ms - +16.71ms
unsure πŸ”
-0% - +3%
-1.85ms - +25.14ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
898.66ms - 914.97ms-unsure πŸ”
-1% - +1%
-13.36ms - +10.04ms
unsure πŸ”
-1% - +1%
-12.02ms - +12.48ms
tip-of-tree
tip-of-tree
900.09ms - 916.86msunsure πŸ”
-1% - +1%
-10.04ms - +13.36ms
-unsure πŸ”
-1% - +2%
-10.52ms - +14.30ms
previous-release
previous-release
897.44ms - 915.73msunsure πŸ”
-1% - +1%
-12.48ms - +12.02ms
unsure πŸ”
-2% - +1%
-14.30ms - +10.52ms
-

tachometer-reporter-action v2 for Benchmarks

@github-actions
Copy link
Contributor

The size of lit-html.js and lit-core.min.js are as expected.

@augustjk augustjk merged commit 2618273 into main Oct 20, 2023
@augustjk augustjk deleted the ssr-client-hydrate branch October 20, 2023 20:38
This was referenced Oct 27, 2023
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.

[labs/ssr-client] hydrate-lit-html can break when compiled with SWC

3 participants