Benchmarks
Benchmarks
sloptor 3.0.0-beta.7, rbxtsgo 0.1.1, rbxtsc-rs at commit 3f53d66, rbxts-rs 0.1.6, and rbxtsc 3.0.0, on one machine.
Timed against the other four.
Sloptor builds each project from scratch, rebuilds it after a one-file edit, then rebuilds it untouched. Every figure on this page comes from one script in the repository, so you can run it and check.
Against the others
fig. 1 - how many times as much each tool needs as sloptor, one project per row, on a log scale. Every bar starts at 0.5×, so sloptor's ends at 1×. A bar that ends at 2× means that tool needs twice what sloptor does. Hover a row for the exact numbers.
- sloptor, 1×
- rbxtsgo
- rbxtsc-rs
- rbxts-rs
- rbxtsc
- rbxtsgo · wall time
1.76×1.76× - rbxtsc-rs · wall time
1.21×1.21× - rbxts-rs · wall time
1.36×1.36× - rbxtsc · wall time
25.18×25.18×
How many times as much wall time rbxtsgo needs as sloptor, averaged over 7 projects. It ranges from 1.63× to 2.11×.
How many times as much wall time rbxtsc-rs needs as sloptor, averaged over 6 projects. It ranges from 1.04× to 1.29×. It failed 1 of the 7, which the average leaves out.
How many times as much wall time rbxts-rs needs as sloptor, averaged over 2 projects. It ranges from 1.25× to 1.47×. It failed 5 of the 7, which the average leaves out.
How many times as much wall time rbxtsc needs as sloptor, averaged over 7 projects. It ranges from 21.9× to 30.4×.
Every number
fig. 2 — the median of each run, in milliseconds, for when you want to read the numbers off. A cold build of hello, the one-file project, takes rbxtsc 464 ms. sloptor builds wide, the largest, in 74.3 ms.
| Project | Files | Lines | Cold build | One-file edit | No-op rebuild | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sloptor | rbxtsgo | rbxtsc-rs | rbxts-rs | rbxtsc | sloptor | rbxtsgo | rbxtsc-rs | rbxts-rs | rbxtsc | sloptor | rbxtsgo | rbxtsc-rs | rbxts-rs | rbxtsc | |||
| hello | 1 | 9 | 21.2 | 36.2 | 25.7 | 26.6 | 464 | 18.9 | 33.0 | 24.9 | 24.2 | 465 | 4.0 | 23.8 | 24.9 | 23.4 | 444 |
| algorithms | 16 | 1,855 | 25.7 | 44.4 | 31.9 | failed | 750 | 21.7 | 36.9 | 31.6 | failed | 551 | 3.9 | 26.5 | 32.2 | failed | 539 |
| containers | 13 | 1,586 | 24.4 | 39.8 | 31.5 | failed | 668 | 21.9 | 40.7 | 30.3 | failed | 513 | 4.2 | 26.2 | 29.6 | failed | 473 |
| async | 9 | 958 | 25.8 | 42.5 | failed | failed | 627 | 21.4 | 37.0 | failed | failed | 531 | 4.5 | 28.3 | failed | failed | 477 |
| roblox-api | 16 | 1,456 | 40.9 | 86.3 | 50.7 | failed | 1242 | 21.1 | 37.2 | 50.4 | failed | 507 | 5.4 | 28.1 | 52.1 | failed | 467 |
| obby | 57 | 5,790 | 47.6 | 88.9 | 59.6 | failed | 1074 | 23.6 | 40.9 | 55.7 | failed | 547 | 3.9 | 29.9 | 57.9 | failed | 504 |
| wide | 401 | 26,700 | 74.3 | 125 | 77.2 | 109 | 1631 | 39.4 | 58.2 | 68.1 | 45.1 | 707 | 4.5 | 42.5 | 66.1 | 71.2 | 653 |
Run it yourself
fig. 3 - the script behind every figure here. It needs mise for sloptor, rbxtsgo, and hyperfine, and each fixture needs one install. rbxtsc-rs has no release, so build it from source and pass the binary.
bun run scripts/benchmark-compare.ts --rbxtsc-rs path/to/rbxtsc-rsbun run scripts/benchmark-compare.ts --rbxtsc-rs path/to/rbxtsc-rs --projects obby,wide --runs 100bun run scripts/benchmark-compare.ts --against rbxtsgoHow it was measured
Apple M4 Pro, 14 cores, 24 GB, timed with hyperfine 2.0.0. Each command ran 40 times after 5 warm-ups, and the tables show medians. A cold build deletes out/, include/, and .rotor before every run. A one-file edit changes a single leaf source file before every run. A no-op rebuild leaves every file alone between runs. sloptor, rbxtsgo, and rbxts-rs get --checkers 4, rbxtsc-rs gets -j 4, and rbxtsc has no such flag. rbxtsc-rs is built from source, and it rejects async with a noReservedIdentifier error on a catch (error) clause that rbxtsc accepts. rbxts-rs is built from source (with notify's macos_kqueue feature on macOS) and given a TypeScript 7.1 tsconfig; it rejects algorithms, containers, async, roblox-api, obby with TS2802 on stock @rbxts/compiler-types. Failed runs are marked failed, and the averages leave them out. The projects live in benchmarks/compare and exist only for this comparison. The home page's timings are the wide project's cold build from these same runs.