testing on peak memory and comparing old and new