Lorenzi still has not won a Grand Slam match in 13 appearances at majors. Only Juan-Antonio Marin of Costa Rica has a worse record - no wins in 17 Grand Slam matches.
Federer, also attempting to win his 18th Grand Slam title, lost in the second round here last year, his earliest defeat at Wimbledon since 2002. He finished Tuesday's match with his ninth ace.
It is Federer's 16th consecutive appearance at Wimbledon and his 59th Grand Slam event in a row, extending his record for the longest streak of consecutive majors in the Open Era.