[foreign-memaccess+abi] RFR: 8299730: Add trivial call linker option [v3]
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Jan 27 16:05:03 UTC 2023
On Fri, 27 Jan 2023 15:33:52 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Forgot to add the benchmarks before. Added them now.
>
> Some numbers on my machine:
>
> ```
> Benchmark Mode Cnt Score Error Units
> CallOverheadConstant.jni_blank avgt 30 4.271 � 0.012 ns/op
> CallOverheadConstant.panama_blank avgt 30 3.300 � 0.022 ns/op
> CallOverheadConstant.panama_blank_trivial avgt 30 2.853 � 0.010 ns/op
> CallOverheadVirtual.jni_blank avgt 30 4.278 � 0.017 ns/op
> CallOverheadVirtual.panama_blank avgt 30 3.665 � 0.014 ns/op
> CallOverheadVirtual.panama_blank_trivial avgt 30 3.254 � 0.011 ns/op
> ```
>
> The difference seems to be very minimal on my machine, but others have reported more significant improvements. This could still be improved by intrinsifying in C2 maybe, but not sure by how much, and if that's worth the complexity.
Nice!
-------------
PR: https://git.openjdk.org/panama-foreign/pull/771
More information about the panama-dev
mailing list