Performance of Gleam Iterators vs Elixir Streams applied to calculating Pascal’s Triangle
When I benchmark the following code in Elixir (using benchee), it indicates that it is pretty fast (although I have trouble doing any memory-benchmarking). Specifically, on M1-Pro silicon (w/ 16 GB RAM), calculating the first 101 rows of Pascal’s triangle took an average of 10.56 μs.