Skip to content

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
Bar chart of how many times as much wall time rbxtsgo, rbxtsc-rs, rbxts-rs, and rbxtsc need as sloptor on each of 7 projects, on a log scale. A tool that failed a project has no bar there. The table below lists every value.
rbxtsgo · wall time
1.76×

How many times as much wall time rbxtsgo needs as sloptor, averaged over 7 projects. It ranges from 1.63× to 2.11×.

rbxtsc-rs · wall time
1.21×

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.

rbxts-rs · wall time
1.36×

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.

rbxtsc · wall time
25.18×

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.

Median milliseconds
ProjectFilesLinesCold buildOne-file editNo-op rebuild
sloptorrbxtsgorbxtsc-rsrbxts-rsrbxtscsloptorrbxtsgorbxtsc-rsrbxts-rsrbxtscsloptorrbxtsgorbxtsc-rsrbxts-rsrbxtsc
hello1921.236.225.726.646418.933.024.924.24654.023.824.923.4444
algorithms161,85525.744.431.9failed75021.736.931.6failed5513.926.532.2failed539
containers131,58624.439.831.5failed66821.940.730.3failed5134.226.229.6failed473
async995825.842.5failedfailed62721.437.0failedfailed5314.528.3failedfailed477
roblox-api161,45640.986.350.7failed124221.137.250.4failed5075.428.152.1failed467
obby575,79047.688.959.6failed107423.640.955.7failed5473.929.957.9failed504
wide40126,70074.312577.2109163139.458.268.145.17074.542.566.171.2653

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.

Terminal window
bun run scripts/benchmark-compare.ts --rbxtsc-rs path/to/rbxtsc-rs
bun run scripts/benchmark-compare.ts --rbxtsc-rs path/to/rbxtsc-rs --projects obby,wide --runs 100
bun run scripts/benchmark-compare.ts --against rbxtsgo

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