A Pap smear is performed by a healthcare provider who inserts a speculum into the vagina to hold the walls apart. They then use a small brush or spatula to collect cells from the cervix and send them to a lab for testing.