Elixir vs. Erlang benchmarks - is one faster than the other?

See

http://erlang.org/doc/reference_manual/records.html
https://groups.google.com/d/msg/elixir-lang-talk/6kn7J2XnFg8/n-r3NUaCHwAJ

I think they are implemented slightly differently in elixir, though.
https://hexdocs.pm/elixir/Record.html

But structs are generally much nicer to work with because they are maps and not tuples. For example, IIRC cowboy 2.0 moved from using records to represent its Req object to maps. But from reading its (as well as ranch and cowlib) source code I got a feeling that cowboy was striving for completeness and ease of use rather than performance.

2 Likes