To compare to is to point out or imply resemblances between objects regarded as essentially of a different order
Use "compared to" when highlighting (or comparing) the similarities of one thing to another.
life has been compared to a pilgrimage, to a drama, to a battle
Paris has been compared to ancient Athens
The human heart can be compared to a pump.
To compare with is mainly to point out differences between objects regarded as essentially of the same order.
Use "compared with" when you are looking for differences.
Congress may be compared with the British Parliament.
Paris may be compared with modern London.
CEO’s now earn 419 times the pay of blue-collar workers, compared with 42 times their pay in the 1980's