Lines Matching refs:inputData
90 final byte[] inputData = readAllBytes(file); in runTest()
91 final ByteArrayInputStream inputStream = new ByteArrayInputStream(inputData); in runTest()
92 final ByteString inputString = ByteString.copyFrom(inputData); in runTest()
104 benchmark("Serialize to byte string", inputData.length, new Action() { in runTest()
107 benchmark("Serialize to byte array", inputData.length, new Action() { in runTest()
110 benchmark("Serialize to memory stream", inputData.length, new Action() { in runTest()
116 benchmark("Serialize to /dev/null with FileOutputStream", inputData.length, new Action() { in runTest()
121 … benchmark("Serialize to /dev/null reusing FileOutputStream", inputData.length, new Action() { in runTest()
128 benchmark("Deserialize from byte string", inputData.length, new Action() { in runTest()
133 benchmark("Deserialize from byte array", inputData.length, new Action() { in runTest()
136 .mergeFrom(CodedInputStream.newInstance(inputData)).build(); in runTest()
139 benchmark("Deserialize from memory stream", inputData.length, new Action() { in runTest()