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

Adjust SHA256 benchmark code #199

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Adjust SHA256 benchmark code #199

merged 1 commit into from
Jan 31, 2024

Conversation

aborg-dev
Copy link

There are a few changes:

  • Using Sha256::digest directly instead of creating a mutable hasher object
  • Using stack-size=2048 to change the memory address of the data region
  • Simpler equality check of u8 arrays instead of chunked u64 integers

See the new code at: https://gist.github.com/akashin/89f2dd88ee267681f87882d27e428e55

There are a few changes:
- Using `Sha256::digest` directly instead of creating a mutable hasher object
- Using `stack-size=2048` to change the memory address of data region
- Simpler equality check of u8 arrays instead of chunked u64 integers

See the new code in: https://gist.github.com/akashin/89f2dd88ee267681f87882d27e428e55
@aborg-dev aborg-dev added this pull request to the merge queue Jan 31, 2024
Merged via the queue into main with commit 2691410 Jan 31, 2024
21 checks passed
@aborg-dev aborg-dev deleted the sha_code branch January 31, 2024 16:55
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

Successfully merging this pull request may close these issues.

2 participants