dustinfarris
M3 Pro with 18 GB memory
Fresh install of Elixir 1.18.1 via the install.sh script: https://elixir-lang.org/install#install-scripts
My understanding is that these times should be well under a second and they are definitely not.
[I] ~/elixir-install > hyperfine --warmup 2 -S none --export-markdown results.md -- 'elixir -e \'System.halt(0)\'' 'elixir -e \'IO.puts("Hello world")\''
Benchmark 1: elixir -e 'System.halt(0)'
Time (mean ± σ): 2.592 s ± 1.754 s [User: 0.163 s, System: 0.186 s]
Range (min … max): 0.494 s … 5.542 s 10 runs
Benchmark 2: elixir -e 'IO.puts("Hello world")'
Time (mean ± σ): 7.328 s ± 5.937 s [User: 0.264 s, System: 0.148 s]
Range (min … max): 2.528 s … 23.440 s 10 runs
Summary
elixir -e 'System.halt(0)' ran
2.83 ± 2.98 times faster than elixir -e 'IO.puts("Hello world")'
Not sure what is causing this. Need help digging in.
This seems to be exactly what I am experiencing: Elixir and Mac OS - anyone noticed a drop in performance? — but does not look like a resolution was ever found.
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
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
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
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
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
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
wojtekmach
This is definitely unexpected. I’m getting these results:
Could you double-check you are benchmarking with elixir/otp installed via install script? What OTP are you using?
Most of time is spent booting the VM so I’d focus on that:
Perhaps it’s the OTP builds that the installer is using, GitHub - erlef/otp_builds: Community-maintained pre-compiled Erlang/OTP for macOS · GitHub. What you can try is compiling OTP using kerl and re-running the benchmark. You can compile from scratch yourself too which is easy enough:
lgp
More related to the “anyone noticed a drop in performance” link that you posted, and not really likely to be of any help, but a few years ago I noticed that elixir started up much more slowly than any of my other scripting languages. I had at one time I had a file showing the startup times of all of them but I can’t find it so I must have deleted it.
In any case, the problem went away. I can’t say that it went away because of an update to the OS or an update to elixir, and in fact I don’t remember ever knowing why it went away, but it did.
al2o3cr
The ranges seem unusually large - benchmark 2 shows almost a 10x variation between the fastest and slowest run.
Is it possible your terminal is somehow running in Rosetta? That seems far less likely than it was in the early M1 days, but it’s the first thing I can think of that would produce that much inter-run variation (since it caches translated code).
LostKobrakai
One other random thing is what ulimits do you have set? I had to increase the laughable low default limit on my new M4 machine I set up recently.
ouven
A colleague of mine, had performance issues, because the shell, he started all from, ran with Rosetta emulation. He switched from MPB with intell to one with M3 and did not do the full brew reinstall things.
Edit:
Sorry, coffee level is still low, so I did not see, that this idea already popped up
zaljir
I got the same machine:
Results: