They judge this with a metric called tps (transactions per second) and its very flawed. But that being said, on the base layer XRP has orders of magnitude more capacity like 7 tps vs 3000 tps. Lightning can theoretically handle millions per second, though this is limited in a way by the base layer entry. Lastly, other chains beat out bitcoin on base layer speed because bitcoin doesn’t compromise decentralization for performance enhancements which cryptos like XRP have done unashamedly.