TypeScript compilers

The same TypeScript projects, type-checked and compiled by tsc 6, tsc 7 and two experimental Rust ports.

About this domain

Five compilers check four open-source projects (TypeORM, Excalidraw, the t3code client runtime and XState) at pinned commits: tsc 6.0 (TypeScript on Node.js), tsc 7.0 and the 7.1 beta (Go), and the Rust ports tsrs and tsc-rs, which port TypeScript 7.1 builds. Each tool runs as a user would run it, through the command its npm package installs, in a fresh container without network access, on four cores with default settings and on one core with its single-threaded flag where it has one. A tool is only measured after it reported exactly the diagnostics expected for its TypeScript line on every project, and the expected diagnostics plus every one of seven or eight errors seeded into different files of a copy of each, in every mode. The tools implement different TypeScript revisions: tsc 7.1 (beta) and tsrs are two packaged implementations with the same declared upstream revision, so they are the like-for-like pair; tsc-rs tracks an earlier 7.1 build, and tsc 6.0 and 7.0 are older lines.

How this domain is measured

Experimental domain Reference Methodology 2

Experimental domain. Its workloads and methodology may still change.

2 runs published

Showing Check speed index in Overall, index, higher is better

Derived from several scenarios

Overall

Summary metrics computed from the scenario medians of this run.

Check speed index

higher is better · 100 = best in all 8 scenarios

How it is computed

In each of the declared scenarios (TypeORM · check, TypeORM · check on one core, Excalidraw · check, Excalidraw · check on one core, t3code · check, t3code · check on one core, XState · check, XState · check on one core): the best (lowest) “Wall time” divided by this implementation's, the best being taken among the implementations that have an index. The index is the geometric mean of those ratios times 100, so 100 means best in every one of them. Only implementations with a usable result in every one of them get an index, and only they are compared with each other, so another set of implementations can change it. A scenario in which the best value is zero is left out for everybody; the scale above the values counts the scenarios this run's index was computed over.

Per check scenario, the fastest median wall time among the tools that have an index divided by this tool's; the geometric mean of those ratios over the eight check scenarios, times 100 (100 = fastest in all eight, 50 = twice the fastest time on geometric average). Relative to the tools of the run, from the per-scenario medians, so another set of tools can change it. Spans different compiler revisions: the like-for-like pair is tsc 7.1 (beta) and tsrs, two packaged implementations with the same declared upstream revision.

Mixed TypeScript revisions: tsc 7.1 (beta) and tsrs declare the same upstream revision, tsc-rs is pinned to an earlier 7.1 build, tsc 6.0 and 7.0 are older lines.

Derived values are computed from scenario medians and carry no interval. Ranks count all 5 implementations.

Read it by comparison

Implementations in this run

5 implementations · 9 scenarios measured. Every page lists all scenarios and metrics of one implementation.