Throughput is the rate at which data is actually delivered over a connection, measured over time and usually given in bits per second, such as Mbps. Unlike bandwidth, which is a link's capacity, throughput is what gets through after delay, packet loss, and protocol overhead take their share.
The IETF's standard for testing TCP throughput, RFC 6349, calls the rate of data carried above the TCP/IP headers "goodput," which is lower than the raw rate on the wire.
Throughput vs. Bandwidth vs. Latency
| Throughput | Bandwidth | Latency | |
|---|---|---|---|
| Question it answers | How fast is data arriving? | How much could the link carry? | How long does each exchange take? |
| What it measures | Data actually delivered per second | Most data a link can carry per second | Time for data to travel there and back |
| Typical unit | Mbps | Mbps or Gbps | Milliseconds |
In proxy pricing, "bandwidth" usually means the total data transferred in GB, not speed. See bandwidth for the difference.
Why Throughput Falls Below Bandwidth
- Protocol overhead: after 20-byte IP and 20-byte TCP headers plus Ethernet framing, a 100 Mbps Ethernet link carries about 94.9 Mbps of TCP goodput at most.
- Receive window and round-trip time: one connection's throughput is capped at the receive window (in bits) divided by the round-trip time. A 100 Mbps path with a 5 ms round trip and a 16 KB window tops out at 25.6 Mbps.
- Bandwidth-delay product: to fill a link, the receive window must be at least the link's capacity multiplied by its round-trip delay.
- Packet loss: TCP's congestion window is calculated from the path's loss rate, and lost packets have to be retransmitted.
How Throughput Is Measured
A TCP throughput test moves real data and times it:
- Transfer a block of data: the Actual TCP Transfer Time is the time it takes to send that block across the connection or connections.
- Compare with the ideal: the Transfer Time Ratio divides the actual transfer time by the ideal transfer time for that path.
- Count retransmissions: TCP Efficiency is the percentage of bytes that were not retransmitted.
Check the units when you compare results. Network speeds are given in bits per second, while some tools report bytes per second. A byte is 8 bits, so 12.5 MB per second equals 100 Mbps. curl, for example, reports its speed_download value as the average speed of the complete download in bytes per second.
A Proxy Hop Lowers Per-Connection Throughput
A single TCP connection can move at most one receive window of data per round trip. A proxy adds another leg to the path, so the round trip grows and the same window delivers less per second.
- Worked example: with a 16 KB window, a 5 ms round trip caps one connection at 25.6 Mbps. At 50 ms, the same window gives 2.56 Mbps.
- More connections fill the pipe: smaller windows need more parallel connections to fill a link. A 500 Mbps path with a 5 ms round trip needs 20 connections with 16 KB windows, or 5 with 64 KB windows.
So a slow single download through a distant proxy doesn't mean the proxy's link is slow. The round trip may be the limit.
What It Means for Web Scraping
- Compare proxies on the same test: time a fixed download to the same target through each proxy, since throughput changes with distance and path. In curl,
time_connectshows when the TCP connection to the proxy was completed, separate fromtime_total. - Scale with parallel connections, within limits: concurrent connections raise total throughput, but HTTP/1.1 says a client ought to limit simultaneous connections to one server. Scrapy's AutoThrottle aims to keep a target number of requests in flight, and its docs say raising that target increases throughput and the load on servers.
- Reuse connections for small pages: each new connection spends round trips on DNS, TCP and TLS setup before any data flows, so reusing one keeps more time for transfer.