But what you need is a device that simply queries the cable and asks it what it thinks it can do. I haven’t seen one for sale and am too busy to make one, but it shouldn’t be that hard.
Apple’s system info ought to tell you this but doesn’t.
At some point I'll just have to bite the bullet and get whatever is on the market and hope there aren't new specs right around the corner.
Why? Surely there could be some SBC or something for like $100 which you could connect to your computer. The testing software can measure how long it takes to transfer a file. Then it could try charging itself from the computer requesting a higher and higher wattage. I don't see how a device like that could be so expensive.
Here's an example of the data that cable testers can give you: https://m.youtube.com/watch?v=XFbJD6RE4EY
It seems like a device capable of acting as a host & device could just try to shove data down a cable and see what the max is...
Take a USB3 device, plug it in with the cable, and then go to System Profiler (Apple Menu -> About this Mac -> System Profiler). Look for the device, and check the speed. If it says 480MB/s it's a USB 2 cable, if it says 5GB/s, 10GB/s or 20GB/s then it's a USB3 cable.
I assume there's a way to do the same thing on Windows and Linux.
For "home" testing, I've used a USB C -> NVMe enclosure (UGreen is my favourite) with a half decent NVMe drive in it. Does the drive reach 1 gigabyte / second sustained read/write? Congrats, the cable supports 10 gigabit.