Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Build checker cache keys in an inline buffer with one-shot hashing - #4784

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
mds-ant:perf/checker-oneshot-key-hash
Aug 17, 2026
Merged

Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
mds-ant:perf/checker-oneshot-key-hash

Conversation

@mds-ant

Copy link
Copy Markdown
Contributor

Context

Every structural cache key in the checker is built through keyBuilder, whose only field was a by-value xxh3.Hasher. That's a streaming hasher with an internal block buffer of over a kilobyte, so every var b keyBuilder zeroed the whole struct on the stack and fed each ID through the streaming Write path, even though a typical key is about a dozen bytes and Sum128 on such input just one-shot-hashes the buffered bytes anyway.

This PR

keyBuilder now accumulates the key's bytes in a small inlineBuffer, spilling to a heap overflowBuffer only for the rare oversized key, and hashes them with the one-shot xxh3.Hash128. The hashWrite32/hashWrite64 helpers become writeUint32/writeUint64 methods with the same little-endian layout, so the byte stream is unchanged and every key value is identical to before.

On a full check of VS Code the keys average 11.5 bytes with a p99.9 of 129 bytes. Only 0.04% exceed the 192-byte buffer, so the spill path is effectively cold.

Performance

Metric main branch Δ
Instructions (single-threaded) 108.78 B 105.86 B −2.68%
Wall time (single-threaded) 19.39 s 19.08 s −1.60%
Wall time (4 checkers) 6.273 s 6.188 s −1.36%

This PR was assisted by Claude Code.

Cache keys were built through a by-value `xxh3.Hasher` embedded in `keyBuilder`. That is a streaming hasher with a large internal block buffer, so every key build zeroed a sizeable struct on the stack and pushed each ID through the streaming `Write` path, even though a typical key is only a handful of bytes.

`keyBuilder` now accumulates the key bytes in a small inline buffer, spilling to a slice for the rare oversized key, and hashes them with the one-shot `xxh3.Hash128`. The byte stream is unchanged (`hashWrite32`/`hashWrite64` become `writeUint32`/`writeUint64` with the same little-endian layout), so every key value is identical to before.
Copilot AI review requested due to automatic review settings July 29, 2026 11:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Optimizes checker cache-key construction by buffering small keys inline and hashing them in one shot.

Changes:

  • Replaces streaming hashing with a 192-byte inline buffer and overflow path.
  • Preserves little-endian key encoding.
  • Adds boundary and overflow encoding tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/checker/checker.go Implements buffered cache-key construction and one-shot hashing.
internal/checker/keybuilder_test.go Verifies key encoding and buffer-boundary behavior.
@jakebailey

Copy link
Copy Markdown
Member

I swear Claude is addicted to introducing one off test files

TypeScript Bot (@typescript-bot) perf test this

@typescript-automation

typescript-automation Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

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

Command Status Results
perf test this ✅ Started 👀 Results
@mds-ant

Copy link
Copy Markdown
Contributor Author

I swear Claude is addicted to introducing one off test files

I actually asked it to add a test to make sure that the resulting hash is still identical. Happy to get rid of it if you don't think it's worth keeping.

@jakebailey

Copy link
Copy Markdown
Member

I'm on the fence 😄

I'm actually triggering all these perf runs on my phone, so haven't seen the test file without terrible word wrapping; my immediate uncertainty was just the maintenance cost. But I'll check

A lot of this key builder stuff might just go away in a future version of Go when they add maps that have custom hashers.

@jakebailey

Copy link
Copy Markdown
Member

Mainly, we already have checker_test.go. It just really loves adding new files

Comment thread internal/checker/checker.go Resolved
@mds-ant
Marius Schulz (mds-ant) force-pushed the perf/checker-oneshot-key-hash branch from b9d8773 to e143e5a Compare July 29, 2026 15:39
@typescript-automation

Copy link
Copy Markdown

