Here's the thing, the Ecodiesel actually makes more HP at the lower RPM levels of an engine. However, once you hit about 3,000 RPM, then the Ecoboost starts to produce more horsepower.
So for an example, if it was a drag race with only 1 gear and 1 rear end ratio with only the engines differing, The ecodiesel will get the initial leap on the ecoboost. Then once its rolling just a tiny bit, the ecoboost will start producing more horsepower as it has much more breathing room and then overtake the ecodiesel. That's why on the Ford videos where they pair up an Ecodiesel against their 2.7 or 3.5 (can't remember which), The ecodiesel gets the intial lead and holds it for a short while, then the ecoboost continues to climb in RPM putting out constant but less torque to produce more power and ultimately overtake the ecodiesel.
Even though this graph isn't the exact same setup, it does compare the Ford 5.0 against the Ecoboost 3.5. Notice how the Ecoboost is producing much more torque early on in the graph. This translates to more horsepower early on from the ecoboost. This is why it feels like a much better towing vehicle. Same peak torque roughly between the two motors, however the ecoboost produces more power early on.
(Also note, even though the 6.2 in the previous gen F-150 made more peak horsepower, overall the 3.5 ecoboost produced more power earlier due to the wealth of torque it has in those lower RPM's and the 6.2 is so peaky that it doesn't make that max power for a very large range, hence why an ecoboost typically would get a jump on a 6.2 and it would take quite a bit of distance to ultimately be reeled in by the 6.2.)
Pickuptrucks.com test of 5.0 and ecoboost