On my Mac :os.cmd is way slower (I can test on docker later this afternoon if needed, but I assume we would see something similar).
iex(8)> fn -> Enum.each(0..500, fn _ -> :os.cmd('ls lib/utils') |> to_string() |> String.split("\n") end) end |> :timer.tc |> elem(0) |> Kernel./(1_000_000) 5.006744 iex(9)> fn -> Enum.each(0..500, fn _ -> File.ls("lib/utils") end) end |> :timer.tc |> elem(0) |> Kernel./(1_000_000) 0.08175 -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/23120ad1-54a4-4636-948e-bbf223865778%40googlegroups.com.