compare my portfolio with benchmark index

Avatar

I have many portfolios and I want to compare the performance of them with my benchmark index(for example SP500 or DJI) in a specified period of time. Any easy way to do it?