I think you want to transfer data between two processes on one machine over ip. localhost, as a loopback ip address, is available to processes on both Ubuntu and Windows 10 and should have comparable latency. A virtual machine will send network traffic through virtual network devices. This improves control over network traffic with more fine-grained options, like configuring firewalls at the virtual NIC level but will probably introduce a small amount of latency if you are sending data between virtual machines.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence