test an advanced perfomance in Java