3 Node cluster with docker compose


I currently manage a docker ELK stack with 3 nodes (1 master/no-data, 2 master/data) on the same machine. If I add 2 mode data node containers to this(still on the same machine) will i experience significant performance increase while querying? I recently increased the heap memories on all nodes but didn’t see much of an increase. Will 5 virtual nodes give me a significant performance increase or do i just need baremetal from now on?