Strictly from epics(Ramayana and Mahabharata), Shiva is easily the best warrior. Because he simply has the best feat in both epics. This feat is the famous Tripura Dahan, where all gods including Indra and Vishnu failed to even scratch them. And Brahma deemed only Shiva to be worthy to accomplish this feat.
But this needed power of all gods and other divine aspects of universe, and apart from Shiv, none had the power to control this full setup.. In an instant shiva , with his power, combined with power of all Dev's destroyed Tripura demons.
If we are to inspect only warriors from characters who participated in core events of Epics, In Ramayana it is a tie between Indrajit and Hanuman, both are leagues above rest of the warriors. And themselves unable to beat each other in full power.
In Mahabharat, it is either Bhishma or Drona, in their Younger age. Bhishma was guardian of Hastinapur under whose watch even Mighty Jarasandh could not invade It. Jarasandh who casually squashed Yadavs could not succeed in annexing Hastinapur due to Bhishm.. Bhishma also stalemated with parashuram who himself admitted he Is unable to beat Bhishma despite trying his best. Bhishma openly admitted that he could.never kill Pandavs and they were as dear to him as the Kuru princes. We can only imagine what woudlve happened if that weren't the case.
For Drona's case he was most terrifying commander from Kurus side, His affection being only factor preventing him from killing Pandavs including Arjun. Even in his Old age mone could stand against him when he unleashed his fury. If not for Krishna, Drona's Brahmastra would've Killed Arjun on 15th day. So you can only Imagine what he could've been In younger age.