"Compared with" is formally correct. "Compared to" is in common use in spoken English, but should be avoided in formal writing. I would certainly choose "with" over "to" in this context.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.