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

Improve the support for China's Standards of Encryption Algorithms #56

Closed
photino opened this issue Oct 6, 2023 · 1 comment
Closed

Comments

@photino
Copy link
Collaborator

photino commented Oct 6, 2023

@photino
Copy link
Collaborator Author

photino commented Oct 15, 2023

The bench shows that using the sm3 crate can have x150 improvement.

sha256_digest           time:   [256.18 ns 258.53 ns 261.12 ns]
                        change: [-3.4525% -1.9811% -0.5384%] (p = 0.00 < 0.05)
                        Change within noise threshold.
Found 8 outliers among 100 measurements (8.00%)
  6 (6.00%) high mild
  2 (2.00%) high severe

sm3_digest              time:   [4.0891 ns 4.1061 ns 4.1240 ns]
                        change: [-4.8771% -3.4558% -1.9811%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 9 outliers among 100 measurements (9.00%)
  5 (5.00%) high mild
  4 (4.00%) high severe

libsm_digest            time:   [601.86 ns 604.12 ns 606.56 ns]
                        change: [-5.8382% -4.5663% -3.1834%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 10 outliers among 100 measurements (10.00%)
  1 (1.00%) low mild
  6 (6.00%) high mild
  3 (3.00%) high severe

@photino photino closed this as completed Oct 15, 2023
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