Skip to content

Add distributive conditional type relationship rules - #64984

Open
Wesley Wigham (weswigham) wants to merge 3 commits into
microsoft:mainfrom
weswigham:distributive-conditional-relations
Open

Wesley Wigham (weswigham) wants to merge 3 commits into
microsoft:mainfrom
weswigham:distributive-conditional-relations

Conversation

@weswigham

Copy link
Copy Markdown
Member

This is basically a redo of #27932, though updated and better integrated with the existing relationship rules.

This change allows a source type S to be assigned to a target type T when it is a distributive conditional type and:

  • S is assignable to all possible distributed true and/or false branch types
  • S is possibly never for the same inputs that make T's check type never or S cannot ever become never through instantiation (eg, because S has top-level structure)
  • S "distributes" in a compatible way with the conditional distribution (eg, {x: string | number} is related to {x: string} | {x: number}, but {x: string | number, y: string | number} is not related to {x: string, y: string} | {x: number, y: number})
  • any infer type parameters don't have inference results/constraints that would invalidate the above

To support that, we introduce a function type mapper that can track how many times a type parameter appears in a type (so, eg, you can know that [T, T] can't relate to T extends T ? [T, T] : never because the distribution target appears in multiple places, so unions without and within can't be equivalent), and a new, semi-strict relationship rule for relating infer positions strictly, but otherwise relate as loose as assignability, generally.

@weswigham

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) test this

@typescript-automation

typescript-automation Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
test top400 ✅ Started 👀 Results
user test this ✅ Started 👀 Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started ❌ Results

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

Critical flaws in intersection inference and dependent infer constraints permit unsound generic assignments even when the corresponding concrete conditional types resolve to never.

2 open issues
What changed in this PR

Extends the native TypeScript checker’s assignability rules for distributive conditional types, revisiting #27932 while accounting for never, correlated union members, and inference constraints.

Changes:

  • Adds branch-wise conditional checks and a dedicated inference-pattern relation.
  • Tracks mapper state and replays cached effects to preserve type-parameter occurrence counts.
  • Adds regression coverage and updates baselines, with comment-only clarifications in existing fixtures.
File Description
tsc/​testdata/​tests/​cases/​compiler/​excessPropertyCheckingIntersectionWithConditional.ts Clarifies the expected error in a comment.
tsc/​testdata/​tests/​cases/​compiler/​distributiveConditionalTypeRelations.ts Adds distribution, never, and inference regression cases.
tsc/​testdata/​tests/​cases/​compiler/​distributiveConditionalTypeInferenceNonStrict.ts Covers inference under non-strict checking.
tsc/​testdata/​tests/​cases/​compiler/​conditionalTypeAssignabilityWhenDeferred.ts Clarifies expected behavior in comments.
tsc/​testdata/​baselines/​reference/​compiler/​excessPropertyCheckingIntersectionWithConditional.types Refreshes embedded comments.
tsc/​testdata/​baselines/​reference/​compiler/​excessPropertyCheckingIntersectionWithConditional.symbols Refreshes embedded comments.
tsc/​testdata/​baselines/​reference/​compiler/​excessPropertyCheckingIntersectionWithConditional.js Reflects the comment change in emitted output.
tsc/​testdata/​baselines/​reference/​compiler/​excessPropertyCheckingIntersectionWithConditional.errors.txt Records the rejected conditional assignment.
tsc/​testdata/​baselines/​reference/​compiler/​distributiveConditionalTypeRelations.types Records types for the new regression cases.
tsc/​testdata/​baselines/​reference/​compiler/​distributiveConditionalTypeRelations.errors.txt Records expected assignment errors.
tsc/​testdata/​baselines/​reference/​compiler/​distributiveConditionalTypeInferenceNonStrict.types Records non-strict inference types.
tsc/​testdata/​baselines/​reference/​compiler/​distributiveConditionalTypeInferenceNonStrict.symbols Records non-strict test symbols.
tsc/​testdata/​baselines/​reference/​compiler/​distributiveConditionalTypeInferenceNonStrict.errors.txt Records non-strict inference errors.
tsc/​testdata/​baselines/​reference/​compiler/​conditionalTypeAssignabilityWhenDeferred.types Refreshes explanatory comments.
tsc/​testdata/​baselines/​reference/​compiler/​conditionalTypeAssignabilityWhenDeferred.symbols Updates comments and declaration positions.
tsc/​testdata/​baselines/​reference/​compiler/​conditionalTypeAssignabilityWhenDeferred.js Reflects fixture comment changes.
tsc/​testdata/​baselines/​reference/​compiler/​conditionalTypeAssignabilityWhenDeferred.errors.txt Records additional never-related rejections.
tsc/​internal/​checker/​types.go Adds inference markers and conditional caches.
tsc/​internal/​checker/​types_test.go Tests inference relations and mapper cache effects.
tsc/​internal/​checker/​relater.go Implements conditional and inference-pattern relationship rules.
tsc/​internal/​checker/​mapper.go Adds mapper state capture and replay hooks.
tsc/​internal/​checker/​checker.go Integrates rigid inference mapping and state-aware caching.

Review effort: Balanced

Comment thread tsc/internal/checker/relater.go Resolved
Comment thread tsc/internal/checker/relater.go Resolved
@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Wesley Wigham (@weswigham), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham) Here are the results of running the user tests with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

effect

packages/tools/ai-docgen/tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham), the perf run you requested failed. You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

fabricjs/fabric.js

4 of 8 projects failed to build with the old tsc and were ignored

tsconfig-extensions.json

tsconfig.build.json

tsconfig.packages.build.json

facebook/lexical

16 of 35 projects failed to build with the old tsc and were ignored

tsconfig.build.json

dev-examples/mdast-editor/tsconfig.json

dev-examples/hmr/tsconfig.json

dev-examples/dom-import/tsconfig.json

lobehub/lobehub

34 of 35 projects failed to build with the old tsc and were ignored

packages/sdk/tsconfig.json

  • error TS2322: Type '<TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError, string>, "method"> & Pick<...>) => Promise<...>' is not assignable to type 'RequestFn'.

microsoft/vscode

36 of 117 projects failed to build with the old tsc and were ignored

src/tsconfig.monaco.json

SBoudrias/Inquirer.js

tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/testing/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/prompts/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/number/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/inquirer/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/i18n/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

packages/demo/tsconfig.json

  • error TS2345: Argument of type 'number' is not assignable to parameter of type 'Required extends true ? number : number | undefined'.

