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

Try avoid slice-ing in getPathFromPathComponents. #60371

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanielRosenwasser
Copy link
Member

No description provided.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 29, 2024
@DanielRosenwasser
Copy link
Member Author

@typescript-bot perf test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 29, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
perf test this ✅ Started 👀 Results

@typescript-bot
Copy link
Collaborator

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

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 31 31 ~ ~ ~ p=1.000 n=6
Symbols 62,340 62,340 ~ ~ ~ p=1.000 n=6
Types 50,379 50,379 ~ ~ ~ p=1.000 n=6
Memory used 195,914k (± 0.74%) 196,202k (± 0.26%) ~ 195,252k 196,679k p=0.689 n=6
Parse Time 1.98s (± 1.40%) 1.99s (± 0.74%) ~ 1.97s 2.00s p=0.677 n=6
Bind Time 1.07s (± 1.63%) 1.08s (± 1.61%) ~ 1.06s 1.11s p=0.373 n=6
Check Time 14.57s (± 0.54%) 14.60s (± 0.55%) ~ 14.52s 14.70s p=0.810 n=6
Emit Time 4.12s (± 1.29%) 4.24s (± 4.55%) ~ 4.06s 4.49s p=0.422 n=6
Total Time 21.75s (± 0.40%) 21.91s (± 1.16%) ~ 21.65s 22.29s p=0.378 n=6
angular-1 - node (v18.15.0, x64)
Errors 33 33 ~ ~ ~ p=1.000 n=6
Symbols 947,886 947,886 ~ ~ ~ p=1.000 n=6
Types 410,840 410,840 ~ ~ ~ p=1.000 n=6
Memory used 1,224,813k (± 0.00%) 1,224,853k (± 0.00%) ~ 1,224,777k 1,224,907k p=0.173 n=6
Parse Time 8.06s (± 1.30%) 8.10s (± 0.86%) ~ 8.00s 8.18s p=0.521 n=6
Bind Time 2.28s (± 1.62%) 2.27s (± 0.72%) ~ 2.25s 2.30s p=0.872 n=6
Check Time 37.92s (± 0.38%) 37.89s (± 0.30%) ~ 37.70s 38.00s p=0.688 n=6
Emit Time 18.31s (± 0.86%) 18.33s (± 0.37%) ~ 18.23s 18.41s p=0.872 n=6
Total Time 66.56s (± 0.38%) 66.59s (± 0.21%) ~ 66.38s 66.75s p=0.688 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,494,874 2,494,874 ~ ~ ~ p=1.000 n=6
Types 908,486 908,486 ~ ~ ~ p=1.000 n=6
Memory used 2,307,724k (± 0.00%) 2,307,731k (± 0.00%) ~ 2,307,619k 2,307,842k p=0.689 n=6
Parse Time 11.13s (± 0.69%) 11.23s (± 0.28%) +0.10s (+ 0.91%) 11.19s 11.27s p=0.013 n=6
Bind Time 2.63s (± 0.79%) 2.61s (± 1.22%) ~ 2.56s 2.65s p=0.466 n=6
Check Time 91.01s (± 1.96%) 91.49s (± 2.40%) ~ 89.84s 95.62s p=0.471 n=6
Emit Time 0.35s (± 1.46%) 0.35s (± 2.14%) ~ 0.34s 0.36s p=0.784 n=6
Total Time 105.12s (± 1.66%) 105.68s (± 2.08%) ~ 104.09s 109.80s p=0.471 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,087 1,258,088 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 266,235 266,235 ~ ~ ~ p=1.000 n=6
Memory used 2,905,772k (±12.85%) 3,026,224k (± 9.74%) ~ 2,423,905k 3,147,298k p=0.936 n=6
Parse Time 6.54s (± 2.05%) 6.58s (± 1.24%) ~ 6.42s 6.65s p=0.936 n=6
Bind Time 2.34s (± 1.96%) 2.35s (± 1.06%) ~ 2.32s 2.38s p=0.688 n=6
Check Time 43.17s (± 0.30%) 43.12s (± 0.45%) ~ 42.94s 43.41s p=0.630 n=6
Emit Time 3.60s (± 2.44%) 3.58s (± 1.65%) ~ 3.53s 3.68s p=0.810 n=6
Total Time 55.67s (± 0.34%) 55.62s (± 0.31%) ~ 55.42s 55.88s p=0.575 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,087 1,258,088 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 266,235 266,235 ~ ~ ~ p=1.000 n=6
Memory used 2,496,810k (± 0.02%) 2,496,292k (± 0.02%) ~ 2,495,393k 2,497,112k p=0.078 n=6
Parse Time 5.41s (± 0.77%) 5.40s (± 0.99%) ~ 5.33s 5.48s p=0.873 n=6
Bind Time 1.74s (± 0.60%) 1.74s (± 0.51%) ~ 1.73s 1.75s p=0.452 n=6
Check Time 35.83s (± 0.29%) 35.85s (± 0.24%) ~ 35.78s 35.99s p=0.936 n=6
Emit Time 3.05s (± 1.29%) 3.03s (± 1.12%) ~ 2.99s 3.09s p=0.575 n=6
Total Time 46.01s (± 0.27%) 46.02s (± 0.10%) ~ 45.94s 46.07s p=0.810 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 261,754 261,755 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 106,477 106,477 ~ ~ ~ p=1.000 n=6
Memory used 438,826k (± 0.01%) 438,831k (± 0.01%) ~ 438,796k 438,885k p=0.936 n=6
Parse Time 3.53s (± 0.70%) 3.53s (± 0.70%) ~ 3.49s 3.56s p=1.000 n=6
Bind Time 1.32s (± 1.12%) 1.30s (± 1.16%) ~ 1.28s 1.32s p=0.160 n=6
Check Time 18.96s (± 0.23%) 18.95s (± 0.38%) ~ 18.85s 19.04s p=0.936 n=6
Emit Time 1.55s (± 1.38%) 1.54s (± 0.97%) ~ 1.53s 1.56s p=0.564 n=6
Total Time 25.36s (± 0.20%) 25.34s (± 0.26%) ~ 25.24s 25.41s p=0.808 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,919 225,919 ~ ~ ~ p=1.000 n=6
Types 94,415 94,415 ~ ~ ~ p=1.000 n=6
Memory used 371,126k (± 0.02%) 371,112k (± 0.01%) ~ 371,039k 371,165k p=0.936 n=6
Parse Time 3.64s (± 1.06%) 3.59s (± 0.79%) -0.05s (- 1.37%) 3.54s 3.62s p=0.045 n=6
Bind Time 1.97s (± 0.75%) 1.96s (± 1.15%) ~ 1.92s 1.98s p=0.368 n=6
Check Time 20.34s (± 0.41%) 20.36s (± 0.42%) ~ 20.23s 20.44s p=0.689 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 25.96s (± 0.19%) 25.90s (± 0.24%) ~ 25.81s 25.98s p=0.145 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,129,129 3,129,129 ~ ~ ~ p=1.000 n=6
Types 1,078,592 1,078,592 ~ ~ ~ p=1.000 n=6
Memory used 3,221,523k (± 0.02%) 3,221,171k (± 0.01%) ~ 3,220,589k 3,221,571k p=0.471 n=6
Parse Time 14.05s (± 0.37%) 14.12s (± 0.31%) ~ 14.07s 14.17s p=0.102 n=6
Bind Time 4.45s (± 2.39%) 4.46s (± 2.29%) ~ 4.40s 4.67s p=0.512 n=6
Check Time 85.05s (± 1.56%) 85.59s (± 1.63%) ~ 84.66s 87.64s p=0.748 n=6
Emit Time 26.53s (± 6.87%) 26.40s (± 6.92%) ~ 22.69s 27.38s p=0.575 n=6
Total Time 130.07s (± 1.76%) 130.57s (± 1.92%) ~ 126.09s 133.26s p=0.471 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 286,866 286,866 ~ ~ ~ p=1.000 n=6
Types 116,245 116,245 ~ ~ ~ p=1.000 n=6
Memory used 437,915k (± 0.04%) 437,908k (± 0.02%) ~ 437,782k 437,985k p=0.689 n=6
Parse Time 4.03s (± 0.62%) 4.03s (± 1.09%) ~ 3.96s 4.09s p=1.000 n=6
Bind Time 1.75s (± 1.34%) 1.74s (± 1.65%) ~ 1.70s 1.79s p=1.000 n=6
Check Time 18.57s (± 0.56%) 18.53s (± 0.32%) ~ 18.44s 18.61s p=0.574 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.35s (± 0.44%) 24.30s (± 0.40%) ~ 24.15s 24.42s p=0.630 n=6
xstate-main - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 543,130 543,130 ~ ~ ~ p=1.000 n=6
Types 181,889 181,889 ~ ~ ~ p=1.000 n=6
Memory used 485,480k (± 0.01%) 485,450k (± 0.01%) ~ 485,356k 485,514k p=0.375 n=6
Parse Time 3.36s (± 0.92%) 3.37s (± 0.89%) ~ 3.32s 3.41s p=0.494 n=6
Bind Time 1.18s (± 1.20%) 1.17s (± 1.14%) ~ 1.15s 1.19s p=0.190 n=6
Check Time 19.20s (± 0.52%) 19.15s (± 0.22%) ~ 19.09s 19.20s p=0.336 n=6
Emit Time 0.00s 0.00s (±244.70%) ~ 0.00s 0.01s p=0.405 n=6
Total Time 23.74s (± 0.51%) 23.69s (± 0.22%) ~ 23.63s 23.75s p=0.229 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

