Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created March 2, 2016 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anildigital/51e34e6c5feaa1e79b9c to your computer and use it in GitHub Desktop.
Save anildigital/51e34e6c5feaa1e79b9c to your computer and use it in GitHub Desktop.
t0 = :erlang.now
Enum.each(1..1_000_0000, fn(_) -> spawn(fn() -> 1 + 1 end) end)
t1 = :erlang.now
IO.puts :timer.now_diff(t1, t0) / 1_000_000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment