Skip to content

fix(cli): report unsupported commands on stderr - #967

Merged
maschwenk merged 1 commit into
mainfrom
fix/unsupported-options-938
Nov 11, 2026
Merged

maschwenk merged 1 commit into
mainfrom
fix/unsupported-options-938

Conversation

@maschwenk

Copy link
Copy Markdown
Collaborator

--init, --showConfig and --watch on Windows printed is not supported by tsrs to stdout, so tsrs --showConfig > config.json wrote the error into the file. tsgo has no such message, so moving it to stderr doesn't break parity, and the exit status stays 5. an integration test checks that stdout stays empty for --init and --showConfig

DEFAULTS.md now also explains why --diagnostics shows Bind time: 0.000s: the parallel loader binds each file right after parsing it, so that time lands in Parse time. on the issue's repro pinned tsgo reports 0.007s, tsrs 0.000s, and 0.106s with --singleThreaded, which binds in its own pass. --generateTrace stays a warning with exit 0, the same thing tsgo does when a trace can't start (#264). Memory allocs and the Types counter were already documented

part of #938

tsrs-only errors for --init, --showConfig and --watch on Windows went to stdout, so redirected stdout captured the error text. Documents why Bind time is near zero on the parallel loader.
@codspeed

codspeed Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

βœ… 8 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing fix/unsupported-options-938 (883ef41) with main (b29c488)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Performance change vs main

Workflow run Β· main b29c488fb4d5 β†’ PR merge 35d429deae62 (head 883ef41367dc)

Clef gate: Clef estimated 14.3% default and single-threaded wall time, 9.9% peak RSS, 11.2% single-threaded instruction count impact probability.

Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Incremental runs start with fresh build info before every invocation; check runs disable incremental compilation.

Project Mode Single-thread wall time Ξ” Single-thread instructions Ξ” Default wall time Ξ” Default peak RSS Ξ”
vscode check -2.7% 0.000% -0.1% -0.1%
vscode incremental -4.1% +0.001% +3.8% +0.2%
xstate-main check -2.3% -0.001% -1.1% +0.4%
xstate-main incremental +2.5% +0.001% +0.2% +0.1%
webpack check -1.5% -0.002% +3.2% -0.6%
webpack incremental +0.9% +0.002% +2.8% +0.4%
mui-docs check +0.4% -0.009% +1.1% +0.4%
mui-docs incremental -2.1% -0.008% 0.0% +0.3%
Compiler check -14.0% 0.000% -4.4% +0.1%
Compiler incremental -1.6% 0.000% +2.0% -2.4%
Compiler-Unions check +1.8% 0.000% +0.5% +1.0%
Compiler-Unions incremental +2.0% 0.000% -4.0% +0.2%
cal-diy check +1.9% -0.002% -1.8% +0.8%
cal-diy incremental +3.2% -0.002% -4.0% -0.1%
formbricks-web check -0.2% +0.001% +0.3% -0.3%
formbricks-web incremental +0.1% 0.000% -0.4% +0.1%
supabase-studio check -1.3% 0.000% -1.2% +0.3%
supabase-studio incremental -1.4% -0.005% +3.7% -0.2%
t3code-server check -0.7% +0.007% -0.3% -0.1%
t3code-server incremental -0.1% -0.006% +3.3% -0.2%
mikro-orm check +0.1% +0.001% +1.8% +0.2%
mikro-orm incremental +3.2% 0.000% +0.8% -0.1%
next-packages-next check +1.2% -0.002% +2.0% +0.4%
next-packages-next incremental +0.8% -0.001% -1.1% +0.2%
next-root check +0.2% +0.001% -2.4% -0.4%
next-root incremental -0.9% 0.000% +0.2% +0.2%
storybook check +2.3% -0.001% +5.1% +1.4%
storybook incremental +0.5% 0.000% -2.0% -0.2%
nuxt check +0.1% -0.001% +2.2% +0.2%
nuxt incremental -2.6% -0.001% +3.7% -0.1%
playwright check +2.5% -0.002% -0.2% -0.4%
playwright incremental +0.7% -0.002% +1.0% 0.0%
drizzle-orm check +4.2% -0.004% +0.9% -0.2%
drizzle-orm incremental -1.0% -0.006% +2.2% -0.4%
typeorm check +1.3% 0.000% -0.1% -0.9%
typeorm incremental +1.3% +0.001% -2.3% +0.3%
date-fns check -2.3% +0.003% -8.1% +0.8%
date-fns incremental -3.5% -0.015% +3.1% +1.8%

Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time.

Measured medians (main β†’ PR)
Project Mode Single-thread wall time (s) Single-thread instructions Default wall time (s) Default peak RSS (MiB)
vscode check 11.320 β†’ 10.608 82,406,482,948 β†’ 82,406,350,867.5 1.532 β†’ 1.530 1843.0 β†’ 1842.0
vscode incremental 11.736 β†’ 10.856 84,820,351,778 β†’ 84,820,849,003.5 2.055 β†’ 2.200 2162.0 β†’ 2165.3
xstate-main check 0.787 β†’ 0.775 5,570,810,453 β†’ 5,570,802,574 0.187 β†’ 0.185 241.2 β†’ 242.1
xstate-main incremental 0.587 β†’ 0.627 5,733,614,933 β†’ 5,733,625,144.5 0.182 β†’ 0.183 244.4 β†’ 244.6
webpack check 1.308 β†’ 1.326 10,900,095,130.5 β†’ 10,899,870,949.5 0.428 β†’ 0.425 404.3 β†’ 401.7
webpack incremental 1.111 β†’ 1.109 11,123,846,097.5 β†’ 11,124,023,801.5 0.264 β†’ 0.267 402.1 β†’ 403.5
mui-docs check 3.906 β†’ 3.824 33,126,014,049.5 β†’ 33,123,543,022.5 1.416 β†’ 1.384 1231.6 β†’ 1236.7
mui-docs incremental 3.198 β†’ 3.375 34,471,431,895.5 β†’ 34,470,662,331.5 1.249 β†’ 1.239 1160.4 β†’ 1163.3
Compiler check 0.372 β†’ 0.299 1,776,338,593.5 β†’ 1,776,345,776.5 0.224 β†’ 0.219 77.5 β†’ 77.6
Compiler incremental 0.548 β†’ 0.536 1,789,135,780 β†’ 1,789,135,615.5 0.249 β†’ 0.242 79.7 β†’ 77.8
Compiler-Unions check 0.261 β†’ 0.270 3,054,458,347.5 β†’ 3,054,467,898 0.109 β†’ 0.109 81.0 β†’ 81.9
Compiler-Unions incremental 0.292 β†’ 0.266 3,066,287,829.5 β†’ 3,066,293,491 0.119 β†’ 0.115 85.1 β†’ 85.2
cal-diy check 3.336 β†’ 3.346 28,974,108,421 β†’ 28,974,233,938 1.084 β†’ 1.031 1352.7 β†’ 1363.6
cal-diy incremental 6.334 β†’ 5.767 30,594,693,110.5 β†’ 30,593,507,429 3.113 β†’ 2.834 1267.3 β†’ 1265.4
formbricks-web check 3.916 β†’ 3.928 37,109,497,707.5 β†’ 37,109,867,465.5 0.888 β†’ 0.885 1586.7 β†’ 1582.5
formbricks-web incremental 4.627 β†’ 4.740 39,708,971,598.5 β†’ 39,709,321,193.5 1.615 β†’ 1.622 1627.7 β†’ 1629.0
supabase-studio check 4.001 β†’ 3.948 40,841,428,565 β†’ 40,841,551,790 0.958 β†’ 0.943 1313.3 β†’ 1317.0
supabase-studio incremental 4.586 β†’ 4.666 43,792,345,650.5 β†’ 43,790,453,741.5 1.122 β†’ 1.145 1369.5 β†’ 1367.4
t3code-server check 4.942 β†’ 4.970 41,107,436,225.5 β†’ 41,109,778,616.5 2.011 β†’ 2.018 1447.1 β†’ 1446.4
t3code-server incremental 4.665 β†’ 4.834 41,632,415,815.5 β†’ 41,630,634,849 1.827 β†’ 1.899 1312.3 β†’ 1309.7
mikro-orm check 5.095 β†’ 5.166 44,563,627,536 β†’ 44,563,816,414 1.055 β†’ 1.116 1276.6 β†’ 1279.3
mikro-orm incremental 4.899 β†’ 5.052 44,875,751,130.5 β†’ 44,875,450,454.5 1.217 β†’ 1.236 1259.3 β†’ 1258.1
next-packages-next check 1.507 β†’ 1.588 17,410,273,841.5 β†’ 17,409,941,090 0.372 β†’ 0.377 559.0 β†’ 561.1
next-packages-next incremental 1.506 β†’ 1.515 17,736,093,082 β†’ 17,736,002,566 0.443 β†’ 0.437 563.7 β†’ 564.9
next-root check 1.274 β†’ 1.275 13,969,144,135 β†’ 13,969,304,742.5 0.286 β†’ 0.284 433.1 β†’ 431.5
next-root incremental 1.554 β†’ 1.555 14,431,214,445 β†’ 14,431,163,158 0.423 β†’ 0.420 473.1 β†’ 474.0
storybook check 1.041 β†’ 1.077 8,875,586,938 β†’ 8,875,534,582 0.246 β†’ 0.257 396.9 β†’ 402.5
storybook incremental 1.129 β†’ 1.123 9,199,871,415 β†’ 9,200,304,197.5 0.349 β†’ 0.351 378.3 β†’ 377.6
nuxt check 1.112 β†’ 1.110 8,507,152,451.5 β†’ 8,507,021,263.5 0.286 β†’ 0.281 391.7 β†’ 392.5
nuxt incremental 1.236 β†’ 1.161 8,909,174,404.5 β†’ 8,909,166,284 0.313 β†’ 0.327 391.8 β†’ 391.6
playwright check 0.960 β†’ 0.958 7,408,228,835 β†’ 7,408,108,008.5 0.233 β†’ 0.232 361.3 β†’ 359.8
playwright incremental 0.828 β†’ 0.832 7,581,440,248 β†’ 7,581,531,611.5 0.227 β†’ 0.229 340.5 β†’ 340.5
drizzle-orm check 0.565 β†’ 0.591 5,952,720,742 β†’ 5,952,494,513 0.198 β†’ 0.204 382.6 β†’ 382.0
drizzle-orm incremental 0.784 β†’ 0.775 6,124,398,147 β†’ 6,124,231,619 0.279 β†’ 0.277 347.5 β†’ 346.1
typeorm check 0.734 β†’ 0.742 6,400,014,850.5 β†’ 6,399,961,825.5 0.174 β†’ 0.171 228.6 β†’ 226.7
typeorm incremental 0.708 β†’ 0.720 6,777,440,853.5 β†’ 6,777,565,485.5 0.186 β†’ 0.183 233.9 β†’ 234.6
date-fns check 0.358 β†’ 0.363 3,357,302,378.5 β†’ 3,357,014,994 0.132 β†’ 0.125 152.1 β†’ 153.3
date-fns incremental 0.403 β†’ 0.366 3,594,420,850.5 β†’ 3,593,769,275 0.185 β†’ 0.196 161.4 β†’ 164.3

tsrs-lint

The main and PR tsrs-lint binaries are byte-for-byte identical. No lint performance difference to measure.

@maschwenk
maschwenk marked this pull request as ready for review November 11, 2026 17:13
@maschwenk
maschwenk added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 7148fb4 Nov 11, 2026
72 of 73 checks passed
@maschwenk
maschwenk deleted the fix/unsupported-options-938 branch November 11, 2026 17:20
gkze pushed a commit to townco/tsrs that referenced this pull request Nov 12, 2026
oxc-project#967 moved the not-supported errors to stderr. The WASM package tests only run in the release workflow, so this failed the 0.25.0 release before publishing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant