Re:Shell Scripting with Elixir
by fredrikholm on Wednesday February 14, 2024 @02:29AM
(#39367421)
It was your original post that set me on course for experimenting with startup times, cheers!
Unfortunately, that final flag doesn't change much on 26 for me. IIRC I dropped a bunch of flags after concluding that no shell and no epmd were the only flags that I noticed improvements with.
Yeah, it looks like it got a lot worse. I don't think it's JIT, because I ran a test with a 32-bit version of OTP 26 (JIT is only available for 64-bit x86 and arm). But I'm not sure what it is.
Send me an email (in profile), and I'll try to find some time to look closer.
A couple years ago that got me to 100 ms
https://news.ycombinator.com/item?id=25243246
Today's measurements with FreeBSD 13.2 on the same Pentium G3470
time /bin/sh -c "echo hi"
time /usr/local/bin/bash -c "echo hi" hi time /usr/local/lib/erlang26/bin/erl -eval 'io:format("hi~n"), halt(0, [{flush, false}])' time /usr/local/lib/erlang26/bin/erl -eval 'io:format("hi~n"), halt(0, [{flush, false}])' -noshell -start_epmd false -boot no_dot_erlang This doesn't look very good, actually! FreeBSD has OTP 21-26 available through pkg, I ran the same thing on each of them several times to warm up, and get (real time): So maybe there's some new stuff that needs to be avoided now.