talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
674 stars 15 forks source link

adding average rrtt #116

Closed johannesesbjorn closed 6 months ago

johannesesbjorn commented 6 months ago

output looks like this

Last RTT 311.823ms
Average RTT: 311.823ms Based on 1 requests
Last RTT 314ms
Average RTT: 312.9115ms Based on 2 requests
Last RTT 317.885ms
Average RTT: 314.569333ms Based on 3 requests
Last RTT 319.046ms
Average RTT: 315.6885ms Based on 4 requests