Lines Matching refs:Action
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()
139 benchmark("Deserialize from memory stream", inputData.length, new Action() { in runTest()
156 private static void benchmark(String name, long dataSize, Action action) throws IOException { in benchmark()
180 private static long timeAction(Action action, int iterations) throws IOException { in timeAction()
200 interface Action { interface in ProtoBench