Jake Bailey (@jakebailey)
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 - native
Errors 4 4 ~ ~ ~ p=1.000 n=6
Symbols 81,812 (± 0.03%) 81,800 (± 0.05%) ~ 81,729 81,840 p=0.810 n=6
Types 98,817 98,817 ~ ~ ~ p=1.000 n=6
Memory Used 174,079k (± 0.21%) 173,476k (± 0.38%) ~ 172,487k 174,160k p=0.093 n=6
Memory Allocs 2,694,780 (± 0.01%) 2,708,238 (± 0.01%) +13,458 (+ 0.50%) 2,707,953 2,708,444 p=0.005 n=6
Config Time 0.001s (±109.43%) 0.001s (±77.38%) ~ 0.000s 0.001s p=0.640 n=6
Parse Time 0.054s (± 3.23%) 0.059s (±10.55%) ~ 0.052s 0.067s p=0.195 n=6
Bind Time 0.020s (±11.39%) 0.019s (±10.12%) ~ 0.017s 0.022s p=0.570 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 0.971s (± 2.45%) 0.980s (± 1.91%) ~ 0.960s 1.012s p=0.470 n=6
Total Time 1.048s (± 2.45%) 1.060s (± 1.81%) ~ 1.044s 1.097s p=0.173 n=6
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 871,658 (± 0.12%) 871,871 (± 0.12%) ~ 869,876 872,631 p=0.575 n=6
Types 263,961 (± 0.00%) 263,963 (± 0.00%) +1 (+ 0.00%) 263,962 263,964 p=0.039 n=6
Memory Used 812,702k (± 0.07%) 813,544k (± 0.11%) ~ 812,687k 814,819k p=0.093 n=6
Memory Allocs 13,147,124 (± 0.05%) 13,149,247 (± 0.07%) ~ 13,139,642 13,164,108 p=0.936 n=6
Config Time 0.027s (± 9.25%) 0.028s (±13.13%) ~ 0.024s 0.034s p=0.571 n=6
Parse Time 0.250s (± 4.18%) 0.253s (± 3.98%) ~ 0.238s 0.268s p=0.521 n=6
Bind Time 0.062s (±33.07%) 0.054s (±34.47%) ~ 0.042s 0.092s p=1.000 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 2.151s (± 1.26%) 2.125s (± 1.46%) ~ 2.091s 2.165s p=0.149 n=6
Total Time 2.503s (± 0.98%) 2.474s (± 0.96%) ~ 2.443s 2.504s p=0.065 n=6
mui-docs - native
Errors 11,282 (± 0.01%) 11,280 (± 0.03%) ~ 11,274 11,282 p=0.214 n=6
Symbols 4,384,004 4,384,004 ~ ~ ~ p=1.000 n=6
Types 1,536,962 1,536,962 ~ ~ ~ p=1.000 n=6
Memory Used 4,964,594k (± 0.02%) 4,964,607k (± 0.03%) ~ 4,963,138k 4,966,480k p=0.936 n=6
Memory Allocs 46,001,769 (± 0.05%) 46,029,983 (± 0.05%) ~ 46,004,739 46,059,844 p=0.093 n=6
Config Time 0.029s (±10.60%) 0.029s (± 3.55%) ~ 0.028s 0.031s p=0.466 n=6
Parse Time 0.548s (± 2.08%) 0.553s (± 2.45%) ~ 0.535s 0.572s p=0.630 n=6
Bind Time 0.003s (±19.35%) 0.002s (±22.11%) ~ 0.002s 0.003s p=0.311 n=6
Check Time 18.802s (± 0.48%) 18.730s (± 0.42%) ~ 18.584s 18.823s p=0.093 n=6
Emit Time 0.549s (± 4.86%) 0.556s (± 5.33%) ~ 0.526s 0.587s p=0.629 n=6
Total Time 20.775s (± 0.36%) 20.694s (± 0.47%) ~ 20.524s 20.818s p=0.173 n=6
self-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,394,220 1,394,220 ~ ~ ~ p=1.000 n=6
Types 442,210 442,210 ~ ~ ~ p=1.000 n=6
Memory Used 1,608,036k (± 0.29%) 1,607,677k (± 0.37%) ~ 1,597,681k 1,614,752k p=1.000 n=6
Memory Allocs 97,057,704 (± 0.06%) 97,339,284 (± 0.07%) +281,580 (+ 0.29%) 97,222,705 97,420,316 p=0.005 n=6
Config Time 0.019s (±33.94%) 0.016s (±39.36%) ~ 0.008s 0.023s p=0.521 n=6
Parse Time 0.257s (± 2.31%) 0.261s (± 4.14%) ~ 0.244s 0.275s p=0.297 n=6
Bind Time 0.000s (±244.70%) 0.000s ~ ~ ~ p=0.405 n=6
Check Time 2.175s (± 0.75%) 2.163s (± 0.61%) ~ 2.153s 2.187s p=0.230 n=6
Emit Time 0.307s (± 2.96%) 0.304s (± 2.66%) ~ 0.295s 0.318s p=0.378 n=6
Total Time 28.739s (± 0.80%) 28.575s (± 0.79%) ~ 28.277s 28.804s p=0.471 n=6
self-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 337,681 337,681 ~ ~ ~ p=1.000 n=6
Types 199,559 199,559 ~ ~ ~ p=1.000 n=6
Memory Used 320,631k (± 0.04%) 320,445k (± 0.04%) ~ 320,272k 320,612k p=0.066 n=6
Memory Allocs 4,676,736 (± 0.01%) 4,692,679 (± 0.01%) +15,942 (+ 0.34%) 4,692,041 4,693,307 p=0.005 n=6
Config Time 0.001s 0.001s (±34.96%) ~ 0.001s 0.002s p=0.405 n=6
Parse Time 0.116s (± 2.15%) 0.116s (± 2.02%) ~ 0.112s 0.118s p=0.627 n=6
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=6
Check Time 1.276s (± 0.46%) 1.263s (± 0.97%) ~ 1.252s 1.284s p=0.077 n=6
Emit Time 0.118s (± 7.86%) 0.130s (±10.66%) ~ 0.114s 0.153s p=0.172 n=6
Total Time 1.568s (± 0.79%) 1.560s (± 1.02%) ~ 1.539s 1.579s p=0.336 n=6
ts-pre-modules - native
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 97,488 97,488 ~ ~ ~ p=1.000 n=6
Types 356 356 ~ ~ ~ p=1.000 n=6
Memory Used 128,707k (± 0.01%) 128,707k (± 0.01%) ~ 128,695k 128,723k p=0.872 n=6
Memory Allocs 177,222 (± 0.19%) 177,337 (± 0.19%) ~ 176,998 177,760 p=0.810 n=6
Config Time 0.001s (±77.38%) 0.001s (±77.38%) ~ 0.000s 0.001s p=1.000 n=6
Parse Time 0.111s (± 5.49%) 0.108s (± 9.22%) ~ 0.091s 0.120s p=0.630 n=6
Bind Time 0.033s (±26.14%) 0.044s (±22.55%) ~ 0.034s 0.055s p=0.053 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=6
Total Time 0.148s (± 9.21%) 0.155s (±11.46%) ~ 0.128s 0.173s p=0.518 n=6
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 7,499,780 7,499,780 ~ ~ ~ p=1.000 n=6
Types 2,616,632 2,616,632 ~ ~ ~ p=1.000 n=6
Memory Used 5,049,559k (± 0.02%) 5,050,495k (± 0.02%) ~ 5,048,682k 5,052,056k p=0.230 n=6
Memory Allocs 38,242,688 (± 0.07%) 38,262,722 (± 0.11%) ~ 38,224,996 38,320,454 p=0.575 n=6
Config Time 0.079s (± 7.96%) 0.082s (± 7.43%) ~ 0.073s 0.088s p=0.375 n=6
Parse Time 0.901s (± 4.20%) 0.908s (± 3.66%) ~ 0.856s 0.947s p=0.936 n=6
Bind Time 0.223s (±36.72%) 0.192s (±30.92%) ~ 0.158s 0.308s p=0.518 n=6
Check Time 8.578s (± 1.14%) 8.382s (± 1.44%) -0.196s (- 2.28%) 8.286s 8.582s p=0.031 n=6
Emit Time 2.415s (±11.49%) 2.422s (± 9.85%) ~ 2.082s 2.696s p=1.000 n=6
Total Time 12.219s (± 1.18%) 12.009s (± 1.08%) -0.210s (- 1.72%) 11.833s 12.164s p=0.031 n=6
webpack - native
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 193,872 193,872 ~ ~ ~ p=1.000 n=6
Types 340 340 ~ ~ ~ p=1.000 n=6
Memory Used 230,421k (± 0.17%) 230,411k (± 0.15%) ~ 229,758k 230,762k p=1.000 n=6
Memory Allocs 977,616 (± 0.54%) 972,550 (± 0.39%) ~ 967,552 978,380 p=0.093 n=6
Config Time 0.012s (±10.91%) 0.012s (±23.15%) ~ 0.008s 0.016s p=0.406 n=6
Parse Time 0.153s (± 4.48%) 0.150s (± 3.37%) ~ 0.145s 0.158s p=0.470 n=6
Bind Time 0s 0s ~ ~ ~ p=1.000 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 0.045s (±15.88%) 0.047s (±14.98%) ~ 0.041s 0.058s p=0.420 n=6
Total Time 0.211s (± 4.90%) 0.209s (± 3.53%) ~ 0.200s 0.220s p=0.630 n=6
xstate-main - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,064,618 1,064,618 ~ ~ ~ p=1.000 n=6
Types 392,776 392,776 ~ ~ ~ p=1.000 n=6
Memory Used 637,845k (± 0.03%) 637,997k (± 0.02%) ~ 637,767k 638,097k p=0.230 n=6
Memory Allocs 4,989,099 (± 0.19%) 4,990,807 (± 0.07%) ~ 4,987,620 4,995,300 p=0.128 n=6
Config Time 0.004s (±18.82%) 0.005s (± 8.44%) ~ 0.004s 0.005s p=0.248 n=6
Parse Time 0.128s (± 2.74%) 0.127s (± 3.43%) ~ 0.122s 0.134s p=0.872 n=6
Bind Time 0.039s (±21.06%) 0.034s (±21.83%) ~ 0.024s 0.042s p=0.629 n=6
Check Time 1.237s (± 1.05%) 1.151s (± 1.24%) 🟩-0.085s (- 6.90%) 1.139s 1.175s p=0.005 n=6
Emit Time 0.001s 0.001s ~ ~ ~ p=1.000 n=6
Total Time 1.411s (± 0.80%) 1.322s (± 1.00%) 🟩-0.090s (- 6.34%) 1.313s 1.348s p=0.005 n=6
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • mui-docs - native
  • self-build-src - native
  • self-compiler - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