supabase/supabase

44 of 56 projects failed to build with the old tsc and were ignored

packages/pg-meta/tsconfig.json

  • error TS2322: Type 'ZodArray<ZodObject<{ id: ZodNumber; schema: ZodString; name: ZodString; comment: ZodNullable<ZodString>; foreign_server_name: ZodString; foreign_data_wrapper_name: ZodString; foreign_data_wrapper_handler: ZodString; columns: ZodOptional<ZodArray<ZodObject<{ id: ZodString; table_id: ZodNumber; schema: ZodString; table: ZodString; name: ZodString; ordinal_position: ZodNumber; data_type: ZodString; format: ZodString; format_schema: ZodOptional<ZodString>; is_identity: ZodBoolean; identity_generation: ZodNullable<ZodString>; is_generated: ZodBoolean; is_nullable: ZodBoolean; is_updatable: ZodBoolean; is_unique: ZodBoolean; check: ZodNullable<ZodString>; default_value: ZodNullable<ZodAny>; enums: ZodArray<ZodString, "many">; comment: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }>, "many">>; }, "strip", ZodTypeAny, { id: number; schema: string; name: string; comment: string | null; foreign_server_name: string; foreign_data_wrapper_name: string; foreign_data_wrapper_handler: string; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }, { id: number; schema: string; name: string; comment: string | null; foreign_server_name: string; foreign_data_wrapper_name: string; foreign_data_wrapper_handler: string; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }>, "many">' is not assignable to type 'ZodType<ForeignTableBasedOnIncludeColumns<T>[], ZodTypeDef, ForeignTableBasedOnIncludeColumns<T>[]>'.
  • error TS2322: Type 'ZodArray<ZodObject<{ id: ZodNumber; schema: ZodString; name: ZodString; is_populated: ZodBoolean; comment: ZodNullable<ZodString>; columns: ZodOptional<ZodArray<ZodObject<{ id: ZodString; table_id: ZodNumber; schema: ZodString; table: ZodString; name: ZodString; ordinal_position: ZodNumber; data_type: ZodString; format: ZodString; format_schema: ZodOptional<ZodString>; is_identity: ZodBoolean; identity_generation: ZodNullable<ZodString>; is_generated: ZodBoolean; is_nullable: ZodBoolean; is_updatable: ZodBoolean; is_unique: ZodBoolean; check: ZodNullable<ZodString>; default_value: ZodNullable<ZodAny>; enums: ZodArray<ZodString, "many">; comment: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }>, "many">>; }, "strip", ZodTypeAny, { id: number; schema: string; name: string; is_populated: boolean; comment: string | null; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }, { id: number; schema: string; name: string; is_populated: boolean; comment: string | null; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }>, "many">' is not assignable to type 'ZodType<MaterializedViewBasedOnIncludeColumns<T>[], ZodTypeDef, MaterializedViewBasedOnIncludeColumns<T>[]>'.
  • error TS2322: Type 'ZodArray<ZodObject<{ id: ZodNumber; schema: ZodString; name: ZodString; rls_enabled: ZodBoolean; rls_forced: ZodBoolean; replica_identity: ZodEnum<["DEFAULT", "INDEX", "FULL", "NOTHING"]>; bytes: ZodNumber; size: ZodString; live_rows_estimate: ZodNumber; dead_rows_estimate: ZodNumber; comment: ZodNullable<ZodString>; primary_keys: ZodArray<ZodObject<{ table_id: ZodNumber; name: ZodString; schema: ZodString; table_name: ZodString; }, "strip", ZodTypeAny, { table_id: number; name: string; schema: string; table_name: string; }, { table_id: number; name: string; schema: string; table_name: string; }>, "many">; relationships: ZodArray<ZodObject<{ id: ZodNumber; constraint_name: ZodString; source_schema: ZodString; source_table_name: ZodString; source_column_name: ZodString; target_table_schema: ZodString; target_table_name: ZodString; target_column_name: ZodString; }, "strip", ZodTypeAny, { id: number; constraint_name: string; source_schema: string; source_table_name: string; source_column_name: string; target_table_schema: string; target_table_name: string; target_column_name: string; }, { id: number; constraint_name: string; source_schema: string; source_table_name: string; source_column_name: string; target_table_schema: string; target_table_name: string; target_column_name: string; }>, "many">; columns: ZodOptional<ZodArray<ZodObject<{ id: ZodString; table_id: ZodNumber; schema: ZodString; table: ZodString; name: ZodString; ordinal_position: ZodNumber; data_type: ZodString; format: ZodString; format_schema: ZodOptional<ZodString>; is_identity: ZodBoolean; identity_generation: ZodNullable<ZodString>; is_generated: ZodBoolean; is_nullable: ZodBoolean; is_updatable: ZodBoolean; is_unique: ZodBoolean; check: ZodNullable<ZodString>; default_value: ZodNullable<ZodAny>; enums: ZodArray<ZodString, "many">; comment: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }>, "many">>; }, "strip", ZodTypeAny, { id: number; schema: string; name: string; rls_enabled: boolean; rls_forced: boolean; replica_identity: "DEFAULT" | "FULL" | "INDEX" | "NOTHING"; bytes: number; size: string; live_rows_estimate: number; dead_rows_estimate: number; comment: string | null; primary_keys: { table_id: number; name: string; schema: string; table_name: string; }[]; relationships: { id: number; constraint_name: string; source_schema: string; source_table_name: string; source_column_name: string; target_table_schema: string; target_table_name: string; target_column_name: string; }[]; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }, { id: number; schema: string; name: string; rls_enabled: boolean; rls_forced: boolean; replica_identity: "DEFAULT" | "FULL" | "INDEX" | "NOTHING"; bytes: number; size: string; live_rows_estimate: number; dead_rows_estimate: number; comment: string | null; primary_keys: { table_id: number; name: string; schema: string; table_name: string; }[]; relationships: { id: number; constraint_name: string; source_schema: string; source_table_name: string; source_column_name: string; target_table_schema: string; target_table_name: string; target_column_name: string; }[]; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }>, "many">' is not assignable to type 'ZodType<TableBasedOnIncludeColumns<T>[], ZodTypeDef, TableBasedOnIncludeColumns<T>[]>'.
  • error TS2322: Type 'ZodArray<ZodObject<{ id: ZodNumber; schema: ZodString; name: ZodString; is_updatable: ZodBoolean; comment: ZodNullable<ZodString>; columns: ZodOptional<ZodArray<ZodObject<{ id: ZodString; table_id: ZodNumber; schema: ZodString; table: ZodString; name: ZodString; ordinal_position: ZodNumber; data_type: ZodString; format: ZodString; format_schema: ZodOptional<ZodString>; is_identity: ZodBoolean; identity_generation: ZodNullable<ZodString>; is_generated: ZodBoolean; is_nullable: ZodBoolean; is_updatable: ZodBoolean; is_unique: ZodBoolean; check: ZodNullable<ZodString>; default_value: ZodNullable<ZodAny>; enums: ZodArray<ZodString, "many">; comment: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }, { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }>, "many">>; }, "strip", ZodTypeAny, { id: number; schema: string; name: string; is_updatable: boolean; comment: string | null; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }, { id: number; schema: string; name: string; is_updatable: boolean; comment: string | null; columns?: { id: string; table_id: number; schema: string; table: string; name: string; ordinal_position: number; data_type: string; format: string; format_schema?: string | undefined; is_identity: boolean; identity_generation: string | null; is_generated: boolean; is_nullable: boolean; is_updatable: boolean; is_unique: boolean; check: string | null; default_value?: any; enums: string[]; comment: string | null; }[] | undefined; }>, "many">' is not assignable to type 'ZodType<ViewBasedOnIncludeColumns<T>[], ZodTypeDef, ViewBasedOnIncludeColumns<T>[]>'.

