Skip to content

Instantly share code, notes, and snippets.

@lpil
Last active January 7, 2026 09:43
Show Gist options
  • Select an option

  • Save lpil/4c578a2b851ec5497d955102943669c5 to your computer and use it in GitHub Desktop.

Select an option

Save lpil/4c578a2b851ec5497d955102943669c5 to your computer and use it in GitHub Desktop.
Synthetic Gleam compilation benchmarks
#
# 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