Java performance tests