Esp8266 connected via serial port to a Pico, Espruino board or Arudino.
The first case would be slower because the uP has to handle more tasks (marshall data to send, and send data)
The second cases have more than one uP to divide up the tasks.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm trying to visualize your hardware setup.
The first case would be slower because the uP has to handle more tasks (marshall data to send, and send data)
The second cases have more than one uP to divide up the tasks.