Fetching details from the dictionary...

to compare; to make a comparison (between)
to compete (on); to measure (one's strength, ability, etc. against another's)
兄と弟の背の高さを比べてみた。
I compared heights with my brother.
去年と比べて売上が増えた。
Sales increased compared to last year.
どちらが良いか比べよう。
Let's compare which is better.