Skip to content

Consistently propagate intersectionState in relations #52392

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

Merged
merged 7 commits into from
Feb 2, 2023
Merged

Conversation

ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Jan 24, 2023

Fixes #52252.
Fixes #52397.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jan 24, 2023
@ahejlsberg
Copy link
Member Author

@typescript-bot test this
@typescript-bot user test this inline
@typescript-bot run dt
@typescript-bot perf test faster
@typescript-bot test top100

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 24, 2023

Heya @ahejlsberg, I've started to run the extended test suite on this PR at 2c938a4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 24, 2023

Heya @ahejlsberg, I've started to run the abridged perf test suite on this PR at 2c938a4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 24, 2023

Heya @ahejlsberg, I've started to run the diff-based user code test suite on this PR at 2c938a4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 24, 2023

Heya @ahejlsberg, I've started to run the diff-based top-repos suite on this PR at 2c938a4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 24, 2023

Heya @ahejlsberg, I've started to run the parallelized Definitely Typed test suite on this PR at 2c938a4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the user test suite comparing main and refs/pull/52392/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Heya @ahejlsberg, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg
The results of the perf run you requested are in!

Here they are:

Comparison Report - main..52392

Metric main 52392 Delta Best Worst
Angular - node (v16.17.1, x64)
Memory used 359,056k (± 0.01%) 359,014k (± 0.01%) -41k (- 0.01%) 358,982k 359,039k
Parse Time 4.19s (± 0.44%) 4.18s (± 0.41%) -0.01s (- 0.20%) 4.16s 4.21s
Bind Time 1.22s (± 0.33%) 1.22s (± 0.45%) +0.00s (+ 0.27%) 1.22s 1.23s
Check Time 9.55s (± 0.18%) 9.54s (± 0.29%) -0.01s (- 0.16%) 9.49s 9.56s
Emit Time 8.08s (± 0.48%) 8.11s (± 0.20%) +0.03s (+ 0.39%) 8.09s 8.13s
Total Time 23.04s (± 0.16%) 23.05s (± 0.09%) +0.01s (+ 0.04%) 23.01s 23.07s
Compiler-Unions - node (v16.17.1, x64)
Memory used 194,251k (± 0.03%) 194,266k (± 0.03%) +15k (+ 0.01%) 194,194k 194,348k
Parse Time 1.81s (± 0.45%) 1.82s (± 0.45%) +0.01s (+ 0.55%) 1.81s 1.83s
Bind Time 0.84s (± 1.06%) 0.84s (± 0.99%) +0.01s (+ 0.60%) 0.84s 0.86s
Check Time 10.37s (± 0.36%) 10.37s (± 0.50%) +0.00s (+ 0.02%) 10.32s 10.46s
Emit Time 3.06s (± 0.77%) 3.07s (± 0.76%) +0.01s (+ 0.22%) 3.04s 3.10s
Total Time 16.08s (± 0.19%) 16.10s (± 0.22%) +0.02s (+ 0.12%) 16.07s 16.16s
Monaco - node (v16.17.1, x64)
Memory used 343,217k (± 0.01%) 343,252k (± 0.01%) +36k (+ 0.01%) 343,227k 343,277k
Parse Time 3.14s (± 0.82%) 3.18s (± 1.87%) +0.05s (+ 1.49%) 3.12s 3.25s
Bind Time 1.11s (± 0.89%) 1.11s (± 0.46%) +0.00s (+ 0.45%) 1.11s 1.12s
Check Time 7.89s (± 0.25%) 7.92s (± 0.39%) +0.03s (+ 0.38%) 7.88s 7.96s
Emit Time 4.57s (± 0.39%) 4.54s (± 0.36%) -0.03s (- 0.62%) 4.51s 4.55s
Total Time 16.70s (± 0.24%) 16.75s (± 0.27%) +0.05s (+ 0.33%) 16.70s 16.81s
TFS - node (v16.17.1, x64)
Memory used 299,713k (± 0.01%) 299,706k (± 0.00%) -7k (- 0.00%) 299,685k 299,725k
Parse Time 2.47s (± 1.40%) 2.49s (± 2.22%) +0.02s (+ 0.88%) 2.43s 2.56s
Bind Time 1.25s (± 0.33%) 1.26s (± 0.65%) +0.00s (+ 0.40%) 1.25s 1.27s
Check Time 7.53s (± 0.50%) 7.52s (± 0.36%) -0.01s (- 0.09%) 7.48s 7.56s
Emit Time 4.24s (± 0.79%) 4.23s (± 0.50%) -0.01s (- 0.24%) 4.20s 4.26s
Total Time 15.49s (± 0.38%) 15.50s (± 0.42%) +0.01s (+ 0.05%) 15.42s 15.56s
material-ui - node (v16.17.1, x64)
Memory used 476,133k (± 0.02%) 476,116k (± 0.01%) -17k (- 0.00%) 476,088k 476,190k
Parse Time 3.72s (± 0.40%) 3.72s (± 0.38%) +0.00s (+ 0.09%) 3.70s 3.74s
Bind Time 1.02s (± 0.00%) 1.02s (± 0.00%) 0.00s ( 0.00%) 1.02s 1.02s
Check Time 18.05s (± 0.13%) 18.07s (± 0.22%) +0.03s (+ 0.17%) 18.02s 18.13s
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) 0.00s ( NaN%) 0.00s 0.00s
Total Time 22.78s (± 0.14%) 22.82s (± 0.14%) +0.04s (+ 0.17%) 22.77s 22.84s
xstate - node (v16.17.1, x64)
Memory used 546,280k (± 0.03%) 558,623k (± 0.02%) +12,344k (+ 2.26%) 558,545k 558,798k
Parse Time 4.76s (± 0.57%) 4.78s (± 0.36%) +0.02s (+ 0.42%) 4.76s 4.80s
Bind Time 1.81s (± 4.15%) 1.84s (± 0.66%) +0.03s (+ 1.75%) 1.83s 1.86s
Check Time 2.98s (± 2.58%) 3.32s (± 0.36%) +0.35s (+11.58%) 3.31s 3.34s
Emit Time 0.09s (± 4.45%) 0.09s (± 0.00%) -0.00s (- 1.82%) 0.09s 0.09s
Total Time 9.65s (± 0.47%) 10.04s (± 0.24%) +0.39s (+ 4.01%) 10.01s 10.08s
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current 52392 6
Baseline main 6

