If it wasn’t the worst game in the history of spring training it was close.

Because of a pitching staff that issued 10 walks and three more errors the Yankees were crushed by the Blue Jays, 17-5, yesterday at Florida Auto Exchange Stadium.

Jose Ramirez, a 23-year-old right-hander who dazzled in three outings before being optioned to Double-A Trenton Monday, recorded one out, gave up six runs, walked four and two hits.

Adam Warren, 25, who is supposed to provide Triple-A insurance, was spanked for eight runs, four hits and walked five.

“He struggled today,” manager Joe Girardi said of Ramirez. “He couldn’t throw his fastball away to lefties and he struggled with his change-up. It happens and you move on.’’

Ramirez has a 96-mph fastball he usually throws at the knees and a tantalizing change-up. He is working on a slider, so he has three pitches when the Yankees reach out for him.

“It was tough to watch,’’ Girardi said. “We walked 10 guys, nine in the first two innings. There weren’t a lot of great things to watch today.’’