The best we can compare these would be total NBA attendance for entire season vs WWE's touring attendance for the entire year (running 2-3 shows per week plus 1 PPV per month). TV Ratings isn't even a contest as the only time the NBA comes close or exceeds is during the finals.
I'll use 2014 for WWE and the 2013-2014 season for the NBA for these stats:
NBA's total attendance (2013-2014 season): 21,411,543/# of games(1,230): 17,407 average per event
WWE total attendance (2014): 1,931,000/# of live shows (318): 6,072 per event
However, WWE sells 10,000 John Cena wristbands at $15 each for every NBA Jersey sold.