0

If I am opening two ports and connect them in localhost. (On the same computer) What would be the rate between them?

My internet's rate is 100 Mbps and network is 1Gbps.

DividedByZero
  • 421
  • 1
  • 5
  • 11
  • @BrianAgnew Very old one, 2GB ram, Dual 1.8GHZ. – DividedByZero Oct 19 '12 at 11:45
  • Depends very much on the network cards, and where you get the data from and what you do with it. – Tobias Ritzau Oct 19 '12 at 11:46
  • @TobiasRitzau On the same computer. – DividedByZero Oct 19 '12 at 11:47
  • Ok, if you use localhost then the network is more or less not involved. You just shuffle data from your app to the system and back. Hard to say, but it has nothing to do with the 100 Mbps or 1Gbps. Try it! :) – Tobias Ritzau Oct 19 '12 at 11:49
  • You can use somehing like nuttcp to check but you'll be benchmarking RAM speed and the TCP stack. You can still get better performance with unix domain sockets or pipes if that's what you were wondering. – cdleonard Oct 19 '12 at 12:57

1 Answers1

2

If your data transfers are on the same machine, then your internet/network speed isn't relevant since data won't go through the network card.

The only thing that matters is your computer processing speed ;)

  • The data transfer would still go through the TCP/IP stack, so while the effective bandwidth would be very high, it would still be measurable. – Dave Swersky Oct 19 '12 at 13:29