With this comparision, its infinitely slower, but that doesn't mean that the dynamic cast will matter in your project.
If you do any reasonable amount of work with the pointer after (doesn't even have to be that much) the cost of the dynamic cast will quickly disappear.
It's not that slow, its just much slower then doing no work
That said, dynamic casts are often avoidable, and the need to use them usually points to something fishy in your design.