public static void benchmarkFloatLargeArrayNative()
    {
        System.out.println("Benchmarking FloatLargeArray native.");
        long length = (long) Math.pow(2, 32);
        long start = System.nanoTime();
        FloatLargeArray array = new FloatLargeArray(length, false);
        System.out.println("Constructor time: " + (System.nanoTime() - start) / 1e9 + " sec");
        int iters = 5;
        if (array.isLarge()) {
            for (int it = 0; it < iters; it++) {
                start = System.nanoTime();
                for (long i = 0; i < length; i++) {
                    array.getFromNative(i);
                    array.setToNative(i, 1.0f);
                    array.setToNative(i, array.getFromNative(i) + 1.0f);
                }
                System.out.println("Computation time: " + (System.nanoTime() - start) / 1e9 + " sec");
            }
        }
    }