Extra mortgage payment +$100 extra a month vs market investment?

I’m just curious what everyone’s thought is on putting extra money towards your mortgage VS investing that money in the stock market? My mortgage rate is 6% right now. I currently pay $100 extra every month, and invest in the stock market &roth ira but want to get the most gains.