A .22 is a terribly puny, underpowered cartridge for self-defense, most firearms instructors would say, but in a pinch it's better than throwing a rock. I have a 30 round Keltec PMR30 in 22WMR...
It's a tiny bullet, but there can be thirty of them - nonstop until the magazine is empty. Dead - Right - There.