tsserver

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-UnionsTSServer - node (v18.15.0, x64)
Req 1 - updateOpen 2,980ms (±10.25%) 2,876ms (± 0.35%) ~ 2,860ms 2,886ms p=0.298 n=6
Req 2 - geterr 7,413ms (±10.64%) 7,384ms (±10.51%) ~ 6,389ms 8,005ms p=0.810 n=6
Req 3 - references 398ms (± 7.95%) 405ms (± 7.34%) ~ 345ms 423ms p=1.000 n=6
Req 4 - navto 328ms (±10.35%) 358ms (± 2.96%) ~ 341ms 369ms p=0.093 n=6
Req 5 - completionInfo count 1,357 1,357 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 117ms (±10.41%) 119ms (± 2.98%) ~ 117ms 126ms p=0.809 n=6
CompilerTSServer - node (v18.15.0, x64)
Req 1 - updateOpen 2,423ms (± 1.16%) 2,456ms (± 0.92%) +33ms (+ 1.36%) 2,415ms 2,475ms p=0.045 n=6
Req 2 - geterr 3,977ms (± 0.17%) 3,976ms (± 0.17%) ~ 3,966ms 3,987ms p=0.810 n=6
Req 3 - references 280ms (± 1.25%) 282ms (± 0.94%) ~ 277ms 284ms p=0.324 n=6
Req 4 - navto 226ms (± 0.18%) 226ms (± 0.28%) ~ 225ms 227ms p=0.673 n=6
Req 5 - completionInfo count 1,519 1,519 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 78ms (± 7.31%) 84ms (± 5.10%) 🔻+6ms (+ 7.73%) 75ms 86ms p=0.034 n=6
xstate-main-1-tsserver - node (v18.15.0, x64)
Req 1 - updateOpen 6,505ms (± 0.48%) 6,545ms (± 0.91%) ~ 6,460ms 6,640ms p=0.149 n=6
Req 2 - geterr 1,438ms (± 9.58%) 1,599ms (±10.32%) ~ 1,371ms 1,717ms p=0.199 n=6
Req 3 - references 117ms (± 8.20%) 121ms (± 6.42%) ~ 106ms 127ms p=0.419 n=6
Req 4 - navto 593ms (± 2.49%) 588ms (± 8.04%) ~ 492ms 612ms p=0.297 n=6
Req 5 - completionInfo count 3,450 3,450 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 1,293ms (± 1.37%) 1,248ms (± 9.72%) ~ 1,006ms 1,341ms p=0.575 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • CompilerTSServer - node (v18.15.0, x64)
  • Compiler-UnionsTSServer - node (v18.15.0, x64)
  • xstate-main-1-tsserver - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

startup

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
tsc-startup - node (v18.15.0, x64)
Execution time 185.22ms (± 0.18%) 185.18ms (± 0.18%) ~ 183.38ms 187.83ms p=0.233 n=600
tsserver-startup - node (v18.15.0, x64)
Execution time 289.97ms (± 0.28%) 289.86ms (± 0.29%) ~ 282.93ms 295.66ms p=0.076 n=600
tsserverlibrary-startup - node (v18.15.0, x64)
Execution time 273.21ms (± 0.28%) 272.98ms (± 0.31%) -0.22ms (- 0.08%) 266.17ms 278.64ms p=0.000 n=600
typescript-startup - node (v18.15.0, x64)
Execution time 273.24ms (± 0.30%) 273.14ms (± 0.30%) -0.11ms (- 0.04%) 266.31ms 277.60ms p=0.003 n=600
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • tsc-startup - node (v18.15.0, x64)
  • tsserver-startup - node (v18.15.0, x64)
  • tsserverlibrary-startup - node (v18.15.0, x64)
  • typescript-startup - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants