public class Test {

    public static void main(String[] args) {
        byte[] a = new byte[1024];
        int[] b = new int[1024];
        for (int i = 0; i < 10_000; i++) {
            test(a, b);
        }
    }

    public static void test(byte[] a, int[] b) {
        for (int i = 0; i < a.length; i++) {
            b[i] = Byte.toUnsignedInt(a[i]);
        }
    }
}
