Well, I guess it depends. If the mySQL server is on the same machine etc.
Assuming it is, I'd think that the mySQL is faster. However, I'm not 100% sure.
Why not loop and do it 100 or even 1000 times and time the execution? Then you'll know for sure whats best for your setup.