As they don’t run on the same virtual machine, You should look at the tradeoff they provide.
For a good definition of the BEAM, You can read the following post.