[foreign-memaccess+abi] RFR: Add benchmarks to MemorySegmentVsBits [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Jan 5 23:27:22 UTC 2023


On Wed, 4 Jan 2023 08:00:15 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes the addition of some benchmarks, for example using a LonBuffer and a VarHandle.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Change to big endian for some variants

Seems bulk byte buffer is slow - but I suspect that has to do with endianness - e.g. this benchmark specifically sets endianness to BIG_ENDIAN, which then causes issues when doing a bulk copy against an array (which has native order). I'd suggest to tweak the buffer to have native endianness, and see if that improves the performance of the bulk put.

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

PR: https://git.openjdk.org/panama-foreign/pull/762


More information about the panama-dev mailing list