Stock indexes are collections of stocks meant to represent the market or a portion of it—they are used by investors as benchmarks against which to compare the performance of their own portfolios.