How to use "compared" in a sentence

Sentences

I knew that they compared me with Rebecca

He compared it once more with the numbers on the electronic board, as if he were praying that he had made a mistake the first time.

But robbery is unimportant compared with murder.'

In fact, he compared it to the burning gases that might rush out from a gun.