Skip to content

Instantly share code, notes, and snippets.

@refparo
Created June 24, 2026 18:32
Show Gist options
  • Select an option

  • Save refparo/90f3e41591539e2f7709123e5a483709 to your computer and use it in GitHub Desktop.

Select an option

Save refparo/90f3e41591539e2f7709123e5a483709 to your computer and use it in GitHub Desktop.
A microbenchmark of the startup speed of various interpreted languages
hyperfine -N \
"lua -e 'print(math.random())'" \
"awk 'BEGIN {srand();print rand()}'" \
"perl -e 'print rand()'" \
"janet -e '(print (math/random))'" \
"guile -c '(display (random:uniform))'" \
"js140 -e 'console.log(Math.random())'" \
"python -c 'import random; print(random.random())'" \
"node -e 'console.log(Math.random())'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment