Is the sentence below compound or compound complex? (I wasn't sure if "than I do" is a subordinate clause)

Tanya drives better than I do, but I can swim faster?
Thanks...

Since "than I do" contains a verb, it is a clause. Your sentence is compound-complex.