Last active
January 7, 2026 09:43
-
-
Save lpil/4c578a2b851ec5497d955102943669c5 to your computer and use it in GitHub Desktop.
Synthetic Gleam compilation benchmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Computer is an M1 macbook air, on battery, numerous other | |
| # programs running such as web browsers, so not very scientific. | |
| # | |
| # CLI output has been edited to remove noise. | |
| # | |
| # gleam --version | |
| gleam 1.14.0 | |
| # tokei --sort lines | |
| Language Files Lines | |
| ======================================= | |
| Gleam 1638 844825 | |
| # | |
| # To Erlang bytecode compilation | |
| # First full, then incremental | |
| # | |
| # time gleam build --target erlang | |
| Executed in 12.59 secs | |
| ## Incremental | |
| # time gleam build --target erlang | |
| Executed in 1.03 secs | |
| # | |
| # To JavaScript source compilation | |
| # First full, then incremental | |
| # No bundling to a single file | |
| # | |
| # time gleam build --target javascript | |
| Executed in 4.61 secs | |
| ## Incremental | |
| # time gleam build --target javascript | |
| Executed in 644.14 millis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment