by pkolaczk · 3y ago · 0 comments
Sure. Will redo this part. I doubt it would allow Elixir to get a better result in the benchmark, though, as it was already losing significantly at 100k tasks. Any hints on how to decrease Elixir memory usage? Many people criticize using defaults in the comments, but don't suggest any certain settings that would improve the results. And a part of blogging experience is too learn things - also from the author perspective ;)
1..num_tasks
|> Task.async_stream(fn _ ->
:timer.sleep(10000)
end, max_concurrency: num_tasks)
|> Stream.run()
https://elixirforum.com/t/how-much-memory-do-you-need-to-run...