@jakebailey

Copy link
Copy Markdown
Member

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

@typescript-automation

typescript-automation Bot commented Oct 28, 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

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

Provisional hosted-runner results: these VMs are not the dedicated benchmark machines. Results may be noisier and are not comparable to the historical series. For comparisons, both revisions of each scenario ran on the same VM.

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 88,466 88,466 ~ ~ ~ p=1.000 n=12
Types 79,607 79,610 +3 (+ 0.00%) ~ ~ p=0.000 n=12
Memory Used 104,166k (± 0.04%) 104,214k (± 0.05%) ~ 104,096k 104,322k p=0.080 n=12
Memory Allocs 2,200,554 (± 0.00%) 2,200,731 (± 0.00%) +177 (+ 0.01%) 2,200,585 2,201,038 p=0.008 n=12
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Parse Time 0.034s (± 2.92%) 0.034s (± 2.46%) ~ 0.032s 0.037s p=0.832 n=12
Bind Time 0.013s (± 5.88%) 0.013s (± 7.62%) ~ 0.011s 0.015s p=0.892 n=12
Check Time 0.348s (± 0.84%) 0.355s (± 0.77%) +0.007s (+ 2.01%) 0.349s 0.364s p=0.001 n=12
Emit Time 0.217s (± 1.73%) 0.223s (± 2.23%) +0.006s (+ 2.65%) 0.208s 0.233s p=0.046 n=12
Total Time 0.617s (± 0.77%) 0.630s (± 0.96%) +0.012s (+ 1.96%) 0.615s 0.648s p=0.004 n=12
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=12
Symbols 586,613 (± 0.02%) 586,572 (± 0.02%) ~ 586,216 586,780 p=0.843 n=12
Types 241,693 (± 0.00%) 241,889 (± 0.00%) +196 (+ 0.08%) 241,885 241,897 p=0.000 n=12
Memory Used 517,795k (± 0.03%) 517,993k (± 0.02%) ~ 517,691k 518,300k p=0.062 n=12
Memory Allocs 13,113,125 (± 0.02%) 13,114,587 (± 0.02%) ~ 13,111,688 13,122,812 p=0.101 n=12
Config Time 0.017s (± 3.43%) 0.017s (± 1.07%) ~ 0.016s 0.017s p=1.000 n=12
Parse Time 0.196s (± 3.88%) 0.195s (± 4.93%) ~ 0.178s 0.228s p=0.702 n=12
Bind Time 0.051s (± 3.92%) 0.056s (± 8.21%) ~ 0.049s 0.069s p=0.099 n=12
Check Time 0s 0s ~ ~ ~ p=1.000 n=12
Emit Time 1.158s (± 0.99%) 1.155s (± 1.10%) ~ 1.128s 1.187s p=0.921 n=12
Total Time 1.435s (± 0.82%) 1.440s (± 1.02%) ~ 1.401s 1.476s p=0.659 n=12
arktype - native
Errors 0 2 🔻+2 (+ ∞%) ~ ~ p=0.000 n=12
Symbols 685,943 685,800 -143 (- 0.02%) ~ ~ p=0.000 n=12
Types 939,490 942,461 +2,971 (+ 0.32%) ~ ~ p=0.000 n=12
Memory Used 497,242k (± 0.02%) 495,765k (± 0.02%) -1,478k (- 0.30%) 495,612k 496,003k p=0.000 n=12
Memory Allocs 12,804,566 (± 0.02%) 11,679,948 (± 0.02%) 🟩-1,124,617 (- 8.78%) 11,677,604 11,690,624 p=0.000 n=12
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=12
Parse Time 0.057s (± 3.14%) 0.056s (± 2.49%) ~ 0.053s 0.061s p=0.306 n=12
Bind Time 0.017s (± 9.35%) 0.018s (±10.33%) ~ 0.015s 0.023s p=0.835 n=12
Check Time 1.359s (± 0.66%) 1.407s (± 0.52%) +0.048s (+ 3.53%) 1.390s 1.426s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 1.478s (± 0.46%) 1.486s (± 0.54%) ~ 1.464s 1.509s p=0.123 n=12
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=12
Symbols 3,784,027 3,881,860 +97,833 (+ 2.59%) ~ ~ p=0.000 n=12
Types 1,355,982 1,383,890 +27,908 (+ 2.06%) ~ ~ p=0.000 n=12
Memory Used 1,829,068k (± 0.10%) 1,962,617k (± 0.06%) 🔻+133,549k (+ 7.30%) 1,959,750k 1,967,075k p=0.000 n=12
Memory Allocs 26,693,823 (± 0.05%) 27,965,365 (± 0.06%) 🔻+1,271,542 (+ 4.76%) 27,908,318 28,008,338 p=0.000 n=12
Config Time 0.014s 0.014s (± 2.00%) ~ 0.014s 0.015s p=0.217 n=12
Parse Time 0.492s (± 2.75%) 0.481s (± 2.66%) ~ 0.447s 0.512s p=0.183 n=12
Bind Time 0.002s (±20.46%) 0.001s (±22.86%) ~ 0.001s 0.002s p=0.684 n=12
Check Time 4.542s (± 0.24%) 5.542s (± 0.36%) 🔻+1.000s (+22.01%) 5.498s 5.606s p=0.000 n=12
Emit Time 0.414s (± 7.53%) 0.387s (± 4.05%) ~ 0.333s 0.401s p=0.965 n=12
Total Time 6.243s (± 0.61%) 7.220s (± 0.29%) 🔻+0.977s (+15.65%) 7.148s 7.269s p=0.000 n=12
sentry - native
Errors 2 3 🔻+1 (+50.00%) ~ ~ p=0.000 n=12
Symbols 4,793,249 4,794,024 +775 (+ 0.02%) ~ ~ p=0.000 n=12
Types 2,607,051 2,614,338 +7,287 (+ 0.28%) ~ ~ p=0.000 n=12
Memory Used 2,878,560k (± 0.03%) 2,882,017k (± 0.04%) +3,457k (+ 0.12%) 2,879,510k 2,884,313k p=0.000 n=12
Memory Allocs 75,882,738 (± 0.13%) 75,920,496 (± 0.07%) ~ 75,795,687 76,070,667 p=0.410 n=12
Config Time 0.045s (± 1.27%) 0.045s (± 1.84%) ~ 0.044s 0.048s p=0.655 n=12
Parse Time 0.729s (± 5.08%) 0.713s (± 2.91%) ~ 0.665s 0.787s p=0.788 n=12
Bind Time 0.220s (±13.03%) 0.202s (±13.92%) ~ 0.154s 0.284s p=0.235 n=12
Check Time 9.235s (± 0.47%) 9.370s (± 0.38%) +0.135s (+ 1.46%) 9.291s 9.453s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 10.288s (± 0.63%) 10.393s (± 0.42%) +0.105s (+ 1.02%) 10.296s 10.526s p=0.007 n=12
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 1,883,075 1,883,107 +32 (+ 0.00%) ~ ~ p=0.000 n=12
Types 1,158,171 1,161,226 +3,055 (+ 0.26%) ~ ~ p=0.000 n=12
Memory Used 971,522k (± 0.02%) 974,429k (± 0.02%) +2,908k (+ 0.30%) 973,961k 974,861k p=0.000 n=12
Memory Allocs 13,710,843 (± 0.14%) 13,737,159 (± 0.09%) +26,316 (+ 0.19%) 13,709,278 13,768,775 p=0.024 n=12
Config Time 0.015s (± 1.93%) 0.015s (± 1.93%) ~ 0.014s 0.015s p=1.000 n=12
Parse Time 0.247s (± 3.25%) 0.250s (± 5.34%) ~ 0.230s 0.305s p=0.810 n=12
Bind Time 0.056s (±15.62%) 0.051s (±11.26%) ~ 0.043s 0.077s p=0.486 n=12
Check Time 2.127s (± 0.49%) 2.186s (± 0.51%) +0.059s (+ 2.76%) 2.168s 2.235s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 2.465s (± 0.77%) 2.523s (± 0.70%) +0.058s (+ 2.35%) 2.491s 2.573s p=0.000 n=12
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 1,184,976 1,185,040 +64 (+ 0.01%) ~ ~ p=0.000 n=12
Types 438,967 439,416 +449 (+ 0.10%) ~ ~ p=0.000 n=12
Memory Used 1,170,361k (± 0.39%) 1,167,916k (± 0.56%) ~ 1,151,405k 1,193,253k p=0.219 n=12
Memory Allocs 77,348,505 (± 0.17%) 77,279,952 (± 0.14%) ~ 76,948,975 77,540,095 p=0.219 n=12
Config Time 0.004s (±11.78%) 0.004s (±10.30%) ~ 0.003s 0.005s p=0.459 n=12
Parse Time 0.183s (± 2.67%) 0.187s (± 1.61%) ~ 0.177s 0.195s p=0.224 n=12
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Check Time 1.175s (± 0.26%) 1.192s (± 0.60%) +0.017s (+ 1.45%) 1.176s 1.213s p=0.000 n=12
Emit Time 0.215s (± 2.05%) 0.213s (± 1.29%) ~ 0.205s 0.222s p=0.434 n=12
Total Time 13.916s (± 0.37%) 14.094s (± 0.48%) +0.177s (+ 1.27%) 13.917s 14.202s p=0.000 n=12
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 263,513 263,545 +32 (+ 0.01%) ~ ~ p=0.000 n=12
Types 196,118 196,307 +189 (+ 0.10%) ~ ~ p=0.000 n=12
Memory Used 224,589k (± 0.03%) 224,775k (± 0.02%) +186k (+ 0.08%) 224,630k 224,918k p=0.000 n=12
Memory Allocs 4,303,902 (± 0.01%) 4,305,276 (± 0.01%) +1,374 (+ 0.03%) 4,303,524 4,306,487 p=0.000 n=12
Config Time 0.001s (±19.81%) 0.001s (±19.81%) ~ 0.000s 0.001s p=1.000 n=12
Parse Time 0.074s (± 4.72%) 0.071s (± 4.66%) ~ 0.065s 0.081s p=0.180 n=12
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Check Time 0.594s (± 0.69%) 0.600s (± 0.66%) +0.006s (+ 1.05%) 0.591s 0.613s p=0.008 n=12
Emit Time 0.097s (± 3.05%) 0.094s (± 3.92%) ~ 0.085s 0.106s p=0.199 n=12
Total Time 0.801s (± 0.78%) 0.801s (± 0.73%) ~ 0.786s 0.816s p=1.000 n=12
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=12
Symbols 4,350,705 4,351,213 +508 (+ 0.01%) ~ ~ p=0.000 n=12
Types 3,040,691 3,043,269 +2,578 (+ 0.08%) ~ ~ p=0.000 n=12
Memory Used 2,433,220k (± 0.05%) 2,436,805k (± 0.02%) +3,585k (+ 0.15%) 2,435,387k 2,437,928k p=0.000 n=12
Memory Allocs 37,878,824 (± 0.05%) 37,935,898 (± 0.06%) +57,074 (+ 0.15%) 37,883,836 37,994,997 p=0.000 n=12
Config Time 0.005s 0.005s ~ ~ ~ p=1.000 n=12
Parse Time 0.362s (± 2.91%) 0.363s (± 2.69%) ~ 0.342s 0.389s p=1.000 n=12
Bind Time 0.116s (±11.80%) 0.108s (± 4.91%) ~ 0.097s 0.123s p=0.809 n=12
Check Time 10.835s (± 0.22%) 11.078s (± 0.65%) +0.243s (+ 2.25%) 10.929s 11.260s p=0.000 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 11.332s (± 0.31%) 11.570s (± 0.62%) +0.238s (+ 2.10%) 11.410s 11.749s p=0.000 n=12
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=12
Symbols 231,617 231,641 +24 (+ 0.01%) ~ ~ p=0.000 n=12
Types 181,196 181,344 +148 (+ 0.08%) ~ ~ p=0.000 n=12
Memory Used 193,528k (± 0.02%) 193,677k (± 0.02%) +149k (+ 0.08%) 193,584k 193,756k p=0.000 n=12
Memory Allocs 1,372,718 (± 0.01%) 1,373,799 (± 0.02%) +1,081 (+ 0.08%) 1,373,465 1,374,961 p=0.000 n=12
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Parse Time 0.070s (± 3.17%) 0.069s (± 4.06%) ~ 0.065s 0.080s p=0.472 n=12
Bind Time 0.032s (± 3.46%) 0.033s (± 5.47%) ~ 0.027s 0.039s p=0.123 n=12
Check Time 0.503s (± 0.79%) 0.509s (± 0.94%) ~ 0.500s 0.520s p=0.053 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 0.616s (± 0.61%) 0.623s (± 0.85%) ~ 0.613s 0.637s p=0.057 n=12
vscode - native
Errors 10 11 🔻+1 (+10.00%) ~ ~ p=0.000 n=12
Symbols 7,332,462 7,332,815 +353 (+ 0.00%) ~ ~ p=0.000 n=12
Types 4,311,168 4,312,501 +1,333 (+ 0.03%) ~ ~ p=0.000 n=12
Memory Used 5,099,375k (± 0.03%) 5,104,887k (± 0.03%) +5,512k (+ 0.11%) 5,101,745k 5,110,347k p=0.000 n=12
Memory Allocs 64,435,124 (± 0.01%) 64,509,060 (± 0.01%) +73,936 (+ 0.11%) 64,494,759 64,532,993 p=0.000 n=12
Config Time 0.070s (± 0.87%) 0.070s (± 0.97%) ~ 0.069s 0.072s p=0.800 n=12
Parse Time 1.288s (± 0.94%) 1.287s (± 1.79%) ~ 1.200s 1.358s p=0.944 n=12
Bind Time 0.386s (± 0.97%) 0.418s (±13.52%) ~ 0.366s 0.663s p=0.258 n=12
Check Time 11.831s (± 0.57%) 11.734s (± 0.55%) ~ 11.588s 11.896s p=0.068 n=12
Emit Time 3.823s (± 2.95%) 3.875s (± 5.41%) ~ 3.579s 4.447s p=0.541 n=12
Total Time 17.469s (± 0.96%) 17.456s (± 1.40%) ~ 17.043s 18.189s p=0.514 n=12
webpack - native
Errors 619 619 ~ ~ ~ p=1.000 n=12
Symbols 925,405 925,830 +425 (+ 0.05%) ~ ~ p=0.000 n=12
Types 647,033 648,879 +1,846 (+ 0.29%) ~ ~ p=0.000 n=12
Memory Used 694,829k (± 0.03%) 695,934k (± 0.02%) +1,106k (+ 0.16%) 695,629k 696,284k p=0.000 n=12
Memory Allocs 6,672,187 (± 0.02%) 6,691,754 (± 0.01%) +19,567 (+ 0.29%) 6,689,433 6,694,877 p=0.000 n=12
Config Time 0.007s 0.007s ~ ~ ~ p=1.000 n=12
Parse Time 0.203s (± 5.19%) 0.201s (± 5.67%) ~ 0.170s 0.235s p=0.723 n=12
Bind Time 0.059s (± 8.54%) 0.064s (±12.49%) ~ 0.051s 0.086s p=0.502 n=12
Check Time 1.750s (± 0.54%) 1.778s (± 0.67%) +0.028s (+ 1.60%) 1.759s 1.812s p=0.001 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 2.056s (± 0.82%) 2.087s (± 0.90%) +0.032s (+ 1.54%) 2.038s 2.128s p=0.016 n=12
xstate-main - native
Errors 0 14 🔻+14 (+ ∞%) ~ ~ p=0.000 n=12
Symbols 640,494 642,000 +1,506 (+ 0.24%) ~ ~ p=0.000 n=12
Types 387,992 392,214 +4,222 (+ 1.09%) ~ ~ p=0.000 n=12
Memory Used 350,849k (± 0.04%) 352,825k (± 0.03%) +1,976k (+ 0.56%) 352,612k 353,081k p=0.000 n=12
Memory Allocs 4,066,281 (± 0.10%) 4,110,353 (± 0.06%) +44,072 (+ 1.08%) 4,103,994 4,114,239 p=0.000 n=12
Config Time 0.003s 0.003s (±12.54%) 🟩-0.000s (-13.89%) 0.002s 0.003s p=0.037 n=12
Parse Time 0.107s (± 3.52%) 0.101s (± 5.81%) 🟩-0.007s (- 6.05%) 0.086s 0.118s p=0.049 n=12
Bind Time 0.028s (± 9.34%) 0.031s (±15.99%) ~ 0.023s 0.046s p=0.967 n=12
Check Time 0.695s (± 0.95%) 0.694s (± 2.22%) ~ 0.646s 0.729s p=0.723 n=12
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=12
Total Time 0.841s (± 1.04%) 0.835s (± 2.18%) ~ 0.772s 0.865s p=1.000 n=12
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - 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

