System.out.println(String.format("Writing %d x %d little endian longs to %d segment: checked=%,d nsecs, direct=%,d nsecs, unsafe=%,d nsecs.", rounds, numValues, segmentArray.length, elapsedChecked, elapsedDirect, elapsedUnsafe));
}
private static final void testGetLongsLittleEndian(byte[] segmentArray, int numValues, int rounds) {
Arrays.fill(segmentArray, (byte) 0);
CheckedMemorySegment checkedSegment = new CheckedMemorySegment(segmentArray);
long elapsedChecked = timeGetLongsCheckedLittleEndian(checkedSegment, numValues, rounds);
checkedSegment = null;
Arrays.fill(segmentArray, (byte) 0);
SimpleMemorySegment directSegment = new SimpleMemorySegment(segmentArray);