Developer Information:

Download Benchmark

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the top-repos suite comparing main and refs/pull/52392/merge:

Everything looks good!

@RyanCavanaugh
Copy link
Member

I suspect this might fix #52397?

@ahejlsberg
Copy link
Member Author

I suspect this might fix #52397?

It does indeed.

@ahejlsberg
Copy link
Member Author

@typescript-bot test this
@typescript-bot user test this inline
@typescript-bot run dt
@typescript-bot perf test faster
@typescript-bot test top100

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 25, 2023

Heya @ahejlsberg, I've started to run the diff-based user code test suite on this PR at 02269e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 25, 2023

Heya @ahejlsberg, I've started to run the parallelized Definitely Typed test suite on this PR at 02269e4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 25, 2023

Heya @ahejlsberg, I've started to run the diff-based top-repos suite on this PR at 02269e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 25, 2023

Heya @ahejlsberg, I've started to run the abridged perf test suite on this PR at 02269e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 25, 2023

Heya @ahejlsberg, I've started to run the extended test suite on this PR at 02269e4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the user test suite comparing main and refs/pull/52392/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Heya @ahejlsberg, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg
The results of the perf run you requested are in!

Here they are:

Comparison Report - main..52392

Metric main 52392 Delta Best Worst
Angular - node (v16.17.1, x64)
Memory used 359,206k (± 0.01%) 359,184k (± 0.01%) -23k (- 0.01%) 359,154k 359,235k
Parse Time 4.17s (± 0.55%) 4.19s (± 0.32%) +0.02s (+ 0.44%) 4.17s 4.21s
Bind Time 1.22s (± 0.52%) 1.23s (± 0.42%) +0.01s (+ 0.55%) 1.22s 1.23s
Check Time 9.40s (± 0.35%) 9.44s (± 0.51%) +0.04s (+ 0.39%) 9.38s 9.50s
Emit Time 8.06s (± 0.65%) 8.09s (± 0.60%) +0.03s (+ 0.37%) 8.03s 8.17s
Total Time 22.85s (± 0.25%) 22.94s (± 0.43%) +0.09s (+ 0.38%) 22.81s 23.10s
Compiler-Unions - node (v16.17.1, x64)
Memory used 194,205k (± 0.04%) 193,874k (± 0.01%) -330k (- 0.17%) 193,835k 193,910k
Parse Time 1.80s (± 0.29%) 1.81s (± 0.54%) +0.01s (+ 0.28%) 1.80s 1.82s
Bind Time 0.85s (± 0.00%) 0.84s (± 1.24%) -0.01s (- 0.59%) 0.83s 0.86s
Check Time 10.36s (± 0.57%) 10.39s (± 0.60%) +0.03s (+ 0.32%) 10.34s 10.51s
Emit Time 3.06s (± 1.52%) 3.07s (± 0.48%) +0.01s (+ 0.27%) 3.05s 3.09s
Total Time 16.07s (± 0.52%) 16.12s (± 0.38%) +0.05s (+ 0.29%) 16.05s 16.23s
Monaco - node (v16.17.1, x64)
Memory used 343,261k (± 0.01%) 343,271k (± 0.01%) +10k (+ 0.00%) 343,230k 343,312k
Parse Time 3.15s (± 1.40%) 3.17s (± 0.88%) +0.02s (+ 0.74%) 3.14s 3.22s
Bind Time 1.11s (± 0.37%) 1.11s (± 0.75%) +0.01s (+ 0.60%) 1.11s 1.13s
Check Time 7.71s (± 0.07%) 7.75s (± 0.31%) +0.04s (+ 0.52%) 7.73s 7.80s
Emit Time 4.50s (± 0.77%) 4.54s (± 0.43%) +0.04s (+ 0.89%) 4.52s 4.57s
Total Time 16.48s (± 0.22%) 16.58s (± 0.26%) +0.11s (+ 0.65%) 16.55s 16.65s
TFS - node (v16.17.1, x64)
Memory used 299,768k (± 0.01%) 299,743k (± 0.00%) -25k (- 0.01%) 299,727k 299,760k
Parse Time 2.49s (± 1.47%) 2.47s (± 0.98%) -0.01s (- 0.60%) 2.43s 2.49s
Bind Time 1.26s (± 0.41%) 1.26s (± 0.60%) +0.00s (+ 0.13%) 1.25s 1.27s
Check Time 7.18s (± 0.20%) 7.21s (± 0.42%) +0.03s (+ 0.39%) 7.17s 7.25s
Emit Time 4.23s (± 0.83%) 4.22s (± 0.53%) -0.00s (- 0.04%) 4.20s 4.26s
Total Time 15.15s (± 0.30%) 15.16s (± 0.27%) +0.01s (+ 0.08%) 15.09s 15.21s
material-ui - node (v16.17.1, x64)
Memory used 476,092k (± 0.02%) 476,090k (± 0.01%) -3k (- 0.00%) 475,998k 476,164k
Parse Time 3.70s (± 0.33%) 3.72s (± 0.31%) +0.02s (+ 0.41%) 3.70s 3.73s
Bind Time 1.02s (± 0.74%) 1.03s (± 0.79%) +0.01s (+ 0.82%) 1.02s 1.04s
Check Time 18.06s (± 0.23%) 18.18s (± 0.41%) +0.12s (+ 0.65%) 18.10s 18.27s
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) 0.00s ( NaN%) 0.00s 0.00s
Total Time 22.78s (± 0.18%) 22.92s (± 0.32%) +0.14s (+ 0.61%) 22.85s 23.01s
xstate - node (v16.17.1, x64)
Memory used 546,227k (± 0.01%) 546,843k (± 0.04%) +616k (+ 0.11%) 546,633k 547,138k
Parse Time 4.75s (± 0.25%) 4.77s (± 0.37%) +0.03s (+ 0.56%) 4.75s 4.80s
Bind Time 1.81s (± 3.84%) 1.76s (± 5.75%) -0.05s (- 2.94%) 1.66s 1.87s
Check Time 3.00s (± 2.69%) 3.11s (± 3.48%) +0.11s (+ 3.73%) 3.00s 3.21s
Emit Time 0.09s (± 5.53%) 0.09s (± 0.00%) 🟩-0.00s (- 3.57%) 0.09s 0.09s
Total Time 9.65s (± 0.19%) 9.73s (± 0.26%) +0.09s (+ 0.92%) 9.71s 9.77s
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current 52392 6
Baseline main 6

