-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Explicitly disable SIMD128/256 support for HACL* on aarch64-linux #135032
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
Comments
Signed-off-by: Manjusaka <me@manjusaka.me>
As I said on the PR, please present benchmarks (I'd like to know how worse it is). And please do the same for SIMD-256 as results may be different (don't forget to build it using --enable-optimizations and --with-lto) |
Thanks for the remind, I'm working on it( |
Since this is affecting BLAKE-2 and HMAC only, we only need to backport it until 3.14 as BLAKE-2 was not in 3.13 I think. |
After test, The result is the same import timeit
import random
from string import ascii_letters
from hashlib import blake2s
tmep_string = "".join([random.choice(ascii_letters) for _ in range(1024)])
def main():
blake2s_hash = blake2s(tmep_string.encode("utf-8")).hexdigest()
if __name__ == "__main__":
# print(timeit.timeit(main, number=1000000))
print(timeit.timeit("blake2s(tmep_string.encode('utf-8')).hexdigest()", globals=globals(), number=1000000))
# print(timeit.timeit("blake2s(tmep_string.encode('utf-8')).hexdigest()", number=1000000)) # This will fail without globals This is the result with SIMD
And the result without SIMD
|
BTW, here's no SIMD-256 for aarch64 yet |
All test on AWS m8g.2xlarge, https://instances.vantage.sh/aws/ec2/m8g.2xlarge |
ping @picnixz ~ |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
https://discuss.python.org/t/supporting-simd-on-aarch64-linux/94188/3
SIMD128 on linux arm64 is not good enough(same with the MacOS)
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: