OK, revamped my spreadsheet to compare by rest, and to get peak damage output.
"Per Rest" is defined as 6 rounds of combat. Essentially, two 3-round fights, or one 6-round fight, per short rest. (This is customizable; it's simply the limit that I set for this. If people think there's a better setting, let me know.)
Setup:
Barbarian: halberd, PAM (18 Str), GWM, Mage Slayer (20 Str at level 12), Sentinel, Boon of Combat. Final Str: 25
Fighter: halberd (w/GWF fighting style), PAM (18 Str), GWM, Mage Slayer (20 Str at level 8), Sentinel, Charger, Boon of Combat. Final Str: 21
Charger for fighter was on a whim. Something else such as Resilient Wisdom is probably better, though the damage at the end drops a bit.
Here's the first comparison (edit: Replacing with versions with more visible level markers):
The main damage lines are total damage per rest. The "Peak" lines are the best damage output in a single turn. The Peak does not include reaction ability damage, though reaction damage is included in the overall total. For the barbarian, this means that the "peak" is actually lower than the "average" (not shown on the graphs).
The first graph compares "non-damage" subclasses. In this case, the Wild Heart barbarian vs the Champion fighter.
The barbarian leads in total damage up to level 10, with the gap closing at 6-7 when the fighter gets an extra feat. The fighter then has a bit of a lead from level 11 until level 17, when barbarian gets Improved Brutal Strike. And then they're almost identical from then on.
For peak (burst) damage, the fighter is more notably ahead starting at level 6. By level 20, the Champion can do almost a third of his overall damage output in a single turn. For almost all levels, the fighter has a peak damage output of about 24% (about 1⁄4) of its total generated damage.
Meanwhile, the barbarian has a peak of about 16%, just slightly below the overall average.
Non-peak averages are not much below overall averages for the Champion (except level 20), and not much behind the barbarian except for a few levels (mainly level 5, and levels 17+). That means that the non-peak weakness relative to the barbarian is rarely very noticeable. Thus the lack of burst damage may make the barbarian seem relatively weaker, while the significance of the fighter's burst (generally around 20%-30% higher than the barbarian's output up til level 10, and around 60% above level 10) makes the fighter stand out.
The next graph changes the Champion to Battle Master. All superiority dice are spent on damage. The stats and feats are identical.
For overall damage, the Battle Master is a bit closer to the barbarian during the early levels, and maintains its lead 17+ due to the free Superiority Die. However peak damage is significantly better than the Champion, generally sitting at about 30% of overall damage (compared to the Champion at 24%).
The Battle Master also has a strong advantage on peak damage over the barbarian. Up to level 10, it's about 40% to 70% higher than the barbarian, and from level 11 onward, it's generally about twice the barbarian's peak.
The Battle Master does take a slightly larger hit to non-peak average damage, but the attention is going to be on the burst, so it's more easily ignored.
Then there's the third graph, where I switched the barbarian to Berkserker with all the bells and whistles on.
The Berserker substantially outperforms the Battle Master at all levels for overall damage. However the Battle Master is still better than the Berserker at burst damage, ahead by 20%–40% from 5 to 10, 50%–80% from 11 to 19, and a 100% lead at 20.
Edit: For another comparison, here's Wild Heart vs Champion, but with the barbarian not using Reckless Attack (and consequentially, no Brutal Strike). If the barbarian does not push its abilities, it falls fairly far behind in overall damage as well.