mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Update the ArraysFill JMH benchmark
This commit is contained in:
parent
1b401dcf34
commit
5edff7f7f0
@ -74,18 +74,21 @@ public class ArraysFill {
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public void testByteFill() {
|
||||
public byte testByteFill() {
|
||||
Arrays.fill(testByteArray, (byte) -1);
|
||||
return (byte) (testByteArray[0] + testByteArray[size - 1]);
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public void testShortFill() {
|
||||
public short testShortFill() {
|
||||
Arrays.fill(testShortArray, (short) -1);
|
||||
return (short) (testShortArray[0] + testShortArray[size - 1]);
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public void testIntFill() {
|
||||
public int testIntFill() {
|
||||
Arrays.fill(testIntArray, -1);
|
||||
return testIntArray[0] + testIntArray[size - 1];
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user