I think there is far more evidence that the Apostles all deserted Jesus during and after the crucifixion than there is that they stayed with him as he endured it all. It was only John and the women we are told in Scripture that were there. The others were afraid for their lives and hiding from the authorities.
(We do know, however, that in his curiosity, Peter had tried once before to "hide in a crowd", but was discovered by someone who recognized him. We also know there was probably some kind of sizeable crowd on the outside edges of the hill where Jesus was crucified, witnessing the crucifixions from a distance, and we know that with the kind of clothing worn in the Holy Land (both then and now), it is relatively easy to "hide in a crowd", if one is more careful than Peter apparently was in the courtyard. John and some of the women were up closer to the cross.)