Skip to content

Bind in parallel more efficiently - #65800

Open
Jake Bailey (jakebailey) wants to merge 1 commit into
microsoft:mainfrom
jakebailey:fast-pr/parallel-for
Open

Jake Bailey (jakebailey) wants to merge 1 commit into
microsoft:mainfrom
jakebailey:fast-pr/parallel-for

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This code made a bunch of goroutines; we can do this more cleverly when we don't care about ordering (so, not tracing).

This saves about 20% of the bind time in vscode.

Copilot AI balanced review requested due to automatic review settings December 4, 2026 22:20
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Dec 4, 2026
@typescript-automation typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 4, 2026

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.

🟡 Changes recommended

Already-bound files are not filtered before worker-pool startup, causing concurrent checker creation to launch unnecessary workers and contend on an atomic index despite having no binding work.

1 open issue
What changed in this PR

This PR reduces goroutine overhead when binding compiler source files, while preserving the existing tracing path.

Changes:

  • Adds a bounded, cancellation-aware ParallelFor helper.
  • Uses it for source-file binding when tracing is disabled.
  • Tests index coverage, sequential execution, and cancellation.
File Description
tsc/​internal/​core/​workgroup.go Adds the bounded parallel loop helper.
tsc/​internal/​core/​workgroup_test.go Tests parallel-loop behavior.
tsc/​internal/​compiler/​program.go Uses worker-based binding outside tracing.

Review effort: Balanced

Comment thread tsc/internal/compiler/program.go Outdated
Comment on lines +685 to +690
core.ParallelFor(ctx, len(p.files), core.WorkGroupConcurrency(p.SingleThreaded()), func(i int) {
file := p.files[i]
if !file.IsBound() {
binder.BindSourceFile(file)
}
})
@jakebailey Jake Bailey (jakebailey) added the Domain: Performance Performance related label Dec 4, 2026
…Files

Program.bindSourceFiles previously queued one goroutine per source file
via parallelWorkGroup, spawning thousands of goroutines with separate
stacks on large projects.

Add core.ParallelFor to run indexed work across a fixed pool of
worker goroutines (defaulting to GOMAXPROCS) pulling indices from an
atomic counter, and use it in bindSourceFiles when tracing is inactive.

benchstat (-pgo=off, parent vs commit, n=6):

goos: linux
goarch: amd64
             │    old     │               new                │
             │   sec/op   │   sec/op    vs base              │
Tsc/vscode     6.535 ± 1%   6.434 ± 2%  -1.54% (p=0.015 n=6)
Tsc/mui-docs   3.916 ± 1%   3.923 ± 1%       ~ (p=0.818 n=6)
geomean        5.059        5.024       -0.68%

             │     old      │                new                 │
             │    B-rss     │    B-rss      vs base              │
Tsc/vscode     4.752Gi ± 2%   4.850Gi ± 4%  +2.06% (p=0.041 n=6)
Tsc/mui-docs   2.166Gi ± 5%   2.205Gi ± 6%       ~ (p=0.937 n=6)
geomean        3.209Gi        3.270Gi       +1.92%
@jakebailey

Copy link
Copy Markdown
Member Author

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

@typescript-automation

typescript-automation Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
perf test this faster ✅ Started 👀 Results

