[foreign-memaccess+abi] RFR: Benchmark Java to/from C string conversions

Victim Abuse duke at openjdk.org
Sat Sep 2 09:50:02 UTC 2023


On Wed, 23 Aug 2023 15:11:39 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This PR adds two benchmark to test performance of Java <-> C string conversions.
> The benchmark is not 100% fair, given that JNI has also to transition from Java to native code, but the trend in the benchmark is nevertheless interesting, showing that JNI string conversion scales very poorly with growing string size.
> 
> Thanks to recent optimizations, FFM string conversion is now competitive even for smaller string sizes.

Marked as reviewed by Victimabue at github.com (no known OpenJDK username).

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

PR Review: https://git.openjdk.org/panama-foreign/pull/874#pullrequestreview-1608044431


More information about the panama-dev mailing list