The Canadian sixth seed fired 27 aces as he beat Sock for the eighth successive time to maintain his hopes of improving on his 2014 semi-final place at the All England club.
Raonic's path to the last four appeared to have got considerably easier on Saturday following the shock exit of the man he was seeded to meet in the quarter-finals.
But Raonic was not about to get distracted by the downfall of top seed Novak Djokovic, who had entered Wimbledon as the holder of all four grand slam titles, and kept his eye on the ball ahead of a meeting with Belgian 11th seed David Goffin.
News that makes sense
Your trusted source for staying up-to-date with the world around you. Get free daily news updates and analysis, straight to your inbox.
"I'm happy with the way I was able to get it done in three sets and move on and give myself another challenge looking forward," Raonic told reporters after reaching week two without dropping a set and having fired down 79 aces.
(Reporting by Pritha Sarkar, editing by Ed Osmond)
