RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v42]

Srinivas Vamsi Parasa duke at openjdk.org
Sat Oct 14 00:03:48 UTC 2023


On Fri, 13 Oct 2023 10:31:14 GMT, himichael <duke at openjdk.org> wrote:

> my question is that this feature should improve performance several times, but it doesn't look like there's much difference between open jdk 22.19 and jdk 8. is there a problem with my configuration ?

Hello @himichael,

Using your code snippet, please see the output below using the latest JDK and JDK 20 (which does not have AVX512 sort):

JDK 20 (without AVX512 sort): 
`java -XX:CompileCommand=CompileThresholdScaling,java.util.DualPivotQuicksort::sort,0.0001 -XX:-TieredCompilation JDKSort `

elapse time -> **7501 ms**

------------------------------
JDK 22 (with AVX512 sort)
`java -XX:CompileCommand=CompileThresholdScaling,java.util.DualPivotQuicksort::sort,0.0001 -XX:-TieredCompilation JDKSort`
elapse time -> **1607 ms**

It shows 4.66x speedup.

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

PR Comment: https://git.openjdk.org/jdk/pull/14227#issuecomment-1762406455


More information about the hotspot-compiler-dev mailing list