Skip to content

5. Benchmarking

AsynchronousAI edited this page Sep 3, 2025 · 4 revisions

How to benchmark:

The CLI also provides an option to generate benchmarkable scripts for Scriptbench or Benchmarker.

reasm main.s -o main.luau --mode bench
image

Note

The luau test was added manually.

Results:

Important

These benchmarks are older, before many optimizations were made.

Hello World:

The print time in Roblox Studio could have propagated this benchmark to be even.

Scriptbench:

Screenshot 2025-09-01 at 8 29 49 PM

Benchmarker:

Screenshot 2025-09-01 at 8 30 05 PM

Factorial:

This is a non-recursive implementation, with 100 iters. Luau was too fast to be added.

Scriptbench:

Screenshot 2025-09-01 at 8 34 38 PM

Benchmarker:

Screenshot 2025-09-01 at 8 34 49 PM

Fibbonaci:

Recursive implementation.

Scriptbench:

Screenshot 2025-09-01 at 8 37 37 PM

Benchmarker:

Screenshot 2025-09-01 at 8 37 49 PM

Clone this wiki locally