JDK-8223078 : Add microbenchmark for array copying/clearing/resizing
Type:Enhancement
Component:core-libs
Sub-Component:java.lang
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2019-04-29
Updated:2019-05-02
Resolved:2019-05-01
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
We never checked in a microbenchmark for
JDK-6428387: array clone() much slower than Arrays.copyOf
but now that we have jmh support, we should.
We can reaffirm that using arraycopy is much faster than the equivalent loop.