@weswigham
Wesley Wigham (weswigham) requested a balanced review from Copilot October 28, 2026 21:10
@weswigham

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) test this

@typescript-automation

typescript-automation Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started 👀 Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

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.

🔵 Needs a closer look

Changes to core assignability semantics and stateful mapper-effect replay warrant compiler-maintainer review plus compiler-wide regression and performance validation unavailable in this environment.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Wesley Wigham (@weswigham), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham) Here are the results of running the user tests with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

effect

packages/tools/ai-docgen/tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham)
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,466 88,466 ~ ~ ~ p=1.000 n=20
Types 79,607 79,610 +3 (+ 0.00%) ~ ~ p=0.000 n=20
Memory Used 104,159k (± 0.03%) 104,184k (± 0.02%) ~ 104,113k 104,256k p=0.167 n=20
Memory Allocs 2,200,783 (± 0.00%) 2,200,944 (± 0.00%) +161 (+ 0.01%) 2,200,666 2,201,341 p=0.023 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.021s (± 2.64%) 0.022s (± 2.43%) ~ 0.020s 0.024s p=0.073 n=20
Bind Time 0.009s (± 5.25%) 0.009s (± 4.95%) ~ 0.007s 0.010s p=0.999 n=20
Check Time 0.226s (± 0.75%) 0.228s (± 0.89%) ~ 0.222s 0.242s p=0.069 n=20
Emit Time 0.155s (± 1.43%) 0.155s (± 0.92%) ~ 0.151s 0.162s p=0.642 n=20
Total Time 0.414s (± 0.42%) 0.417s (± 0.75%) ~ 0.405s 0.436s p=0.182 n=20
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 586,508 (± 0.01%) 586,556 (± 0.02%) ~ 586,133 586,893 p=0.635 n=20
Types 241,687 (± 0.00%) 241,877 (± 0.00%) +190 (+ 0.08%) 241,873 241,887 p=0.000 n=20
Memory Used 517,966k (± 0.02%) 518,272k (± 0.02%) +305k (+ 0.06%) 517,935k 518,550k p=0.000 n=20
Memory Allocs 13,117,105 (± 0.03%) 13,124,256 (± 0.05%) +7,150 (+ 0.05%) 13,112,343 13,169,578 p=0.014 n=20
Config Time 0.010s (± 2.13%) 0.010s (± 1.51%) ~ 0.009s 0.011s p=0.110 n=20
Parse Time 0.137s (± 3.31%) 0.139s (± 2.61%) ~ 0.121s 0.154s p=0.175 n=20
Bind Time 0.050s (± 9.77%) 0.051s (± 9.17%) ~ 0.043s 0.077s p=0.375 n=20
Check Time 0s 0s ~ ~ ~ p=1.000 n=20
Emit Time 0.980s (± 1.40%) 0.997s (± 1.32%) ~ 0.940s 1.051s p=0.090 n=20
Total Time 1.188s (± 1.21%) 1.210s (± 0.96%) +0.022s (+ 1.86%) 1.163s 1.272s p=0.039 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 685,920 686,178 +258 (+ 0.04%) ~ ~ p=0.000 n=20
Types 939,467 943,122 +3,655 (+ 0.39%) ~ ~ p=0.000 n=20
Memory Used 497,286k (± 0.01%) 501,285k (± 0.01%) +3,999k (+ 0.80%) 501,114k 501,575k p=0.000 n=20
Memory Allocs 12,804,746 (± 0.02%) 12,840,077 (± 0.01%) +35,331 (+ 0.28%) 12,836,851 12,851,104 p=0.000 n=20
Config Time 0.001s 0.001s (± 9.93%) ~ 0.001s 0.002s p=1.000 n=20
Parse Time 0.047s (± 2.71%) 0.047s (± 3.90%) ~ 0.042s 0.054s p=0.918 n=20
Bind Time 0.014s (± 5.46%) 0.015s (± 7.32%) 🔻+0.001s (+ 8.06%) 0.013s 0.023s p=0.010 n=20
Check Time 1.121s (± 1.23%) 1.174s (± 1.36%) 🔻+0.052s (+ 4.68%) 1.126s 1.250s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.213s (± 1.11%) 1.269s (± 1.35%) 🔻+0.056s (+ 4.60%) 1.214s 1.346s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,376 45,376 ~ ~ ~ p=1.000 n=20
Types 7,573 7,574 +1 (+ 0.01%) ~ ~ p=0.000 n=20
Memory Used 27,841k (± 0.02%) 27,845k (± 0.02%) ~ 27,822k 27,881k p=0.490 n=20
Memory Allocs 323,321 (± 0.05%) 323,372 (± 0.03%) ~ 322,893 323,720 p=0.351 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.010s (± 3.35%) 0.010s (± 2.52%) ~ 0.009s 0.010s p=0.775 n=20
Bind Time 0.002s (±13.31%) 0.003s (±13.53%) ~ 0.002s 0.004s p=0.275 n=20
Check Time 0.008s (± 4.54%) 0.008s (± 5.50%) ~ 0.007s 0.010s p=0.874 n=20
Emit Time 0.010s (± 2.93%) 0.010s (± 2.91%) ~ 0.008s 0.010s p=0.445 n=20
Total Time 0.031s (± 1.36%) 0.031s (± 1.00%) ~ 0.030s 0.032s p=0.597 n=20
effect - native
Errors 12 16 🔻+4 (+33.33%) ~ ~ p=0.000 n=20
Symbols 1,235,115 1,241,788 +6,673 (+ 0.54%) ~ ~ p=0.000 n=20
Types 894,113 904,268 +10,155 (+ 1.14%) ~ ~ p=0.000 n=20
Memory Used 940,482k (± 0.01%) 946,712k (± 0.02%) +6,231k (+ 0.66%) 946,187k 947,653k p=0.000 n=20
Memory Allocs 15,752,132 (± 0.01%) 15,880,611 (± 0.01%) +128,478 (+ 0.82%) 15,876,094 15,887,572 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.155s (± 1.50%) 0.153s (± 1.97%) ~ 0.142s 0.162s p=0.524 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.963s (± 0.85%) 1.001s (± 1.11%) +0.038s (+ 3.93%) 0.966s 1.060s p=0.000 n=20
Emit Time 0.530s (± 2.84%) 0.525s (± 1.47%) ~ 0.494s 0.550s p=0.931 n=20
Total Time 1.746s (± 0.92%) 1.778s (± 0.71%) +0.031s (+ 1.79%) 1.729s 1.824s p=0.000 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,784,019 3,882,067 +98,048 (+ 2.59%) ~ ~ p=0.000 n=20
Types 1,355,974 1,383,851 +27,877 (+ 2.06%) ~ ~ p=0.000 n=20
Memory Used 1,835,669k (± 0.06%) 1,968,133k (± 0.07%) 🔻+132,464k (+ 7.22%) 1,963,062k 1,972,372k p=0.000 n=20
Memory Allocs 26,736,983 (± 0.06%) 28,008,498 (± 0.08%) 🔻+1,271,515 (+ 4.76%) 27,952,042 28,126,999 p=0.000 n=20
Config Time 0.009s (±12.12%) 0.008s ~ ~ ~ p=0.231 n=20
Parse Time 0.286s (± 2.41%) 0.297s (± 3.59%) +0.011s (+ 3.86%) 0.270s 0.360s p=0.050 n=20
Bind Time 0.001s (±18.96%) 0.001s (± 9.93%) ~ 0.001s 0.002s p=1.000 n=20
Check Time 3.323s (± 0.81%) 4.100s (± 0.86%) 🔻+0.777s (+23.37%) 3.970s 4.261s p=0.000 n=20
Emit Time 0.256s (± 2.12%) 0.265s (± 5.25%) ~ 0.243s 0.371s p=0.814 n=20
Total Time 4.368s (± 0.72%) 5.198s (± 0.84%) 🔻+0.830s (+19.00%) 5.045s 5.469s p=0.000 n=20
sentry - native
Errors 2 2 ~ ~ ~ p=1.000 n=20
Symbols 4,793,245 4,794,020 +775 (+ 0.02%) ~ ~ p=0.000 n=20
Types 2,607,047 2,614,289 +7,242 (+ 0.28%) ~ ~ p=0.000 n=20
Memory Used 2,880,925k (± 0.03%) 2,884,633k (± 0.03%) +3,709k (+ 0.13%) 2,881,845k 2,889,705k p=0.000 n=20
Memory Allocs 75,937,429 (± 0.07%) 75,965,615 (± 0.08%) ~ 75,640,392 76,119,893 p=0.229 n=20
Config Time 0.025s (± 1.10%) 0.025s (± 0.76%) ~ 0.025s 0.026s p=0.362 n=20
Parse Time 0.482s (± 4.63%) 0.481s (± 5.88%) ~ 0.437s 0.663s p=0.311 n=20
Bind Time 0.153s (± 9.93%) 0.168s (± 9.47%) ~ 0.127s 0.220s p=0.193 n=20
Check Time 6.852s (± 0.50%) 6.912s (± 0.46%) ~ 6.829s 7.009s p=0.126 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 7.562s (± 0.40%) 7.643s (± 0.50%) +0.080s (+ 1.06%) 7.557s 7.872s p=0.002 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,883,074 1,883,106 +32 (+ 0.00%) ~ ~ p=0.000 n=20
Types 1,158,170 1,161,248 +3,078 (+ 0.27%) ~ ~ p=0.000 n=20
Memory Used 972,395k (± 0.01%) 975,175k (± 0.01%) +2,781k (+ 0.29%) 974,623k 975,633k p=0.000 n=20
Memory Allocs 13,696,995 (± 0.10%) 13,753,510 (± 0.27%) +56,515 (+ 0.41%) 13,699,576 14,071,787 p=0.000 n=20
Config Time 0.008s (± 3.84%) 0.008s ~ ~ ~ p=1.000 n=20
Parse Time 0.159s (± 2.57%) 0.165s (± 5.59%) ~ 0.146s 0.232s p=0.733 n=20
Bind Time 0.041s (± 8.02%) 0.043s (± 9.91%) ~ 0.034s 0.063s p=0.340 n=20
Check Time 1.546s (± 0.47%) 1.583s (± 0.43%) +0.037s (+ 2.39%) 1.565s 1.621s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.773s (± 0.53%) 1.818s (± 0.65%) +0.044s (+ 2.51%) 1.782s 1.863s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,184,972 1,185,036 +64 (+ 0.01%) ~ ~ p=0.000 n=20
Types 438,963 439,399 +436 (+ 0.10%) ~ ~ p=0.000 n=20
Memory Used 1,172,634k (± 0.22%) 1,173,387k (± 0.25%) ~ 1,160,869k 1,182,239k p=0.565 n=20
Memory Allocs 77,492,203 (± 0.10%) 77,471,204 (± 0.11%) ~ 77,014,635 77,755,095 p=0.947 n=20
Config Time 0.002s (±15.95%) 0.002s (±18.78%) ~ 0.001s 0.005s p=0.343 n=20
Parse Time 0.143s (± 1.53%) 0.146s (± 3.29%) ~ 0.134s 0.172s p=0.401 n=20
Bind Time 0.000s (±208.60%) 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.866s (± 0.92%) 0.897s (± 2.22%) +0.031s (+ 3.59%) 0.853s 0.993s p=0.003 n=20
Emit Time 0.185s (± 1.57%) 0.186s (± 2.67%) ~ 0.171s 0.212s p=0.984 n=20
Total Time 10.475s (± 0.56%) 10.794s (± 2.20%) +0.319s (+ 3.05%) 10.170s 11.889s p=0.039 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 263,511 263,543 +32 (+ 0.01%) ~ ~ p=0.000 n=20
Types 196,116 196,296 +180 (+ 0.09%) ~ ~ p=0.000 n=20
Memory Used 224,584k (± 0.02%) 224,793k (± 0.02%) +208k (+ 0.09%) 224,653k 224,937k p=0.000 n=20
Memory Allocs 4,304,185 (± 0.01%) 4,305,398 (± 0.01%) +1,213 (+ 0.03%) 4,303,623 4,306,467 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.063s (± 3.54%) 0.066s (± 3.12%) ~ 0.059s 0.077s p=0.063 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.490s (± 2.52%) 0.496s (± 1.89%) ~ 0.454s 0.529s p=0.304 n=20
Emit Time 0.094s (± 2.24%) 0.099s (± 2.72%) 🔻+0.005s (+ 5.64%) 0.089s 0.110s p=0.004 n=20
Total Time 0.685s (± 2.08%) 0.699s (± 1.65%) ~ 0.655s 0.746s p=0.106 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,350,661 4,351,169 +508 (+ 0.01%) ~ ~ p=0.000 n=20
Types 3,040,647 3,043,084 +2,437 (+ 0.08%) ~ ~ p=0.000 n=20
Memory Used 2,433,699k (± 0.03%) 2,437,390k (± 0.03%) +3,692k (+ 0.15%) 2,435,958k 2,441,684k p=0.000 n=20
Memory Allocs 37,881,939 (± 0.04%) 37,945,851 (± 0.04%) +63,913 (+ 0.17%) 37,902,155 38,021,024 p=0.000 n=20
Config Time 0.003s 0.003s ~ ~ ~ p=1.000 n=20
Parse Time 0.261s (± 1.75%) 0.258s (± 2.13%) ~ 0.232s 0.277s p=0.457 n=20
Bind Time 0.087s (± 8.36%) 0.093s (±10.78%) ~ 0.079s 0.140s p=0.522 n=20
Check Time 7.650s (± 0.39%) 7.841s (± 0.53%) +0.191s (+ 2.50%) 7.676s 7.991s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 8.012s (± 0.35%) 8.205s (± 0.47%) +0.193s (+ 2.41%) 8.055s 8.333s p=0.000 n=20
tanstack-router - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 571,756 571,926 +170 (+ 0.03%) ~ ~ p=0.000 n=20
Types 397,689 401,357 +3,668 (+ 0.92%) ~ ~ p=0.000 n=20
Memory Used 331,421k (± 0.01%) 333,668k (± 0.01%) +2,246k (+ 0.68%) 333,562k 333,799k p=0.000 n=20
Memory Allocs 5,092,129 (± 0.04%) 5,237,809 (± 0.20%) +145,680 (+ 2.86%) 5,224,994 5,329,354 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.039s (± 4.21%) 0.040s (± 3.56%) ~ 0.036s 0.045s p=0.181 n=20
Bind Time 0.013s (± 9.88%) 0.012s (± 7.18%) ~ 0.011s 0.017s p=0.067 n=20
Check Time 0.598s (± 1.05%) 0.626s (± 1.10%) 🔻+0.028s (+ 4.67%) 0.604s 0.651s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.677s (± 1.17%) 0.706s (± 0.88%) 🔻+0.029s (+ 4.28%) 0.688s 0.731s p=0.000 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 231,616 231,640 +24 (+ 0.01%) ~ ~ p=0.000 n=20
Types 181,195 181,340 +145 (+ 0.08%) ~ ~ p=0.000 n=20
Memory Used 193,562k (± 0.01%) 193,680k (± 0.02%) +118k (+ 0.06%) 193,510k 193,822k p=0.000 n=20
Memory Allocs 1,373,256 (± 0.02%) 1,374,323 (± 0.02%) +1,067 (+ 0.08%) 1,373,423 1,375,324 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.049s (± 3.80%) 0.047s (± 3.49%) ~ 0.041s 0.055s p=0.187 n=20
Bind Time 0.022s (± 4.65%) 0.023s (± 7.02%) ~ 0.019s 0.031s p=0.377 n=20
Check Time 0.339s (± 1.36%) 0.343s (± 1.31%) ~ 0.326s 0.362s p=0.285 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.416s (± 1.27%) 0.420s (± 1.21%) ~ 0.402s 0.443s p=0.317 n=20
vscode - native
Errors 11 11 ~ ~ ~ p=1.000 n=20
Symbols 7,399,907 7,400,256 +349 (+ 0.00%) ~ ~ p=0.000 n=20
Types 4,365,552 4,366,784 +1,232 (+ 0.03%) ~ ~ p=0.000 n=20
Memory Used 5,146,406k (± 0.02%) 5,152,406k (± 0.03%) +6,000k (+ 0.12%) 5,148,469k 5,163,422k p=0.000 n=20
Memory Allocs 64,914,890 (± 0.01%) 65,000,797 (± 0.07%) +85,907 (+ 0.13%) 64,973,099 65,386,038 p=0.000 n=20
Config Time 0.036s (± 1.33%) 0.036s (± 0.83%) ~ 0.035s 0.037s p=0.955 n=20
Parse Time 0.954s (± 1.35%) 0.953s (± 1.78%) ~ 0.851s 1.041s p=0.815 n=20
Bind Time 0.359s (± 5.80%) 0.363s (± 6.74%) ~ 0.328s 0.566s p=0.616 n=20
Check Time 7.917s (± 0.82%) 8.030s (± 0.69%) +0.112s (+ 1.42%) 7.800s 8.249s p=0.008 n=20
Emit Time 3.232s (± 5.24%) 3.170s (± 5.14%) ~ 2.928s 3.965s p=0.805 n=20
Total Time 12.562s (± 1.40%) 12.617s (± 1.18%) ~ 12.252s 13.417s p=0.495 n=20
webpack - native
Errors 619 619 ~ ~ ~ p=1.000 n=20
Symbols 917,280 917,705 +425 (+ 0.05%) ~ ~ p=0.000 n=20
Types 632,992 634,736 +1,744 (+ 0.28%) ~ ~ p=0.000 n=20
Memory Used 690,425k (± 0.01%) 691,549k (± 0.02%) +1,124k (+ 0.16%) 691,138k 691,934k p=0.000 n=20
Memory Allocs 6,604,633 (± 0.03%) 6,622,263 (± 0.03%) +17,630 (+ 0.27%) 6,618,228 6,632,205 p=0.000 n=20
Config Time 0.004s 0.004s ~ ~ ~ p=1.000 n=20
Parse Time 0.147s (± 2.76%) 0.147s (± 2.50%) ~ 0.129s 0.159s p=0.909 n=20
Bind Time 0.046s (± 8.16%) 0.045s (± 7.02%) ~ 0.040s 0.071s p=0.711 n=20
Check Time 1.213s (± 0.56%) 1.227s (± 0.48%) +0.013s (+ 1.11%) 1.206s 1.258s p=0.006 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.434s (± 0.68%) 1.449s (± 0.53%) +0.015s (+ 1.05%) 1.418s 1.480s p=0.003 n=20
xstate-main - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 640,490 642,010 +1,520 (+ 0.24%) ~ ~ p=0.000 n=20
Types 387,988 392,082 +4,094 (+ 1.06%) ~ ~ p=0.000 n=20
Memory Used 350,900k (± 0.02%) 352,850k (± 0.03%) +1,951k (+ 0.56%) 352,578k 353,275k p=0.000 n=20
Memory Allocs 4,065,299 (± 0.07%) 4,102,487 (± 0.08%) +37,188 (+ 0.91%) 4,093,663 4,114,779 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.061s (± 2.07%) 0.061s (± 2.98%) ~ 0.056s 0.071s p=0.430 n=20
Bind Time 0.018s (± 4.67%) 0.020s (± 8.41%) ~ 0.017s 0.029s p=0.770 n=20
Check Time 0.424s (± 1.71%) 0.440s (± 0.85%) +0.017s (+ 3.94%) 0.425s 0.459s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.510s (± 1.50%) 0.527s (± 0.98%) +0.017s (+ 3.30%) 0.510s 0.552s p=0.000 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

@typescript-automation

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Everything looks good!

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 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