In order to get the switching speed of any switch you need to put it in a test circuit which is simply consisting of a DC power supply VDD a pull up load and the transistor under test. Then one applies a square input voltage that is sufficient to on the device. Then one acquires here calculates the drain current waveform iD(t) which will be in a distorted square wave with slower rise and fall of the at the edges of the square pulses. One calculates the rise and fall times tr and tf.
The highest applied frequency of the square wave can be estimated by fmax= 1/(tr+tf).
You can adjust the load resistance RL to limit the steady sate drain current Id such that