containers have near bare-metal performance as they're not a hypervisor infront of the hardware
I don't know anything about representing a gpu to docker though if thats your usecase, it may or may not be tricky
personally I like lxc better than docker when containerizing, thats another option to try