java laboratory for performance improvment and best practice