aseigo

aseigo

Exploring Elixir E2: How fast is Elixir 1.5?

Elixir1.5.0-rc0 and OTP 20 are significant releases, full of features, bug fixes and optimizations. I was really curious as to how the optimizations listed in the release notes actually stacked up, so I bechmarked a few of them. This screencast shows the results of bechmarking pattern matching of maps, ets table creation, and ets insertion/lookup with Elixir 1.5 on OTP 20 vs Elixir 1.4 on OTP 18.

The results are extremely encouraging, and as a result of these measurements I can hardly wait to move all my projects to Elixir 1.5 / OTP 20.

All the usual caveats about benchmarks apply here, but as a comparison between the two versions I think it is a valid set of measuremnts as they were run on the same hardware and OS on an as-quiet-as-I-could-reasonably-make-my-laptop .. not optimal conditions, but good enough to tease useful comparison numbers out of it.

For those curious, I benchmarked it on a i7-4500U laptop with 8GB RAM and a 256GB SSD drive. YMMV.

p.s. I had wanted to post the new episode on the weekend, but realized after making a first revision of the video that it was just simply too long and covered too much .. as a result I ended up splitting the video into two parts, and there will be an “Extra” screencast coming in a bit that covers quite a few of the feature improvements in Elixir 1.5 w/OTP 20 … but that meant the upload was delayed until today .. meh. Who needs schedules? :wink:

Most Liked

aseigo

aseigo

Yeah, responding to yourself is lame .. but here I am anyways :wink:

Code repository that goes with this series can be found here: GitHub - aseigo/exploring-elixir: Contains code examples used in the Exploring Elixir screencast series: https://www.youtube.com/channel/UCFKQ85T69sYhifDHF7dnPgw · GitHub

Note that it is not a “coherent application” but rather all the snippets and bits I use in the episodes (including some that get left on the cutting room floor … ), but someone on reddit asked so there it is.

Also, the Extras episode noting a number of highlight features from Elixir 1.5 / OTP 20 is up as well:

13
Post #1
aseigo

aseigo

I actually agree that blog posts are better for archival and more “serious” reading. Thankfully there are a number of those for Elixir already … though perhaps I will also do one of those one day (I used to blog nearly daily for other projects I participated in) …

BUT … videos have a few benefits: they show visually what is happening and how it can come together in more or less real-time, something that is hard to replicate with a blog. Videos are also something to sit and consume almost casually, and as such they compliment and augment the written word with something a bit more like entertainment. There’s also something to be said about the “touch” of the human voice .. for some people it’s more enjoyable ..

So I think we need ALL of these forms of media to communicate the great things we love in Elixir and the BEAM ecosystem …

BTW .. The next episode will be back to “live coding” again, which is also really hard to replicate in blog entry ..

sztosz

sztosz

I would really like to read about that performance comparison. When something is written I can skim it to see if it’s worthwhile my time. With videos… i don’t even bother. My experience with videos is that most of the time a 5 min content is dragged on for way to much time. And you neither can skim a video, nor get back easily to a particular moment that’s interesting. When it comes to programming, videos are good for… wait they’re not good for anything :frowning:

Update. I just read it again, and want to clarify one thing. It’s not that I am attacking you. Or that I cant appreciate someones work, just because it’s video, it’s not like that at all. It’s just that I’d much rather read a chunk of text, than watch a video (unless it’s a TV show or smth :wink: ). And I believe there are more people people like me and thats why I believe you would find at least few readers (if not many) for your blog if articles would be about interesting topics. :slight_smile:

Oh I always loved those ASCII casts :thumbsup: I really makes you think, that the creator value reader/watcher time, which is very rare.

Last Post!

mspanc

mspanc

Membrane Core Team

I totally agree. I don’t want to spend 10 minutes on listening someone reading tables I can otherwise read in 1 min and interpret by myself (especially if they’are SUCH self-explanatory). Video should be used for telling stories or explaining things that are complex, for benchmarks plain text is unbeatable.

Where Next?

Popular in Screencasts Top

aseigo
Elixir1.5.0-rc0 and OTP 20 are significant releases, full of features, bug fixes and optimizations. I was really curious as to how the op...
New
aseigo
Exploring Elixir episode 3, and episode 3 Extra, are both out! In the main episode, we look at the new child_spec/1 function in Elixir 1....
New
hubertlepicki
I have been learning GraphQL as it seems to be something we will need to be using in upcoming projects, and I like to document things as ...
New
alvises
Hey friends, I’ve just published a screencast + article on how to use AWS S3 in Elixir with ExAws. I show how to put, get, list and del...
New
AstonJ
Nice to see another thing on my wish-list come true :003: I haven’t had a chance to watch this yet but I am sure it is very good! ...
New
ElixirCasts
Hello everyone, these are the episodes that are part the Alchemist’s Edition, which is the paid subscription that helps support ElixirCas...
New
germsvel
:wave: Hi everyone, I’ve been posting short Elixir and Phoenix video tips and tricks for a little while on Twitter. But now, I’ve conso...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36689 110
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New