Just to expand.
Container technology run your software just as it was a standard process.
There are no performance implications in running code inside or outside the container.
Here be careful, that on MacOS docker is implemented as a virtual machine. In such case there could be somehow serious performance implications. Especially around IO.