This might help:
http://answers.presonus.com/6747/shortest-midi-quantization-in-studio-one This is about external synths too BTW. Sonar's midi timing becomes poor when the audio side of the program is under heavy load. You may not hear this with one synth playing
(and the the audio load is not maxed out) but when there are many synths playing and the parts are fast and complex
(and the audio is under heavy load) it certainly becomes noticeable. It seems Sonar's midi timing is somehow related to the audio side of the program. I am not certain as to the reasons why but I have heard it. As a drummer one is super sensitive to timing issues. Other Sonar users have agreed with me on this as well.
Not so in Studio One. My midi interface is running on USB but on its own PCI USB card so there is nothing else going on. Midi timing is relentless and super tight even under heavy audio load. With many synths playing out over multiple midi ports. Sonar is way behind in this regard. Most wont hear this because you need quite a few hardware synths in order to experience it and many don't own enough to put this under test.
Quite a few have shifted over to Studio One because of its midi timing. It was one of the main reasons I actually switched. The gapless engine also allows you to jump midi tracks on the fly while in record (and looping) and add new midi data into the track you land on. Sonar cannot cope with this at all. It simply falls over. For me this is quite a revelation. Being able to add new material to existing parts. There are many areas where Studio One excels midi wise.
Haven't tested Reaper though. It would have to match this at least in both of these areas.