Both sleep() and setSpeed() are used to delay the speed of execution. 
The main difference between them is that: 
setSpeed sets a speed that will apply a delay time before every Selenium operation. 
thread.sleep() will set up wait only for once when called.