RFR: 8371571: Consolidate and enhance bulk memory segment ops benchmarks

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Nov 12 13:29:13 UTC 2025


On Wed, 12 Nov 2025 09:08:10 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR proposes to consolidate and standardize the benchmarks related to the bulk operations for memory segments. 
> 
> All the benchmarks will now run with (heap|native)x(aligned|unaligned)x(intint|intlong|longlong) combinations.
> 
> It should be noted that with this change, the running time for the benchmarks would increase significantly.

test/micro/org/openjdk/bench/java/lang/foreign/BulkOps.java line 1:

> 1: /*

I this can now be deleted, as it's covered by the other benchmarks?

test/micro/org/openjdk/bench/java/lang/foreign/SegmentBulkCopy.java line 60:

> 58:     byte[] dstArray;
> 59: 
> 60:     public static class Array extends SegmentBulkCopy {

Should we use just one class for both arrays and byte buffers? Also, for those we don't test loops?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28260#discussion_r2518301013
PR Review Comment: https://git.openjdk.org/jdk/pull/28260#discussion_r2518306595


More information about the core-libs-dev mailing list