Skip to content
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

Benchmark on Spacemit X60 #10

Open
smuellerDD opened this issue Sep 30, 2024 · 0 comments
Open

Benchmark on Spacemit X60 #10

smuellerDD opened this issue Sep 30, 2024 · 0 comments

Comments

@smuellerDD
Copy link

smuellerDD commented Sep 30, 2024

I integrated your code into [1]. I have not pushed it yet, because I see interesting performance numbers.

I am trying basically to squeeze about 1GB of data from a SHAKE instance. For that I am using a system with a RISC-V Spacemit X60. This has the vector extensions, but not the Zvbb extensions.

I see the following numbers:

plain C implementation: 26s
Your keccak-vector.c after static constify the applicable variables: 2m17s
Same, but with -funroll-loops: 2m20s
Same, but with -funroll-all-loops: 2m30s
Your keccak-vector-multi-round.c: 3m40s

I have to admit, I am a bit surprised by the numbers.

[1] https://github.com/smuellerDD/leancrypto

@smuellerDD smuellerDD changed the title Benchmark on Benchmark on Spacemit X60 Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant