Switch is better than hub. This is because the switch sends data from the sender end to the specific port of the receiver computer. But the hub sends it to all computers without sending it to specific computers. As a result, it takes less time to switch the data transmission. That is why switch is better than hub.