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?

Showing Posts 1 to 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.

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
— All posts loaded —

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 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
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
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews