strstr vs KMP

Could any one please help me understanding which one’s better strstr() or KMP for pattern matching…
as recently while doing a question on SPOJ i found that strstr was someway or other faster than KMP…

can someone please explain …

I also wait for a proper answer, yet I believe KMP is better.

//