How close is tsc-rs to tsc?
tsc-rs is measured against the TypeScript project's own test suites, using the baseline files that the real compiler produced. This page reports the native implementation at its dated measurement, including incomplete lanes. External tsrs checking is measured separately.
Baseline lanes
One configuration per test case, compared with the baseline file that tsc itself produced. The emit lane skips 497 compiler and 519 conformance cases that have no .js oracle (mostly noEmit); the diagnostics lane exercises all of them. Symbols and types skip 95 compiler and 290 conformance cases without a uniquely selected oracle.
Native measurement 14 October 2026JavaScript emit
Byte-for-byte match with the tsc .js baseline, one configuration per case.
Diagnostics
Whole-case match with the tsc .errors.txt baseline: message, position and code.
Symbols
Match with the tsc .symbols baseline.
Types
Match with the tsc .types baseline.
Every option variant
Many TypeScript tests run under several compiler options. This opt-in report expands each one. The failures are mostly ES5 downlevel transforms and .d.ts emit.
Measured 14 October 2026Expanded option variants
Every stored option variant of every case: 14,819 identities.
1,016 identities without an oracle are skipped in each lane.
Type-check accuracy
Recall and precision count individual diagnostics over every option variant, so they are stricter about coverage and looser about wording than the whole-case diagnostics lane.
Measured 14 October 2026Type-check recall
Share of expected diagnostics found, matched per (file, line, code) over every option variant.
Type-check precision
Share of reported diagnostics that tsc also reports, same matching rule.
Language server
The language server is tested against the TypeScript fourslash suite, the same editor-behaviour tests tsc uses. The table covers the five supported operations. Across the full inventory, 3,955 cases are skipped, including unsupported operations; skips never count as passes.
Measured 14 October 2026| Operation | Passed | Failed | Skipped | Pass rate | Share |
|---|---|---|---|---|---|
| QuickInfo (hover) | 311 | 218 | 10 | 58.8% | |
| Completions | 860 | 271 | 0 | 76.0% | |
| Go-to-definition | 213 | 0 | 0 | 100% | |
| Find-all-references | 151 | 196 | 0 | 43.5% | |
| Signature help | 123 | 22 | 7 | 84.8% | |
| Total | 1,658 | 707 | 17 | 70.1% |
Where the work is
What the failing cases have in common, lane by lane.
- Default emit matches every case that has a JavaScript oracle. The remaining emit work is in the expanded variants: ES5 downlevel transforms and declaration files.
- Diagnostics are the active front. A whole-case pass needs every message and column to match, which is where the remaining 1,515 compiler and 1,827 conformance failures come from: 3,342 mismatches in total.
- Language server gaps are type inference. Hover misses are contextual typing, generics, JSDoc type tags and cross-file aliases. Completion misses are auto-imports and cross-file members.
- Symbols and declaration emit are early.
Method
The test corpus is the TypeScript repository's own cases and reference baselines, vendored unmodified under tests/. Wave by wave results are in docs/verified-waves.md.
- Pass rate is
passed / (passed + failed). Skipped cases are excluded and never counted as passes. - The oracle is chosen from the effective compiler options, never from whichever candidate output happens to match.
- Results are cached by a hash of the compiler sources, so published numbers are always taken with
--no-cache. - Each wave records newly passing cases, lost passes and unchanged skips before it is merged.
cargo build --release -p tsc_rs_harness
# JavaScript emit and diagnostics (drop --baseline errors for emit)
target/release/baseline-report --suite compiler --baseline errors --no-cache
target/release/baseline-report --suite conformance --baseline errors --no-cache
# Symbols
target/release/baseline-report --suite compiler --baseline symbols --no-cache
# Type-check recall and precision (run the full corpus)
target/release/typecheck-report --suite compiler --json
# Language server
target/release/lsp-report --op all --json