Developer Information:

Download Benchmark

@ahejlsberg
Copy link
Member Author

@typescript-bot perf test faster

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2023

Heya @ahejlsberg, I've started to run the diff-based user code test suite on this PR at c930975. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2023

Heya @ahejlsberg, I've started to run the diff-based top-repos suite on this PR at c930975. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2023

Heya @ahejlsberg, I've started to run the extended test suite on this PR at c930975. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2023

Heya @ahejlsberg, I've started to run the abridged perf test suite on this PR at c930975. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the user test suite comparing main and refs/pull/52392/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Heya @ahejlsberg, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg
The results of the perf run you requested are in!

Here they are:

Comparison Report - main..52392

Metric main 52392 Delta Best Worst
Angular - node (v16.17.1, x64)
Memory used 359,204k (± 0.01%) 359,171k (± 0.00%) -34k (- 0.01%) 359,154k 359,189k
Parse Time 4.19s (± 0.36%) 4.19s (± 0.25%) 0.00s ( 0.00%) 4.18s 4.21s
Bind Time 1.22s (± 0.67%) 1.23s (± 0.42%) +0.00s (+ 0.27%) 1.22s 1.23s
Check Time 9.41s (± 0.59%) 9.44s (± 0.36%) +0.03s (+ 0.30%) 9.40s 9.49s
Emit Time 8.05s (± 0.43%) 8.07s (± 0.55%) +0.03s (+ 0.31%) 8.00s 8.12s
Total Time 22.87s (± 0.21%) 22.93s (± 0.29%) +0.06s (+ 0.26%) 22.87s 23.04s
Compiler-Unions - node (v16.17.1, x64)
Memory used 194,243k (± 0.04%) 194,502k (± 0.72%) +259k (+ 0.13%) 193,857k 197,371k
Parse Time 1.80s (± 0.45%) 1.81s (± 0.57%) +0.01s (+ 0.55%) 1.80s 1.83s
Bind Time 0.84s (± 0.61%) 0.85s (± 1.16%) +0.01s (+ 0.59%) 0.84s 0.86s
Check Time 10.39s (± 0.83%) 10.49s (± 0.67%) +0.10s (+ 0.96%) 10.38s 10.57s
Emit Time 3.09s (± 1.58%) 3.06s (± 0.95%) -0.03s (- 0.97%) 3.02s 3.10s
Total Time 16.12s (± 0.79%) 16.21s (± 0.56%) +0.09s (+ 0.53%) 16.09s 16.35s
Monaco - node (v16.17.1, x64)
Memory used 343,255k (± 0.01%) 343,268k (± 0.01%) +13k (+ 0.00%) 343,250k 343,316k
Parse Time 3.14s (± 0.96%) 3.20s (± 1.09%) +0.06s (+ 1.96%) 3.16s 3.25s
Bind Time 1.11s (± 0.94%) 1.11s (± 0.46%) -0.00s (- 0.15%) 1.11s 1.12s
Check Time 7.73s (± 0.21%) 7.73s (± 0.34%) +0.01s (+ 0.11%) 7.69s 7.77s
Emit Time 4.53s (± 0.46%) 4.51s (± 0.68%) -0.01s (- 0.26%) 4.48s 4.56s
Total Time 16.51s (± 0.30%) 16.57s (± 0.45%) +0.06s (+ 0.38%) 16.48s 16.65s
TFS - node (v16.17.1, x64)
Memory used 299,757k (± 0.01%) 299,750k (± 0.01%) -8k (- 0.00%) 299,736k 299,772k
Parse Time 2.47s (± 1.11%) 2.47s (± 1.11%) +0.00s (+ 0.14%) 2.45s 2.51s
Bind Time 1.25s (± 0.82%) 1.25s (± 0.67%) +0.00s (+ 0.13%) 1.24s 1.26s
Check Time 7.20s (± 0.50%) 7.18s (± 0.23%) -0.02s (- 0.25%) 7.16s 7.21s
Emit Time 4.23s (± 0.96%) 4.22s (± 0.46%) -0.01s (- 0.28%) 4.20s 4.25s
Total Time 15.15s (± 0.35%) 15.13s (± 0.39%) -0.03s (- 0.18%) 15.07s 15.24s
material-ui - node (v16.17.1, x64)
Memory used 476,077k (± 0.02%) 476,092k (± 0.01%) +15k (+ 0.00%) 476,052k 476,125k
Parse Time 3.73s (± 0.44%) 3.73s (± 0.28%) -0.00s (- 0.04%) 3.71s 3.74s
Bind Time 1.02s (± 0.53%) 1.02s (± 0.80%) -0.00s (- 0.16%) 1.01s 1.03s
Check Time 18.13s (± 0.33%) 18.17s (± 0.11%) +0.04s (+ 0.19%) 18.14s 18.20s
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) 0.00s ( NaN%) 0.00s 0.00s
Total Time 22.89s (± 0.30%) 22.92s (± 0.12%) +0.03s (+ 0.12%) 22.88s 22.95s
xstate - node (v16.17.1, x64)
Memory used 546,316k (± 0.03%) 546,726k (± 0.01%) +411k (+ 0.08%) 546,575k 546,787k
Parse Time 4.76s (± 0.47%) 4.78s (± 0.45%) +0.02s (+ 0.42%) 4.76s 4.81s
Bind Time 1.85s (± 0.56%) 1.75s (± 5.56%) 🟩-0.09s (- 5.14%) 1.66s 1.86s
Check Time 2.96s (± 0.35%) 3.16s (± 3.54%) +0.19s (+ 6.58%) 3.05s 3.29s
Emit Time 0.09s (± 5.53%) 0.09s (± 0.00%) 🟩-0.00s (- 3.57%) 0.09s 0.09s
Total Time 9.66s (± 0.23%) 9.78s (± 0.57%) +0.11s (+ 1.16%) 9.70s 9.85s
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current 52392 6
Baseline main 6

