Both are good and the answer to your question is somewhat model dependent. I have revolvers made by both.
I give Ruger a slightly higher rating, but that's just me
ruger revolvers are known for being incredibly reliable, more so than s&w, but i would think that would be more of factor for consideration with the larger caliber pistols.
il be honest though, i like the way s&w revolvers look more than ruger.