-
-
Save anildigital/51e34e6c5feaa1e79b9c to your computer and use it in GitHub Desktop.
This file contains 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
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