It'd be tough to track down statistics on every religious war in history, but most religions can be eliminated pretty quickly, either because they don't have a track record of religious war or because they were never popular enough to rack up much of a body count. I'll focus on the two mentioned, Islam and Christianity, since both are extremely popular religions with a strong focus on proselytizing and a tendency to come to blows over theology.
This is going to involve arbitrary judgement calls and back-of-the-envelope estimations, so don't expect a particularly definitive answer. I'm going to count both martyrs and slain infidels towards each religion's score, since it's hard to find detailed statistics on which sides lost how many people for some of these wars. I'm also going to award each war's death total to whichever side started it, since any country's going to fight back against an invasion whether or not it's religiously motivated. I'll start by ignoring any war with <100,000 deaths, since those aren't likely to tip the scales, as well as civil wars where neither side is secular and there's no clear aggressor.
German Peasants' War - A series of peasant revolts during the height of the Protestant Reformation, spurred on by a mix of economic and religious causes. 100k deaths for Christianity.
Moro Insurgency - Islamic rebels in the Philippines have a long, bloody history of resistance against colonial and Philippine governments alike. 120k deaths for Islam.
Northern Crusades - Crusades to root out the Baltic pagans. Couldn't find any good casualty estimates, but 150k deaths for Christianity seems reasonable.
Algerian Civil War - More Islamist rebels. 200k deaths for Islam.
Lord's Resistance Army - Christian militants in Central Africa. Remember Kony 2012? 200k deaths for Christianity.
Albigensian Crusade - France leads a crusade to root Cathar heretics out of the Languedoc. Estimates vary wildly from 7k to 1mil, but let's just say 200k deaths for Christianity.
Great Turkish War - A "Holy League" of Christian states rolls back the Ottoman Empire's conquests in Eastern Europe. 300k deaths for Christianity.
Afghan Civil Wars - A variety of Islamists, including Al Qaeda, vie for control over Afghanistan. 400k deaths for Islam.
Rashidun Conquests - The Islamic Caliphate conquered its way from being a desert backwater to the world's most powerful state in an incredibly short period of time. I can't find anything resembling an estimate for the casualties involved, so I'm going to completely BS this one: 500k deaths for Islam. Trust me, it won't affect the winner.
Ottoman Conquests - Mehmed II leads the Ottomans on a merry path of conquest over Eastern Europe. 800k deaths for Islam.
The Crusades - All of Christendom spends a few centuries banging it's head against a Holy Land-shaped wall. 1mil deaths for Christianity.
So far, Christianity's crusading habit is definitely a big source of casualties, but those pesky Muslim militants have pushed Islam into the lead. The score is neck and neck at 1,950,000 deaths for Christianity and 2,120,000 deaths for Islam.
But three wars that most people have never heard of completely blow this competition out of the water.
French Wars of Religion - The French Protestants and Catholics spend 36 years massacring each other silly. 3mil deaths for Christianity.
Thirty Years' War - Protestant and Catholic princes duke it out for control of the Holy Roman Empire (modern Germany). War is waged between mercenary companies that loot the countryside to support themselves. One third of Germany dies. 10mil deaths for Christianity.
So that's 15 million deaths for Christianity and a mere 2 million for Islam.
But in the year of our lord 1850, a new challenger blows them both out of the water.
Taiping Rebellion - Hong Xiuquan was born into a poor family in southern China. In 1837, he fails the imperial civil service examinations-- his only hope of getting ahead in life-- and has a nervous breakdown. Long story short, he reads some pamphlets from Portuguese missionaries, gets some freaky visions, decide's he's Jesus's younger brother, rounds up some followers (known as the God Worshippers), and launches a rebellion against the Qing Dynasty that results in the deaths of over 20 million people.
Communism
Stalin's reign: estimates usually around 20 million
Mao's cultural revolution: 40-60 million in most estimates
Khmer Rouge (Cambodian genocide): 2-3 million
Wikipedia estimates the total death total at 85-100 million. See article for details:
Mass killings under Communist regimes
Nationalism/Ethnic Pride
Nazi Germany: 12 million in Holocaust, countless more as a result of military campaigns/WW2
King Leopold II: 8 million in Colonial Congo
Many Many more examples, including the Rwandan genocide, Sadam, etc
For me, all these numbers we are looking at don't necessarily say much about the specific ideology/religion they are tied to. Christianity, for example has led to a great deal of good in the world, including our entire set of Western values (yes, even the liberal humanism that agnostics/atheists ascribe to), and Christians have been behind the construction of countless hospitals/schools, and in charge of a long list of humanitarian efforts/campaigns (think of who was there during the Ebola crisis). Similar things can be said for Islam, despite the many atrocities also committed under its banner.