babashka-sci-dev 2023-09-28

This is interesting, on GHA with babashka dev (master) I get:

Run bash <(curl ) --dev-build
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  5010  100  5010    0     0   150k      0 --:--:-- --:--:-- --:--:--  152k
Downloading  to /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmp.fJv954EH
Moving /usr/local/bin/bb to /usr/local/bin/bb.old
Successfully installed bb in /usr/local/bin
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].

I'll try and see if the -march=compatibility argument will work

That fixed it. Geeze, it looks like this could be breaking a lot of images

Interesting, I'll try the pgo on the weekend, will probably need to do that as well

interesting observation: the locally PGO compiled binary without the -march=comaptibilty seems to be ~100ms faster than the CI compiled binary. Maybe the special instructions at play here?

CI:
bb -e '(time (loop [val 0 cnt 10000000] (if (pos? cnt) (recur (inc val) (dec cnt)) val)))'
"Elapsed time: 334.463748 msecs"
10000000

local:
bb -e '(time (loop [val 0 cnt 10000000] (if (pos? cnt) (recur (inc val) (dec cnt)) val)))'
"Elapsed time: 259.723079 msecs"
10000000

I ran into issues with PGO on aarch64 when bumping http-kit. I guess the iprof file should be updated when bumping deps. Weirdly enough I didn't get trouble on other systems

something is fishy, none of the builds work anymore with my locally produced iprof file

whats the kind of issues youre seeing?

the build itself is failing?

yes, see the branch bump-http-kit

Yeah I suspected. Pity

well now the my linux/amd64 is same perf as your mac M1 😛

maybe your mac has gotten worse too 😉

Yes my Mac has gotten worse too

i see that this is merged now, what was the fix?

removing PGO

as you can see

ah yeah, next ones wont be PGO anymore?

apparently the shared pgo file doesn't work after all, so no PGO anymore

yeah i guess we'd have run into this sooner or later