1. 3
  1.  

  2. 1

    Isn’t this expected? As sockets go through the kernel network stack, while pipes are minimal. When everything is in cache, sockets reach CPU bound before pipes.