Benchmark Proto3 File
Client Throughput
For our first set of benchmarks we’ll have a number of concurrently connected clients and each client will make RPCs to the fRPC or Twirp server using a randomly generated fixed-sized message, and then wait for a response before repeating. In each of our benchmark runs we’re increasing the number of concurrently connected clients and we’re measuring the average throughput of each client to see how well fRPC and Twirp scale. We’re also running a number of separate benchmarks, each with an increasing message size.32-Byte Messages

512-Byte Messages

128-KB Messages

1-MB Messages

Server Throughput
Now let’s look at how fRPC servers scale compared to Twirp as we increase the number of connected clients. Twirp makes use of the standardnet/http
server so we’re really comparing against that.
For this benchmark, we’re going to make it so that each client repeatedly sends 10 concurrent RPCs in order to
saturate the underlying TCP connections and the accompanying RPC server.