Comment on lines +686 to 691
var unbound []*ast.SourceFile
for _, file := range p.files {
if !file.IsBound() {
wg.Queue(func() {
if ctx.Err() != nil {
return
}
if p.hosts.Tracing != nil {
defer p.hosts.Tracing.Push(tracing.PhaseBind, "bindSourceFile", map[string]any{"path": string(file.PathKey())}, true)()
}
binder.BindSourceFile(file)
})
unbound = append(unbound, file)
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

core.Filter will avoid allocating if none of the files are bound.

Suggested change
var unbound []*ast.SourceFile
for _, file := range p.files {
if !file.IsBound() {
wg.Queue(func() {
if ctx.Err() != nil {
return
}
if p.hosts.Tracing != nil {
defer p.hosts.Tracing.Push(tracing.PhaseBind, "bindSourceFile", map[string]any{"path": string(file.PathKey())}, true)()
}
binder.BindSourceFile(file)
})
unbound = append(unbound, file)
}
}
unbound := core.Filter(p.files, func (file *ast.SourceFile) {
file.IsBound()
}

or

Suggested change
var unbound []*ast.SourceFile
for _, file := range p.files {
if !file.IsBound() {
wg.Queue(func() {
if ctx.Err() != nil {
return
}
if p.hosts.Tracing != nil {
defer p.hosts.Tracing.Push(tracing.PhaseBind, "bindSourceFile", map[string]any{"path": string(file.PathKey())}, true)()
}
binder.BindSourceFile(file)
})
unbound = append(unbound, file)
}
}
unbound := core.Filter(p.files, ast.(*SourceFile).IsBound)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it just me or is GitHub rendering this in an insane way?

@typescript-automation

Copy link
Copy Markdown
Contributor

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=20
Symbols 88,373 88,373 ~ ~ ~ p=1.000 n=20
Types 79,147 79,147 ~ ~ ~ p=1.000 n=20
Memory Used 106,235k (± 0.03%) 106,243k (± 0.04%) ~ 106,111k 106,388k p=0.985 n=20
Memory Allocs 1,052,215 (± 0.01%) 1,052,046 (± 0.01%) -162 (- 0.02%) 1,051,726 1,052,429 p=0.003 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.037s (± 3.28%) 0.037s (± 3.23%) ~ 0.032s 0.040s p=0.763 n=20
Bind Time 0.012s (± 8.28%) 0.013s (± 7.72%) ~ 0.011s 0.017s p=0.140 n=20
Check Time 0.342s (± 0.81%) 0.342s (± 0.66%) ~ 0.334s 0.353s p=0.985 n=20
Emit Time 0.211s (± 0.83%) 0.210s (± 0.87%) ~ 0.203s 0.218s p=0.380 n=20
Total Time 0.609s (± 0.50%) 0.608s (± 0.29%) ~ 0.601s 0.614s p=0.952 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,128 753,128 ~ ~ ~ p=1.000 n=20
Types 547,653 547,653 ~ ~ ~ p=1.000 n=20
Memory Used 642,781k (± 0.02%) 642,603k (± 0.02%) ~ 641,994k 642,914k p=0.070 n=20
Memory Allocs 8,304,018 (± 0.02%) 8,298,498 (± 0.06%) -8,002 (- 0.10%) 8,290,528 8,339,989 p=0.009 n=20
Config Time 0.016s (± 1.18%) 0.016s (± 1.51%) ~ 0.015s 0.017s p=0.546 n=20
Parse Time 0.254s (± 2.53%) 0.261s (± 2.55%) ~ 0.237s 0.281s p=0.196 n=20
Bind Time 0.095s (±10.82%) 0.060s (±10.71%) 🟩-0.035s (-37.46%) 0.050s 0.098s p=0.000 n=20
Check Time 1.290s (± 0.95%) 1.296s (± 0.82%) ~ 1.256s 1.339s p=0.571 n=20
Emit Time 0.872s (± 0.62%) 0.876s (± 0.66%) ~ 0.858s 0.910s p=0.349 n=20
Total Time 2.549s (± 0.52%) 2.530s (± 0.54%) ~ 2.467s 2.571s p=0.097 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,691 676,691 ~ ~ ~ p=1.000 n=20
Types 937,438 937,438 ~ ~ ~ p=1.000 n=20
Memory Used 470,147k (± 0.01%) 470,068k (± 0.01%) ~ 469,870k 470,277k p=0.076 n=20
Memory Allocs 11,862,714 (± 0.01%) 11,858,913 (± 0.01%) -3,832 (- 0.03%) 11,856,226 11,867,574 p=0.006 n=20
Config Time 0.003s 0.003s ~ ~ ~ p=1.000 n=20
Parse Time 0.084s (± 3.00%) 0.085s (± 2.44%) ~ 0.077s 0.094s p=0.808 n=20
Bind Time 0.027s (±11.02%) 0.018s (±12.46%) 🟩-0.009s (-33.29%) 0.016s 0.034s p=0.000 n=20
Check Time 1.697s (± 0.60%) 1.691s (± 0.35%) ~ 1.667s 1.712s p=0.409 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.867s (± 0.47%) 1.860s (± 0.52%) ~ 1.823s 1.898s p=0.409 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,379 45,379 ~ ~ ~ p=1.000 n=20
Types 7,571 7,571 ~ ~ ~ p=1.000 n=20
Memory Used 27,709k (± 0.02%) 27,630k (± 0.02%) -79k (- 0.28%) 27,601k 27,646k p=0.000 n=20
Memory Allocs 231,690 (± 0.04%) 230,882 (± 0.05%) -818 (- 0.35%) 230,548 231,507 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.017s (± 3.27%) 0.017s (± 3.12%) ~ 0.015s 0.020s p=0.965 n=20
Bind Time 0.006s (± 9.09%) 0.005s (±12.97%) 🟩-0.001s (-20.00%) 0.003s 0.007s p=0.005 n=20
Check Time 0.015s (± 7.20%) 0.015s (± 5.94%) ~ 0.013s 0.018s p=0.432 n=20
Emit Time 0.015s (± 6.65%) 0.014s (± 5.71%) ~ 0.013s 0.018s p=0.234 n=20
Total Time 0.056s (± 1.31%) 0.054s (± 1.45%) -0.002s (- 2.77%) 0.050s 0.057s p=0.002 n=20
effect - native
Errors 4 4 ~ ~ ~ p=1.000 n=20
Symbols 1,226,616 1,226,616 ~ ~ ~ p=1.000 n=20
Types 882,783 882,783 ~ ~ ~ p=1.000 n=20
Memory Used 934,256k (± 0.01%) 934,188k (± 0.01%) ~ 933,718k 934,724k p=0.261 n=20
Memory Allocs 11,625,613 (± 0.03%) 11,621,331 (± 0.04%) -5,020 (- 0.04%) 11,614,620 11,658,181 p=0.014 n=20
Config Time 0.006s (± 1.75%) 0.006s (± 2.43%) ~ 0.005s 0.006s p=0.773 n=20
Parse Time 0.329s (± 1.03%) 0.331s (± 1.58%) ~ 0.307s 0.344s p=0.622 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.746s (± 0.41%) 1.748s (± 0.54%) ~ 1.722s 1.785s p=0.985 n=20
Emit Time 0.971s (± 3.41%) 0.961s (± 2.21%) ~ 0.888s 1.065s p=0.729 n=20
Total Time 3.222s (± 1.03%) 3.213s (± 0.56%) ~ 3.162s 3.305s p=0.674 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,694,384 3,694,384 ~ ~ ~ p=1.000 n=20
Types 1,352,554 1,352,554 ~ ~ ~ p=1.000 n=20
Memory Used 1,653,734k (± 0.07%) 1,647,172k (± 0.01%) -6,384k (- 0.39%) 1,646,845k 1,647,593k p=0.000 n=20
Memory Allocs 24,988,700 (± 0.08%) 24,870,541 (± 0.03%) -116,938 (- 0.47%) 24,849,944 24,897,038 p=0.000 n=20
Config Time 0.014s 0.014s ~ ~ ~ p=1.000 n=20
Parse Time 0.569s (± 1.97%) 0.560s (± 2.06%) ~ 0.505s 0.618s p=0.277 n=20
Bind Time 0.002s (±18.96%) 0.003s (±13.89%) ~ 0.002s 0.005s p=0.066 n=20
Check Time 5.459s (± 0.77%) 5.479s (± 0.61%) ~ 5.302s 5.577s p=0.374 n=20
Emit Time 0.508s (± 2.69%) 0.492s (± 1.81%) -0.007s (- 1.43%) 0.480s 0.555s p=0.011 n=20
Total Time 7.480s (± 0.47%) 7.427s (± 0.38%) -0.058s (- 0.77%) 7.340s 7.532s p=0.014 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,780,953 4,780,953 ~ ~ ~ p=1.000 n=20
Types 2,590,294 2,590,294 ~ ~ ~ p=1.000 n=20
Memory Used 2,574,335k (± 0.04%) 2,574,222k (± 0.04%) ~ 2,572,091k 2,581,377k p=0.756 n=20
Memory Allocs 49,413,130 (± 0.54%) 49,229,021 (± 0.14%) -97,179 (- 0.20%) 48,980,319 49,598,607 p=0.004 n=20
Config Time 0.043s (± 0.48%) 0.044s (± 1.91%) ~ 0.043s 0.051s p=0.090 n=20
Parse Time 0.998s (± 3.77%) 0.983s (± 2.68%) ~ 0.915s 1.161s p=0.114 n=20
Bind Time 0.335s (±10.40%) 0.222s (±12.14%) 🟩-0.113s (-33.67%) 0.155s 0.324s p=0.000 n=20
Check Time 10.515s (± 0.66%) 10.540s (± 0.60%) ~ 10.424s 11.071s p=0.216 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 11.962s (± 0.65%) 11.862s (± 0.68%) ~ 11.711s 12.499s p=0.076 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,755 1,838,755 ~ ~ ~ p=1.000 n=20
Types 1,146,948 1,146,948 ~ ~ ~ p=1.000 n=20
Memory Used 938,500k (± 0.01%) 938,346k (± 0.02%) ~ 937,466k 939,122k p=0.409 n=20
Memory Allocs 13,361,756 (± 0.16%) 13,333,059 (± 0.09%) ~ 13,298,789 13,396,273 p=0.053 n=20
Config Time 0.011s 0.011s (± 0.95%) ~ 0.010s 0.011s p=1.000 n=20
Parse Time 0.290s (± 2.45%) 0.285s (± 1.52%) ~ 0.269s 0.297s p=0.182 n=20
Bind Time 0.079s (± 9.18%) 0.044s (±12.46%) 🟩-0.036s (-45.63%) 0.035s 0.080s p=0.000 n=20
Check Time 2.421s (± 0.49%) 2.413s (± 0.59%) ~ 2.357s 2.451s p=0.452 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 2.819s (± 0.34%) 2.774s (± 0.39%) -0.043s (- 1.52%) 2.735s 2.808s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,181,292 1,181,292 ~ ~ ~ p=1.000 n=20
Types 435,048 435,048 ~ ~ ~ p=1.000 n=20
Memory Used 1,166,264k (± 0.35%) 1,164,934k (± 0.37%) ~ 1,153,397k 1,180,292k p=0.841 n=20
Memory Allocs 39,758,463 (± 0.12%) 39,670,846 (± 0.11%) -75,490 (- 0.19%) 39,466,350 39,795,399 p=0.009 n=20
Config Time 0.003s (±11.86%) 0.003s (±13.57%) ~ 0.002s 0.005s p=0.592 n=20
Parse Time 0.241s (± 1.53%) 0.239s (± 1.42%) ~ 0.227s 0.256s p=0.395 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.430s (± 0.35%) 1.430s (± 0.39%) ~ 1.410s 1.453s p=0.922 n=20
Emit Time 0.259s (± 2.82%) 0.258s (± 2.42%) ~ 0.235s 0.293s p=0.927 n=20
Total Time 16.883s (± 0.46%) 16.848s (± 0.38%) ~ 16.645s 17.126s p=0.349 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 261,272 261,272 ~ ~ ~ p=1.000 n=20
Types 194,886 194,886 ~ ~ ~ p=1.000 n=20
Memory Used 221,276k (± 0.02%) 220,977k (± 0.02%) -293k (- 0.13%) 220,839k 221,142k p=0.000 n=20
Memory Allocs 1,887,301 (± 0.02%) 1,884,728 (± 0.01%) -2,600 (- 0.14%) 1,884,276 1,885,688 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.102s (± 3.06%) 0.099s (± 3.52%) ~ 0.089s 0.114s p=0.332 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.807s (± 0.35%) 0.804s (± 0.46%) ~ 0.790s 0.818s p=0.225 n=20
Emit Time 0.086s (± 2.56%) 0.088s (± 3.54%) ~ 0.080s 0.106s p=0.422 n=20
Total Time 1.042s (± 0.43%) 1.037s (± 0.57%) ~ 1.015s 1.064s p=0.452 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,339,814 4,339,814 ~ ~ ~ p=1.000 n=20
Types 3,034,531 3,034,531 ~ ~ ~ p=1.000 n=20
Memory Used 2,386,273k (± 0.02%) 2,386,210k (± 0.02%) ~ 2,384,468k 2,387,846k p=0.596 n=20
Memory Allocs 36,909,294 (± 0.05%) 36,893,881 (± 0.04%) ~ 36,843,810 36,944,102 p=0.154 n=20
Config Time 0.006s (± 1.75%) 0.006s (± 2.43%) ~ 0.005s 0.006s p=0.773 n=20
Parse Time 0.545s (± 2.22%) 0.549s (± 1.64%) ~ 0.517s 0.587s p=0.898 n=20
Bind Time 0.160s (±10.47%) 0.112s (± 6.68%) 🟩-0.041s (-25.58%) 0.105s 0.180s p=0.000 n=20
Check Time 11.505s (± 0.63%) 11.392s (± 0.81%) ~ 11.100s 11.678s p=0.066 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.232s (± 0.63%) 12.073s (± 0.74%) -0.152s (- 1.24%) 11.771s 12.346s p=0.008 n=20
tanstack-router - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 567,328 567,328 ~ ~ ~ p=1.000 n=20
Types 396,844 396,844 ~ ~ ~ p=1.000 n=20
Memory Used 311,097k (± 0.01%) 311,011k (± 0.01%) -79k (- 0.03%) 310,867k 311,108k p=0.003 n=20
Memory Allocs 4,010,395 (± 0.04%) 4,011,524 (± 0.09%) ~ 4,006,054 4,044,441 p=0.729 n=20
Config Time 0.001s (±16.42%) 0.002s (±15.95%) ~ 0.001s 0.002s p=0.777 n=20
Parse Time 0.069s (± 3.21%) 0.070s (± 4.05%) ~ 0.060s 0.081s p=0.374 n=20
Bind Time 0.023s (±12.29%) 0.018s (±11.29%) 🟩-0.004s (-19.26%) 0.014s 0.028s p=0.005 n=20
Check Time 0.856s (± 0.49%) 0.856s (± 0.40%) ~ 0.840s 0.868s p=0.867 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.953s (± 0.63%) 0.949s (± 0.38%) ~ 0.932s 0.967s p=0.490 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 229,570 229,570 ~ ~ ~ p=1.000 n=20
Types 180,391 180,391 ~ ~ ~ p=1.000 n=20
Memory Used 190,327k (± 0.01%) 190,286k (± 0.02%) -41k (- 0.02%) 190,116k 190,448k p=0.036 n=20
Memory Allocs 1,292,801 (± 0.01%) 1,292,212 (± 0.01%) -581 (- 0.04%) 1,291,600 1,293,017 p=0.000 n=20
Config Time 0.000s (±95.71%) 0.000s (±95.71%) ~ 0.000s 0.001s p=1.000 n=20
Parse Time 0.076s (± 3.15%) 0.072s (± 2.41%) ~ 0.065s 0.078s p=0.051 n=20
Bind Time 0.032s (± 6.26%) 0.029s (± 6.45%) ~ 0.026s 0.037s p=0.104 n=20
Check Time 0.531s (± 0.59%) 0.530s (± 0.79%) ~ 0.518s 0.545s p=0.808 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.652s (± 0.53%) 0.644s (± 0.62%) -0.008s (- 1.27%) 0.631s 0.663s p=0.009 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 9,220,257 9,220,257 ~ ~ ~ p=1.000 n=20
Types 5,337,717 5,337,717 ~ ~ ~ p=1.000 n=20
Memory Used 6,127,795k (± 0.03%) 6,128,339k (± 0.02%) ~ 6,125,329k 6,132,335k p=0.330 n=20
Memory Allocs 68,037,641 (± 0.02%) 67,990,355 (± 0.01%) -41,920 (- 0.06%) 67,974,680 68,025,160 p=0.000 n=20
Config Time 0.059s (± 0.51%) 0.059s (± 0.49%) ~ 0.058s 0.060s p=0.572 n=20
Parse Time 2.261s (± 1.69%) 2.231s (± 1.39%) ~ 2.107s 2.352s p=0.245 n=20
Bind Time 0.667s (± 4.19%) 0.557s (± 6.92%) 🟩-0.126s (-18.93%) 0.502s 0.771s p=0.001 n=20
Check Time 17.290s (± 0.42%) 17.204s (± 0.63%) ~ 16.731s 17.554s p=0.143 n=20
Emit Time 4.987s (± 6.52%) 5.032s (± 7.19%) ~ 4.464s 6.388s p=0.784 n=20
Total Time 25.350s (± 1.26%) 25.169s (± 1.33%) ~ 24.624s 26.395s p=0.231 n=20
webpack - native
Errors 1,471 1,471 ~ ~ ~ p=1.000 n=20
Symbols 921,792 921,792 ~ ~ ~ p=1.000 n=20
Types 697,754 697,754 ~ ~ ~ p=1.000 n=20
Memory Used 817,528k (± 0.01%) 817,560k (± 0.01%) ~ 817,134k 818,147k p=0.927 n=20
Memory Allocs 7,168,864 (± 0.16%) 7,162,238 (± 0.16%) ~ 7,139,949 7,224,233 p=0.452 n=20
Config Time 0.007s 0.007s ~ ~ ~ p=1.000 n=20
Parse Time 0.295s (± 3.37%) 0.290s (± 2.97%) ~ 0.255s 0.328s p=0.169 n=20
Bind Time 0.084s (±11.94%) 0.062s (±12.12%) 🟩-0.023s (-27.14%) 0.052s 0.113s p=0.000 n=20
Check Time 2.674s (± 0.40%) 2.669s (± 0.36%) ~ 2.637s 2.708s p=0.401 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.107s (± 0.64%) 3.073s (± 0.50%) -0.029s (- 0.94%) 3.033s 3.144s p=0.001 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,479,487 4,479,487 ~ ~ ~ p=1.000 n=20
Types 4,656,663 4,656,663 ~ ~ ~ p=1.000 n=20
Memory Used 2,470,181k (± 0.01%) 2,469,971k (± 0.01%) ~ 2,469,119k 2,470,971k p=0.105 n=20
Memory Allocs 50,360,561 (± 0.01%) 50,346,281 (± 0.01%) -13,404 (- 0.03%) 50,336,334 50,370,007 p=0.000 n=20
Config Time 0.005s (± 2.11%) 0.005s (± 3.99%) ~ 0.004s 0.005s p=0.572 n=20
Parse Time 0.266s (± 1.59%) 0.261s (± 1.67%) ~ 0.238s 0.275s p=0.087 n=20
Bind Time 0.078s (±10.26%) 0.061s (± 9.05%) 🟩-0.017s (-21.24%) 0.055s 0.107s p=0.001 n=20
Check Time 9.935s (± 0.33%) 9.946s (± 0.26%) ~ 9.872s 10.131s p=0.729 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.293s (± 0.37%) 10.283s (± 0.27%) ~ 10.217s 10.491s p=0.841 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team Domain: Performance Performance related For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

3 participants