-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance issues #23
Comments
Can you try forcing the ARM cpu_features.h file to be enabled for your M1 environment? I wonder if that would change anything. |
Since I lack access to any MacOS M1 environment, it's not like I can test anything like this. |
That wouldn't help, the code there is linux specific. But I guess best is to continue in libdeflate's issue tracker and point them to the zlib-ng code i found. |
Ok. I can't say I'm surprised. For a long time Linux was the only serious ARM target of note. |
I was curious about how borgbackup's currently bundled crc32 code performs on macOS 12 with M1 cpu (again on my local machine):
|
Benchmarks done on github CI - (linux, x64):
Benchmarks done on github CI - (macOS, x64):
|
code: borgbackup/borg#6387 - it would also benchmark |
It makes me wonder how libdeflate would fair against zlib-ng. That might explain why Python on MacOS is so different. Whichever version is in active use may be using zlib-ng instead of regular zlib. If so, should we just import the zlib-ng code since it may be doing better than libdeflate? |
yeah, zlib-ng definitely also worth testing (but maybe a little bit off-topic here). |
Updated performance results using libdeflate 1.12 on macOS M1:
Great update, it used to be slower, but now libdeflate 1.12 is twice as fast as zlib crc32 on macOS M1! |
guess this is solved by the new libdeflate. |
linux seems good, macOS (x64, Intel) mediocre, macOS (M1, Apple Silicon) the worst.
See there: #21
TODO: move insights from there to issues (guess best place is not here, but in
libdeflate
's issue tracker.The text was updated successfully, but these errors were encountered: