CheckedMemorySegment checkedSegment = new CheckedMemorySegment(segmentArray);
long elapsedChecked = timePutByteArrayChecked(checkedSegment, sourceArray, numValues, rounds);
checkedSegment = null;
Arrays.fill(segmentArray, (byte) 0);
DirectMemorySegment directSegment = new DirectMemorySegment(segmentArray);
long elapsedDirect = timePutByteArrayDirect(directSegment, sourceArray, numValues, rounds);
directSegment = null;
Arrays.fill(segmentArray, (byte) 0);
UnsafeMemorySegment unsafeSegment = new UnsafeMemorySegment(segmentArray);