The worst season of Colorado Rockies outfielder Carlos Gonzalez’s life turned out to be the best year of his life.

All it took was sleep.

Nothing, but uninterrupted, sound, beautiful sleep.

“It’s amazing,’’ Gonzalez says. “I can’t believe the difference.’’

This was perhaps the most vital season of Gonzalez’s career for financial reasons, eligible for free agency in November, and for the first five months, he was making a mess of it.

He rejected a lucrative four-year extension in the spring, believing he could make more money on the free agent market, and promptly went out and stunk up the joint.

Gonzalez hit just .221 the first half with an ugly .299 on-base percentage and .388 slugging percentage. He hit just .172 in the month of June, and didn’t homer all of July.