thojanssens1

thojanssens1

JIT is coming to Erlang. Will that then also benefit Elixir apps?

If I understand correctly, JIT allows to improve performance of the application; i.e. execution time?

How do we use JIT in Elixir?

Most Liked

kip

kip

ex_cldr Core Team

With CLDR release 39 out next month I am on my usual bi-annual compatibility and maintenance cycle for the ex_cldr libraries and decided to see if some critical code will benefit from the JIT compiler in OTP 24.

This simple example is formatting a number which is a complex operation given the flexibility of the formatting system. Overall the performance is about twice as fast for this function which is a big win.

With the JIT (OTP 24.0-rc0)

Name                                            ips        average  deviation         median         99th %
:erlang.float_to_binary                   7663.86 K       0.130 μs  ±2026.91%           0 μs           1 μs
Float to_string                            976.30 K        1.02 μs  ±7209.48%           1 μs           2 μs
Number to_string preformatted options      183.40 K        5.45 μs   ±416.76%           4 μs          15 μs
Number to_string                            56.33 K       17.75 μs   ±348.13%          15 μs          65 μs

Without the JIT (OTP 23.2.2)

Name                                            ips        average  deviation         median         99th %
:erlang.float_to_binary                   6213.10 K       0.161 μs  ±1823.26%           0 μs           1 μs
Float to_string                            533.39 K        1.87 μs  ±2067.68%           2 μs           2 μs
Number to_string preformatted options       89.48 K       11.18 μs   ±166.50%          10 μs          22 μs
Number to_string                            23.98 K       41.70 μs    ±64.88%          40 μs          69 μs
20
Post #2
ityonemo

ityonemo

I think you don’t do anything (maybe turn on a vm flag) and it just does its thing. Sit back and enjoy a performance gain. The blog article says Jason gets a big speed bump.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
nseaSeb
AcmeScript — Writing JS hooks as if I were still using Elixir I’ve been having fun building a little something over the last few days: Ac...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews