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

Update kotlincrypto dependencies to latest stable versions #54

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

05nelsonm
Copy link
Member

kotlincrypto.core -> 0.5.4
kotlincrypto.hash -> 0.5.4

@05nelsonm 05nelsonm self-assigned this Dec 19, 2024
@05nelsonm
Copy link
Member Author

05nelsonm commented Dec 19, 2024

Comparison with updated hash and core dependencies with their performance improvements.

macOS

Before:

jvm summary:
Benchmark                      Mode  Cnt      Score       Error  Units
HmacMD5Benchmark.doFinal       avgt    5    968.820 ±   257.203  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    996.622 ±   174.096  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1344.821 ±    24.932  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  28115.470 ±  1533.460  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  47090.148 ± 18904.940  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   1939.285 ±    42.839  ns/op
Kmac128Benchmark.doFinal       avgt    5  31431.683 ±  2001.237  ns/op

js summary:
Benchmark                      Mode  Cnt       Score       Error  Units
HmacMD5Benchmark.doFinal       avgt    5    3099.867 ±   159.860  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    2931.268 ±   389.385  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    3666.799 ±   124.407  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  257946.970 ± 25121.886  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  180852.170 ±  2615.994  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  227704.816 ± 15170.309  ns/op
Kmac128Benchmark.doFinal       avgt    5  198716.088 ± 28898.036  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    1689.989 ±   39.076  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    2087.190 ±  158.106  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    2779.426 ±   59.590  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    4964.242 ±  137.411  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5   95401.803 ± 9630.987  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  107756.310 ± 3374.439  ns/op
Kmac128Benchmark.doFinal       avgt    5   88022.986 ± 1605.134  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5     792.176 ±    5.371  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    1282.820 ±    2.581  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    1994.412 ±    9.047  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  184361.481 ± 1826.920  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  220611.904 ± 1796.853  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    2792.631 ±    1.630  ns/op
Kmac128Benchmark.doFinal       avgt    5  151129.794 ± 1071.377  ns/op

After:

jvm summary:
Benchmark                      Mode  Cnt      Score       Error  Units
HmacMD5Benchmark.doFinal       avgt    5    846.625 ±    31.515  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    954.355 ±    64.161  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1451.073 ±   535.469  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  22488.061 ± 10127.810  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  28443.761 ±  5540.600  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   1950.957 ±   166.288  ns/op
Kmac128Benchmark.doFinal       avgt    5  19639.984 ±  1982.894  ns/op

js summary:
Benchmark                      Mode  Cnt       Score       Error  Units
HmacMD5Benchmark.doFinal       avgt    5    2207.709 ±    47.379  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    2685.775 ±   130.881  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    3251.929 ±    18.327  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  205146.397 ±  1436.978  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  133771.603 ±  3886.620  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  182172.758 ± 15625.248  ns/op
Kmac128Benchmark.doFinal       avgt    5  137058.423 ±   894.236  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt     Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5  1532.153 ±  98.386  ns/op
HmacSHA1Benchmark.doFinal      avgt    5  1888.890 ±  69.585  ns/op
HmacSHA256Benchmark.doFinal    avgt    5  2650.484 ±  54.410  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  5044.265 ± 182.921  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  6211.835 ± 766.304  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  6146.112 ± 330.041  ns/op
Kmac128Benchmark.doFinal       avgt    5  6662.520 ± 442.183  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt     Score    Error  Units
HmacMD5Benchmark.doFinal       avgt    5   767.949 ± 19.100  ns/op
HmacSHA1Benchmark.doFinal      avgt    5  1273.408 ±  7.457  ns/op
HmacSHA256Benchmark.doFinal    avgt    5  1975.577 ±  2.581  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  4792.890 ± 23.958  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  5523.259 ±  3.894  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  2753.932 ±  3.902  ns/op
Kmac128Benchmark.doFinal       avgt    5  5402.935 ± 16.783  ns/op
Linux

Before:

jvm summary:
Benchmark                      Mode  Cnt      Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    958.114 ±   23.523  ns/op
HmacSHA1Benchmark.doFinal      avgt    5   1046.690 ±   13.958  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1789.004 ±   16.212  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  50540.754 ±  911.988  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  62795.662 ± 1157.518  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   2361.118 ±   14.024  ns/op
Kmac128Benchmark.doFinal       avgt    5  50997.415 ±  228.436  ns/op

js summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    3133.905 ±   14.767  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    3565.675 ±    7.296  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    4703.615 ±   28.348  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  265755.540 ±  400.803  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  213735.739 ± 2372.957  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  262451.618 ±  262.685  ns/op
Kmac128Benchmark.doFinal       avgt    5  215801.048 ±  667.546  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt       Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5    1833.982 ±   6.555  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    2255.799 ±   8.225  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    3334.591 ±  15.462  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    7110.662 ±  28.755  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  107110.315 ± 329.578  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  132910.339 ± 324.208  ns/op
Kmac128Benchmark.doFinal       avgt    5  111063.428 ± 488.837  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    1322.299 ±    2.850  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    1528.999 ±    4.458  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    2162.434 ±    4.891  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  232387.535 ±  451.075  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  286066.350 ±  741.909  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    3025.332 ±   10.059  ns/op
Kmac128Benchmark.doFinal       avgt    5  235866.870 ± 1274.442  ns/op

After:

jvm summary:
Benchmark                      Mode  Cnt      Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5    913.652 ±  10.681  ns/op
HmacSHA1Benchmark.doFinal      avgt    5   1005.291 ±  16.443  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1757.884 ±  10.076  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  36074.129 ± 555.969  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  44225.195 ± 203.759  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   2395.086 ± 110.542  ns/op
Kmac128Benchmark.doFinal       avgt    5  36645.763 ± 416.571  ns/op

js summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    3108.546 ±   26.939  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    3727.925 ±    7.685  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    4661.934 ±   22.781  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  268484.395 ± 1143.849  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  160148.983 ±  270.193  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  199010.109 ±  281.603  ns/op
Kmac128Benchmark.doFinal       avgt    5  163679.492 ±  426.581  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt     Score    Error  Units
HmacMD5Benchmark.doFinal       avgt    5  1748.615 ±  6.144  ns/op
HmacSHA1Benchmark.doFinal      avgt    5  2178.000 ±  6.983  ns/op
HmacSHA256Benchmark.doFinal    avgt    5  3230.182 ± 12.586  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  7001.155 ± 44.972  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  7949.587 ± 11.254  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  9069.319 ± 21.034  ns/op
Kmac128Benchmark.doFinal       avgt    5  9148.495 ± 16.054  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt     Score    Error  Units
HmacMD5Benchmark.doFinal       avgt    5  1134.849 ±  2.616  ns/op
HmacSHA1Benchmark.doFinal      avgt    5  1510.617 ±  4.804  ns/op
HmacSHA256Benchmark.doFinal    avgt    5  2185.203 ±  4.563  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  8290.789 ± 17.157  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  9255.051 ± 12.219  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  3009.878 ± 12.818  ns/op
Kmac128Benchmark.doFinal       avgt    5  8760.025 ± 14.122  ns/op
Windows

Before:

jvm summary:
Benchmark                      Mode  Cnt      Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5    967.076 �  27.563  ns/op
HmacSHA1Benchmark.doFinal      avgt    5   1111.873 � 356.704  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1758.045 �  14.155  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  51300.911 � 676.285  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  63561.616 � 848.056  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   2390.782 �  26.949  ns/op
Kmac128Benchmark.doFinal       avgt    5  52397.039 � 287.303  ns/op

js summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    3474.030 ±   52.747  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    3928.964 ±   25.691  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    4954.887 ±   11.343  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  270849.920 ± 1266.181  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  218843.331 ± 1908.585  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  269112.700 ±  631.033  ns/op
Kmac128Benchmark.doFinal       avgt    5  218672.015 ±  342.134  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt       Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5    1872.002 ±   3.503  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    2320.865 ±   4.940  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    3353.387 ±   3.616  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    7097.742 ±  24.459  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  119096.430 ± 356.354  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  146893.967 ± 306.391  ns/op
Kmac128Benchmark.doFinal       avgt    5  121103.380 ± 195.996  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    1513.059 ±    5.086  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    1850.215 ±    1.369  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    2608.942 ±    6.885  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  439064.542 ± 1841.144  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  545818.355 ± 1520.403  ns/op
HmacSHA512Benchmark.doFinal    avgt    5    3413.511 ±    2.980  ns/op
Kmac128Benchmark.doFinal       avgt    5  436834.780 ± 1282.276  ns/op

After:

jvm summary:
Benchmark                      Mode  Cnt      Score     Error  Units
HmacMD5Benchmark.doFinal       avgt    5    894.328 �   8.724  ns/op
HmacSHA1Benchmark.doFinal      avgt    5   1011.242 �  20.883  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   1745.148 �  10.332  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  37005.195 � 290.795  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  45195.602 � 255.181  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   2432.478 �  18.146  ns/op
Kmac128Benchmark.doFinal       avgt    5  37746.316 � 238.307  ns/op

js summary:
Benchmark                      Mode  Cnt       Score      Error  Units
HmacMD5Benchmark.doFinal       avgt    5    3327.887 ±   19.499  ns/op
HmacSHA1Benchmark.doFinal      avgt    5    3869.227 ±   13.376  ns/op
HmacSHA256Benchmark.doFinal    avgt    5    4814.118 ±   11.242  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  269548.278 ±  927.805  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  162621.886 ±  169.410  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  201557.938 ± 2960.793  ns/op
Kmac128Benchmark.doFinal       avgt    5  164941.573 ±  608.723  ns/op

wasmJs summary:
Benchmark                      Mode  Cnt     Score    Error  Units
HmacMD5Benchmark.doFinal       avgt    5  1753.901 ±  4.853  ns/op
HmacSHA1Benchmark.doFinal      avgt    5  2192.324 ±  4.150  ns/op
HmacSHA256Benchmark.doFinal    avgt    5  3259.165 ±  5.919  ns/op
HmacSHA512Benchmark.doFinal    avgt    5  6949.977 ± 17.159  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  8243.701 ± 10.451  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  9254.618 ± 33.149  ns/op
Kmac128Benchmark.doFinal       avgt    5  9294.998 ± 46.643  ns/op

nativeHost summary:
Benchmark                      Mode  Cnt      Score    Error  Units
HmacMD5Benchmark.doFinal       avgt    5   1440.034 ±  1.855  ns/op
HmacSHA1Benchmark.doFinal      avgt    5   1812.833 ±  3.337  ns/op
HmacSHA256Benchmark.doFinal    avgt    5   2697.333 ± 10.246  ns/op
HmacSHA3_256Benchmark.doFinal  avgt    5  13900.566 ± 38.524  ns/op
HmacSHA3_512Benchmark.doFinal  avgt    5  15722.470 ± 67.423  ns/op
HmacSHA512Benchmark.doFinal    avgt    5   3271.489 ± 15.100  ns/op
Kmac128Benchmark.doFinal       avgt    5  13975.969 ± 28.762  ns/op

@05nelsonm 05nelsonm merged commit 00b474c into master Dec 19, 2024
23 checks passed
@05nelsonm 05nelsonm deleted the dependencies/bump branch December 19, 2024 16:42
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.

1 participant