Developer Information:

Download Benchmark

@ahejlsberg
Copy link
Member Author

@typescript-bot perf test faster

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2023

Heya @ahejlsberg, I've started to run the abridged perf test suite on this PR at c930975. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

@ahejlsberg
The results of the perf run you requested are in!

Here they are:

Comparison Report - main..52392

Metric main 52392 Delta Best Worst
Angular - node (v16.17.1, x64)
Memory used 359,204k (± 0.01%) 359,204k (± 0.01%) -1k (- 0.00%) 359,186k 359,251k
Parse Time 4.19s (± 0.36%) 4.18s (± 0.65%) -0.01s (- 0.20%) 4.17s 4.24s
Bind Time 1.22s (± 0.67%) 1.22s (± 0.42%) -0.00s (- 0.00%) 1.22s 1.23s
Check Time 9.41s (± 0.59%) 9.45s (± 0.44%) +0.04s (+ 0.46%) 9.40s 9.50s
Emit Time 8.05s (± 0.43%) 8.07s (± 0.56%) +0.02s (+ 0.31%) 8.04s 8.14s
Total Time 22.87s (± 0.21%) 22.94s (± 0.27%) +0.06s (+ 0.27%) 22.85s 23.00s
Compiler-Unions - node (v16.17.1, x64)
Memory used 194,243k (± 0.04%) 194,559k (± 0.68%) +316k (+ 0.16%) 193,961k 197,245k
Parse Time 1.80s (± 0.45%) 1.80s (± 0.29%) 0.00s ( 0.00%) 1.80s 1.81s
Bind Time 0.84s (± 0.61%) 0.84s (± 0.97%) 0.00s ( 0.00%) 0.83s 0.85s
Check Time 10.39s (± 0.83%) 10.45s (± 0.66%) +0.06s (+ 0.58%) 10.38s 10.55s
Emit Time 3.09s (± 1.58%) 3.06s (± 0.93%) -0.03s (- 1.02%) 3.03s 3.11s
Total Time 16.12s (± 0.79%) 16.15s (± 0.52%) +0.03s (+ 0.18%) 16.04s 16.25s
Monaco - node (v16.17.1, x64)
Memory used 343,255k (± 0.01%) 343,270k (± 0.01%) +15k (+ 0.00%) 343,248k 343,307k
Parse Time 3.14s (± 0.96%) 3.17s (± 1.15%) +0.03s (+ 0.90%) 3.14s 3.24s
Bind Time 1.11s (± 0.94%) 1.11s (± 0.57%) -0.00s (- 0.45%) 1.10s 1.12s
Check Time 7.73s (± 0.21%) 7.75s (± 0.46%) +0.02s (+ 0.32%) 7.72s 7.81s
Emit Time 4.53s (± 0.46%) 4.53s (± 0.65%) -0.00s (- 0.04%) 4.49s 4.56s
Total Time 16.51s (± 0.30%) 16.56s (± 0.47%) +0.05s (+ 0.31%) 16.47s 16.67s
TFS - node (v16.17.1, x64)
Memory used 299,757k (± 0.01%) 299,755k (± 0.01%) -3k (- 0.00%) 299,713k 299,786k
Parse Time 2.47s (± 1.11%) 2.47s (± 1.34%) +0.01s (+ 0.27%) 2.44s 2.53s
Bind Time 1.25s (± 0.82%) 1.25s (± 1.01%) -0.00s (- 0.27%) 1.24s 1.27s
Check Time 7.20s (± 0.50%) 7.20s (± 0.35%) -0.00s (- 0.02%) 7.17s 7.23s
Emit Time 4.23s (± 0.96%) 4.21s (± 0.44%) -0.03s (- 0.59%) 4.18s 4.22s
Total Time 15.15s (± 0.35%) 15.13s (± 0.34%) -0.02s (- 0.14%) 15.07s 15.19s
material-ui - node (v16.17.1, x64)
Memory used 476,077k (± 0.02%) 476,107k (± 0.00%) +30k (+ 0.01%) 476,081k 476,140k
Parse Time 3.73s (± 0.44%) 3.72s (± 0.22%) -0.01s (- 0.31%) 3.70s 3.72s
Bind Time 1.02s (± 0.53%) 1.02s (± 0.00%) -0.01s (- 0.49%) 1.02s 1.02s
Check Time 18.13s (± 0.33%) 18.17s (± 0.38%) +0.04s (+ 0.23%) 18.09s 18.28s
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) 0.00s ( NaN%) 0.00s 0.00s
Total Time 22.89s (± 0.30%) 22.91s (± 0.32%) +0.02s (+ 0.11%) 22.83s 23.03s
xstate - node (v16.17.1, x64)
Memory used 546,316k (± 0.03%) 546,792k (± 0.02%) +476k (+ 0.09%) 546,677k 546,912k
Parse Time 4.76s (± 0.47%) 4.76s (± 0.59%) -0.01s (- 0.10%) 4.72s 4.79s
Bind Time 1.85s (± 0.56%) 1.83s (± 0.44%) -0.01s (- 0.72%) 1.82s 1.84s
Check Time 2.96s (± 0.35%) 3.04s (± 1.17%) +0.07s (+ 2.47%) 3.00s 3.09s
Emit Time 0.09s (± 5.53%) 0.09s (± 0.00%) 🟩-0.00s (- 3.57%) 0.09s 0.09s
Total Time 9.66s (± 0.23%) 9.72s (± 0.51%) +0.06s (+ 0.59%) 9.65s 9.79s
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current 52392 6
Baseline main 6

