If your flight is on time, you should be able to make it. At 10pm SFO terminal 3 is not very busy. If you can walk at a brisk pace, the walk is not too bad. The other option is AirTrain, but I don't think you save much time, if any, on that, but others may feel differently. Taking a carry-on is not a bad idea.