view src/main/java/org/openjdk/gcbench/alloc/uninit/IntArray.java @ 86:0cb1442be9d6

Fix up uninit tests
author shade
date Thu, 26 Oct 2017 17:04:09 +0200
parents 1655f5729b5a
children 583fef4276f5
line wrap: on
line source

package org.openjdk.gcbench.alloc.uninit;

import org.openjdk.gcbench.tests.UnderPressureTest;
import org.openjdk.jmh.annotations.*;

import java.util.concurrent.TimeUnit;

@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Benchmark)
public class IntArray extends UnderPressureTest {

    @Param({"1"})
    int size;

    @Benchmark
    public Object test() {
        return uninitAlloc(size);
    }

}