Tests Java list operation speed