Samasung Galaxy s3 vs. Apple iPhone 5

I am thinking about upgrading my iPhone to a iPhone 5 or a Samsung Galaxy s3. I just wanted to know what phone is better and what one has more apps. Also, I want to know what phone operates better and what are the specs. Thank you so much for your help.