lsp

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-UnionsLSP - native
Req 1 - updateOpen 13ms (± 3.87%) 14ms (±10.20%) ~ 12ms 16ms p=0.928 n=6
Req 2 - geterr 1,035ms (± 0.64%) 1,039ms (± 0.75%) ~ 1,028ms 1,049ms p=0.423 n=6
Req 3 - references 55ms (±11.36%) 49ms (± 6.08%) ~ 45ms 54ms p=0.087 n=6
Req 4 - navto 21ms (±11.00%) 20ms (± 5.79%) ~ 19ms 22ms p=0.933 n=6
Req 5 - completionInfo count 1,357 1,357 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 19ms (±11.63%) 22ms (± 6.63%) 🔻+3ms (+14.66%) 21ms 25ms p=0.043 n=6
CompilerLSP - native
Req 1 - updateOpen 11ms 11ms (± 3.65%) ~ 11ms 12ms p=0.405 n=6
Req 2 - geterr 439ms (± 2.27%) 436ms (± 2.30%) ~ 421ms 450ms p=0.748 n=6
Req 3 - references 49ms (± 5.95%) 48ms (± 4.36%) ~ 44ms 49ms p=0.318 n=6
Req 4 - navto 18ms 19ms (± 8.35%) ~ 18ms 22ms p=0.074 n=6
Req 5 - completionInfo count 1,519 1,519 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 20ms (±14.13%) 21ms (±20.44%) ~ 16ms 28ms p=1.000 n=6
System info unknown
Hosts
  • native
