Whatever difference you were hoping for with the presence or absence of the comma is swamped by the reader's intelligence. The first sentence, without the comma, on close examination seems to mean "in the same manner as in war", but the reader instantly and unconsciously rejects that absurdity and thinks you made the mistake of leaving the comma off. He reads "for instance, as in war" (note the comma).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.