RFR: 8313322: RISC-V: implement MD5 intrinsic [v2]

Antonios Printezis tonyp at openjdk.org
Wed Aug 2 13:19:58 UTC 2023


On Tue, 1 Aug 2023 08:00:12 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

>> Thanks, looks good to me!
>> 
>> You also have some tests here:
>> test/hotspot/jtreg/compiler/intrinsics/sha/sanity/TestMD5xxx
>> 
>> I'll take it for a spin.
>
>> Thanks, looks good to me!
>> 
>> You also have some tests here: test/hotspot/jtreg/compiler/intrinsics/sha/sanity/TestMD5xxx
>> 
>> I'll take it for a spin.
> 
> Thumbs up!

Thanks to @robehn for doing a performance evaluation with the jmh md5 microbenchmarks on his VisionFive2 board!

-UseMD5Intrinsic:


MessageDigests.digest                   md5        64     DEFAULT  avgt    6    2568.244 ±   842.423  ns/op
MessageDigests.digest                   md5     16384     DEFAULT  avgt    6  217455.589 ± 30984.729  ns/op
MessageDigests.getAndDigest             md5        64     DEFAULT  avgt    6    3181.132 ±   677.752  ns/op
MessageDigests.getAndDigest             md5     16384     DEFAULT  avgt    6  230630.983 ± 34108.072  ns/op


+UseMD5Intrinsic:


MessageDigests.digest                   md5        64     DEFAULT  avgt    6    1930.057 ±  106.178  ns/op
MessageDigests.digest                   md5     16384     DEFAULT  avgt    6  162308.240 ± 2042.715  ns/op
MessageDigests.getAndDigest             md5        64     DEFAULT  avgt    6    2721.418 ±  567.045  ns/op
MessageDigests.getAndDigest             md5     16384     DEFAULT  avgt    6  164660.082 ± 1976.401  ns/op


+UseMD5Intrinsic +UseZbb:


MessageDigests.digest                   md5        64     DEFAULT  avgt    6    1835.246 ±  252.071  ns/op
MessageDigests.digest                   md5     16384     DEFAULT  avgt    6  145386.522 ±  444.446  ns/op
MessageDigests.getAndDigest             md5        64     DEFAULT  avgt    6    2555.515 ±  639.491  ns/op
MessageDigests.getAndDigest             md5     16384     DEFAULT  avgt    6  149045.631 ± 6658.545  ns/op

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15090#issuecomment-1662195266


More information about the hotspot-dev mailing list