I find for myself going westbound is easier on the body and mind than eastbound. Many others seem to feel the same, It has to do with the day being stretched instead of shortening.
Your BCN departure in the morning would get you into SFO in the afternoon 10-11 hours later. Since your will have an early morning with disembarkation a good time to relax is the first part of the flight. Sleep until morning SFO time and then no sleep until home in the evening.