Switches are faster and better. They help reduce collisions throughout the network because it automatically divides the network into multiple segments, creating bridges between segments, and supports simultaneous connections with other pCs which don't compete with other pairs of computers for network bandwidth, unlike hubs.
Hubs=old school
Switches=what everyone uses these days
Only thing hubs good for are those active USB hubs and very small home network, that's it. These days, the common household don't even use hubs. We got routers!!!