Stunned time is determinated by the weight stat. Less weight, more time stunned.
Also, if you are hit with a kart with impulse, the time stunned is bigger.
I suppose that I must explain the stats...