[Java]: Improve protobuf performance tests.