there are videos in youtube showing focus speed of both cameras. Although k5 seems extremely fast i can tell you by owing a kx that it's focus speed is absolutely great. Of course lenses always play a major role in focus speed and accuracy. But i can tell you that those numbers in the technical booklet about k.x are real.
now if you are intrested in technical details here they are:
Pentax K-5 Camera Performance - Full Review Pentax K-x Camera Performance - Full Review
actually kx seems a bit faster in numbers. I don't know about k5 as i've never used one but i think that k-x is one of the best bargains pentax ever made!!!
if you want just for the fun of it, check this out...
Canon EOS 60D Camera Performance - Full Review
twice the price twice the delay... feel free to check out similar nikons....
but the bottom line is that k5 is much much much better camera than k-x when it comes to ease of use and custom settings...