Developer Information:

Download Benchmark

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the top-repos suite comparing main and refs/pull/52392/merge:

Everything looks good!

@ahejlsberg
Copy link
Member Author

Everything looks good with the latest commit to handle intersections in isDeeplyNestedType.

@@ -21811,7 +21813,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
// No array like or unmatched property error - just issue top level error (errorInfo = undefined)
}

function propertiesRelatedTo(source: Type, target: Type, reportErrors: boolean, excludedProperties: Set<__String> | undefined, intersectionState: IntersectionState): Ternary {
function propertiesRelatedTo(source: Type, target: Type, reportErrors: boolean, excludedProperties: Set<__String> | undefined, optionalsOnly: boolean, intersectionState: IntersectionState): Ternary {
Copy link
Member

Choose a reason for hiding this comment

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

Rather than add a new boolean parameter to this function that we have to pass everywhere, could we not use the existing excludedProperties parameter to exclude all the non-optional properties at the single callsite we wanted to?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I considered that, but didn't want the overhead of constructing a new set, and the function is only called in three places.

@ahejlsberg ahejlsberg merged commit 3099385 into main Feb 2, 2023
@ahejlsberg ahejlsberg deleted the fix52252 branch February 2, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Deep intersections stopped working in 4.9 Intersection types not merged in 4.9.4
5 participants