4 ms·
It still will be amortized by your application's data. For example, reading and buffering actual messages. The benchmark literally just has a one byte "buffe
by karl_p 8y ago
It still will be amortized by your application's data. For example, reading and buffering actual messages. The benchmark literally just has a one byte "buffer" per connection.
I threw this benchmark together in a couple of hours pretty easily. The most annoying part was just measuring the RAM :-)
But yes, everything is a tradeoff. If you want safety, you pay more - either in RAM, or in cognitive load.