A few points that weren't mentioned:

- the rogue can stack Galant's Focus with Reckless Attack for a total of +12acc

- the rogue has also Deep Wounds which adds (1+might bonus) dmg/s

- if we consider the pet dmg, Stunning Shots and Stalker's Link bonuses we also have to consider the time used by the pet to move from target to target, just like for the rogue

- in theory, under Defensive Mindweb, the rogue can also add more damage via Riposte

- the rogue can also stun (Sap) or further lower the defenses (with Persistent Distraction or by applying other afflictions)

- the rogue can do 2 types of damage

All that being said here are my results:

I considered a wood elf ranger with 30mig/20per using a durganized legendary Persistence (with lash) and his pet VS a hearth orlan rogue with 30mig/20per and a durganized legendary Tidefall (with lash).

Both are using the Gauntlets of Swiftness and potions of alacrity for nearly 0% recovery.

On top of the 60% dmg bonus from might and the 55% from legendary they have:

- ranger - 20% dmg from Stalker's Link, 15% dmg from Apprentice Sneak Attack, 40% dmg from flanking (resting+boots), 12% dmg from hit to crit conversion

- rogue - 20% dmg from Reckless Attack, 15% dmg from Two Handed Style, 50% dmg from Sneak Attack, 100% dmg from Death Blows, 30% dmg from flanking (resting+boots), 30% dmg from hit to crit conversion

They both have 120% crit damage (durgan+merciless hand+dungeon delver).

The ranger has 20% hit to crit (and since 50% of the attacks are hits he will have 10% more crits overall, ie 0.1*120%=12% more dmg), the rogue has 50% hit to crit (and since 50% of the attacks are hits we will have 25% more crits overall, ie 0.25*120%=30% more dmg) .

The rogue deals 1.6 raw dmg/s with Deep Wounds.

The ranger has 116 accuracy with Stalker's Link, while the rogue has 118 with Reckless Assault and Galant's Focus. Both of them attack every 1s.

The wolf pet deals 16-23 base damage,has 8DR penetration (base+Vicious Companion) and a total of 212% dmg bonuses (72% level bonuses, 15% Vicious Companion, 30% Merciless Companion, 50% Predator's Sense, 15%might, 30% flanking). His accuracy at lv16 is 105. He attacks roughly every 3s.

The rogue will do on average every 1s:

17*(1+.6+.55+.2+.15+.5+1+.3+.3)=78.2 slash/thrust dmg (weapon), 19.5 elemental dmg (lash), 31.3 raw dmg (wounding), 1.6 raw dmg (deep wounds) for a total of (130.6dmg - 1.25*DR)

The ranger will do on average every 1s:

25*(1+.6+.55+.2+.15+.4+.12)=75.5 thrust dmg (weapon), 18.9 elemental dmg (lash), 30,2 raw dmg (wounding) for a total of (124.6 - 2.5*DR)

The pet will do every 3s:

19.5*(1+2.12)=60.8 thrust dmg (fangs) if the target has less than 9DR and a total of (68.8-DR) if the target has at least 9DR

that also means the pet will do on average every 1s: (20.3 dmg) if the target has less than 9DR and (22,9 - .33DR) if the target has at least 9DR

Both the ranger and the pet will do on average every 1s: (144.9 - 2.5*DR) dmg if the target has less than 9DR and (147.5 - 2.88*DR) if the target has at least 9DR

Conclusions:

- without the pet the ranger is always outdamaged by the rogue (higher dps, faces less DR, dual dmg type)

- ranger+pet outdamage the rogue if the DR<9; if DR>=9 the rogue gains again the upper hand because he faces less DR and has 2 types of damage

If the ranger has an accuracy advantage then he can gain the upper hand at higher DR too... And if the rogue uses 2 weapons he will be outdamaged even more easily.