If it has the same density than earth, it wont pierce deeper than its length. If it is made of uranium a bit over twice that (assuming earth is made of iron).
I wonder if there have been any simulations of such an impact and what the worst case would look like for equivalent mass but different shapes and asteroid compositions.