Scenarios
  • CompilerLSP - native
  • Compiler-UnionsLSP - native
  • xstate-main-1-LSP - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

startup

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
lsp-startup - native
Execution time 4.77ms (±516.54%) 4.78ms (±516.55%) +0.00ms (+ 0.10%) 0.00ms 486.16ms p=0.000 n=600
tsgo-startup - native
Execution time 5.86ms (±516.54%) 5.87ms (±516.55%) +0.01ms (+ 0.18%) 0.00ms 591.87ms p=0.000 n=600
System info unknown
Hosts
  • native
Scenarios
  • lsp-startup - native
  • tsgo-startup - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

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

Command Status Results
perf test this faster ✅ Started 👀 Results
@typescript-automation

Copy link
Copy Markdown

Jake Bailey (@jakebailey)
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 - native
Errors 41 41 ~ ~ ~ p=1.000 n=12
Symbols 115,480 115,480 ~ ~ ~ p=1.000 n=12
Types 96,945 96,945 ~ ~ ~ p=1.000 n=12
Memory Used 150,113k (± 0.67%) 149,058k (± 0.48%) ~ 147,699k 151,226k p=0.128 n=12
Memory Allocs 2,247,509 (± 0.00%) 2,272,116 (± 0.01%) +24,607 (+ 1.09%) 2,271,798 2,272,575 p=0.000 n=12
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Parse Time 0.041s (± 3.90%) 0.041s (± 3.57%) ~ 0.039s 0.046s p=0.685 n=12
Bind Time 0.012s (±11.07%) 0.013s (±12.11%) ~ 0.010s 0.018s p=0.396 n=12
Check Time 0.509s (± 0.90%) 0.490s (± 1.07%) 🟩-0.019s (- 3.67%) 0.478s 0.505s p=0.000 n=12
Emit Time 0.268s (± 2.48%) 0.271s (± 1.40%) ~ 0.255s 0.277s p=0.354 n=12
Total Time 0.836s (± 0.72%) 0.822s (± 0.71%) -0.015s (- 1.75%) 0.810s 0.842s p=0.001 n=12
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=12
Symbols 846,832 (± 0.10%) 846,963 (± 0.07%) ~ 845,318 848,400 p=0.799 n=12
Types 249,913 (± 0.00%) 249,912 (± 0.00%) ~ 249,910 249,916 p=0.530 n=12
Memory Used 793,113k (± 0.05%) 793,157k (± 0.06%) ~ 792,290k 794,722k p=0.799 n=12
Memory Allocs 13,039,663 (± 0.05%) 13,036,064 (± 0.04%) ~ 13,031,992 13,061,786 p=0.478 n=12
Config Time 0.017s (± 1.99%) 0.017s (± 1.86%) ~ 0.016s 0.017s p=0.680 n=12
Parse Time 0.275s (± 2.56%) 0.279s (± 2.25%) ~ 0.262s 0.293s p=0.370 n=12
Bind Time 0.067s (±14.50%) 0.062s (± 9.48%) ~ 0.058s 0.091s p=0.383 n=12
Check Time 0s 0s ~ ~ ~ p=1.000 n=12
Emit Time 1.652s (± 0.99%) 1.628s (± 0.98%) -0.023s (- 1.41%) 1.604s 1.702s p=0.002 n=12
Total Time 2.028s (± 1.26%) 2.001s (± 1.05%) -0.026s (- 1.29%) 1.977s 2.104s p=0.010 n=12
mui-docs - native
Errors 11,275 (± 0.04%) 11,275 (± 0.04%) ~ 11,260 11,280 p=0.656 n=12
Symbols 4,655,163 4,655,163 ~ ~ ~ p=1.000 n=12
Types 1,664,956 1,664,956 ~ ~ ~ p=1.000 n=12
Memory Used 5,661,096k (± 0.02%) 5,661,353k (± 0.02%) ~ 5,659,162k 5,664,447k p=0.977 n=12
Memory Allocs 53,938,612 (± 0.03%) 53,948,395 (± 0.02%) ~ 53,922,595 53,979,577 p=0.590 n=12
Config Time 0.016s 0.016s (± 1.81%) ~ 0.015s 0.016s p=0.217 n=12
Parse Time 0.549s (± 1.89%) 0.552s (± 1.90%) ~ 0.529s 0.576s p=0.600 n=12
Bind Time 0.002s 0.002s ~ ~ ~ p=1.000 n=12
Check Time 15.455s (± 1.05%) 15.267s (± 0.94%) ~ 15.001s 15.513s p=0.086 n=12
Emit Time 0.449s (± 2.15%) 0.439s (± 1.65%) -0.010s (- 2.24%) 0.431s 0.475s p=0.023 n=12
Total Time 17.198s (± 1.05%) 17.003s (± 1.01%) ~ 16.679s 17.277s p=0.086 n=12
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 1,394,411 1,394,411 ~ ~ ~ p=1.000 n=12
Types 443,627 443,627 ~ ~ ~ p=1.000 n=12
Memory Used 1,641,377k (± 0.28%) 1,642,577k (± 0.25%) ~ 1,628,550k 1,653,019k p=0.932 n=12
Memory Allocs 96,871,373 (± 0.04%) 97,181,349 (± 0.03%) +309,976 (+ 0.32%) 97,089,580 97,259,282 p=0.000 n=12
Config Time 0.003s (±15.49%) 0.003s (±14.60%) ~ 0.002s 0.004s p=0.191 n=12
Parse Time 0.198s (± 2.59%) 0.198s (± 3.17%) ~ 0.182s 0.214s p=0.989 n=12
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Check Time 1.819s (± 0.43%) 1.790s (± 0.57%) -0.030s (- 1.63%) 1.762s 1.819s p=0.000 n=12
Emit Time 0.299s (± 4.53%) 0.290s (± 5.12%) ~ 0.252s 0.321s p=0.640 n=12
Total Time 25.172s (± 0.46%) 24.672s (± 0.67%) -0.500s (- 1.98%) 24.348s 25.065s p=0.000 n=12
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 337,618 337,618 ~ ~ ~ p=1.000 n=12
Types 198,941 198,941 ~ ~ ~ p=1.000 n=12
Memory Used 319,682k (± 0.06%) 319,656k (± 0.02%) ~ 319,418k 319,827k p=0.370 n=12
Memory Allocs 4,660,501 (± 0.01%) 4,677,157 (± 0.01%) +16,656 (+ 0.36%) 4,676,072 4,678,530 p=0.000 n=12
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=12
Parse Time 0.115s (± 5.01%) 0.114s (± 5.29%) ~ 0.103s 0.134s p=0.898 n=12
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Check Time 1.058s (± 0.57%) 1.034s (± 0.56%) -0.024s (- 2.29%) 1.017s 1.046s p=0.000 n=12
Emit Time 0.151s (± 9.71%) 0.149s (± 6.84%) ~ 0.118s 0.172s p=0.766 n=12
Total Time 1.376s (± 1.19%) 1.348s (± 0.63%) -0.028s (- 2.04%) 1.331s 1.374s p=0.007 n=12
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=12
Symbols 305,341 305,341 ~ ~ ~ p=1.000 n=12
Types 182,038 182,038 ~ ~ ~ p=1.000 n=12
Memory Used 277,354k (± 0.02%) 277,340k (± 0.03%) ~ 277,170k 277,522k p=0.744 n=12
Memory Allocs 1,627,977 (± 0.01%) 1,644,548 (± 0.01%) +16,571 (+ 1.02%) 1,644,315 1,644,923 p=0.000 n=12
Config Time 0.000s (±146.91%) 0.000s (±113.79%) ~ 0.000s 0.001s p=1.000 n=12
Parse Time 0.099s (± 4.18%) 0.103s (± 3.38%) ~ 0.095s 0.112s p=0.192 n=12
Bind Time 0.036s (±13.51%) 0.037s (±11.02%) ~ 0.028s 0.050s p=0.384 n=12
Check Time 0.843s (± 0.67%) 0.824s (± 0.75%) -0.019s (- 2.26%) 0.810s 0.840s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 0.993s (± 0.78%) 0.978s (± 0.88%) -0.015s (- 1.52%) 0.956s 1.003s p=0.032 n=12
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 7,765,473 7,765,473 ~ ~ ~ p=1.000 n=12
Types 2,666,541 2,666,541 ~ ~ ~ p=1.000 n=12
Memory Used 5,243,543k (± 0.02%) 5,243,729k (± 0.01%) ~ 5,242,301k 5,246,096k p=0.319 n=12
Memory Allocs 40,770,914 (± 0.07%) 40,765,476 (± 0.01%) ~ 40,759,128 40,778,831 p=0.089 n=12
Config Time 0.061s (± 0.46%) 0.061s (± 0.53%) ~ 0.061s 0.062s p=0.667 n=12
Parse Time 1.607s (± 1.00%) 1.566s (± 2.15%) -0.042s (- 2.59%) 1.454s 1.631s p=0.045 n=12
Bind Time 0.335s (± 3.59%) 0.372s (±17.04%) ~ 0.329s 0.642s p=0.645 n=12
Check Time 9.709s (± 0.96%) 9.511s (± 1.44%) -0.198s (- 2.04%) 9.027s 9.628s p=0.002 n=12
Emit Time 3.111s (± 7.65%) 3.205s (±12.06%) ~ 2.890s 4.584s p=0.178 n=12
Total Time 14.901s (± 1.10%) 14.796s (± 1.96%) -0.105s (- 0.70%) 14.522s 15.829s p=0.005 n=12
webpack - native
Errors 2 2 ~ ~ ~ p=1.000 n=12
Symbols 1,380 1,380 ~ ~ ~ p=1.000 n=12
Types 340 340 ~ ~ ~ p=1.000 n=12
Memory Used 198,168k (± 0.07%) 198,181k (± 0.07%) ~ 197,910k 198,488k p=0.799 n=12
Memory Allocs 838,288 (± 0.15%) 838,354 (± 0.13%) ~ 835,814 842,743 p=0.590 n=12
Config Time 0.008s 0.008s ~ ~ ~ p=1.000 n=12
Parse Time 0.208s (± 3.36%) 0.206s (± 2.33%) ~ 0.189s 0.219s p=0.182 n=12
Bind Time 0s 0s ~ ~ ~ p=1.000 n=12
Check Time 0s 0s ~ ~ ~ p=1.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 0.217s (± 3.21%) 0.214s (± 2.25%) ~ 0.197s 0.227s p=0.177 n=12
xstate-main - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 1,020,005 1,020,005 ~ ~ ~ p=1.000 n=12
Types 376,891 376,891 ~ ~ ~ p=1.000 n=12
Memory Used 603,501k (± 0.02%) 603,542k (± 0.01%) ~ 603,368k 603,717k p=0.590 n=12
Memory Allocs 4,748,955 (± 0.04%) 4,753,028 (± 0.05%) +4,072 (+ 0.09%) 4,747,175 4,761,861 p=0.012 n=12
Config Time 0.003s (± 6.23%) 0.003s (± 6.23%) ~ 0.002s 0.003s p=1.000 n=12
Parse Time 0.148s (± 3.12%) 0.146s (± 3.54%) ~ 0.137s 0.161s p=0.339 n=12
Bind Time 0.039s (±16.08%) 0.043s (±16.84%) ~ 0.032s 0.068s p=0.365 n=12
Check Time 1.083s (± 1.05%) 1.018s (± 0.93%) 🟩-0.065s (- 6.01%) 0.994s 1.044s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 1.282s (± 1.00%) 1.222s (± 0.92%) 🟩-0.061s (- 4.73%) 1.186s 1.250s p=0.000 n=12
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • mui-docs - native
  • strada-build-src - native
  • strada-compiler - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 12
Baseline baseline 12

Developer Information:

Download Benchmarks

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Aug 17, 2026
Merged via the queue into microsoft:main with commit e8cf1cc Aug 17, 2026
21 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants