disco icon indicating copy to clipboard operation
disco copied to clipboard

benchmarks

Open mimoo opened this issue 6 years ago • 2 comments

I just added benchmarks in https://github.com/mimoo/disco/commit/8b2bf93ad5e3d7b53931b27c28ec92b7d7d2d960

It's not pretty compared to crypto/tls

the main reason I believe is that I am not using the block hack that they use. It shouldn't be too hard to implement.

mimoo avatar Aug 03 '18 22:08 mimoo

goos: darwin
goarch: amd64
pkg: github.com/mimoo/disco/libdisco
BenchmarkThroughput/Packet/1MB-4                      50          22877373 ns/op          45.83 MB/s
BenchmarkThroughput/Packet/2MB-4                      30          43468186 ns/op          48.25 MB/s
BenchmarkThroughput/Packet/4MB-4                      20          90790094 ns/op          46.20 MB/s
BenchmarkThroughput/Packet/8MB-4                      10         199033667 ns/op          42.15 MB/s
BenchmarkThroughput/Packet/16MB-4                      3         500633040 ns/op          33.51 MB/s
BenchmarkThroughput/Packet/32MB-4                      2         853763670 ns/op          39.30 MB/s
BenchmarkThroughput/Packet/64MB-4                      1        1707456324 ns/op          39.30 MB/s
BenchmarkLatency/200kbps-4                     2         660347937 ns/op
BenchmarkLatency/500kbps-4                     5         264761604 ns/op
BenchmarkLatency/1000kbps-4                   10         133037534 ns/op
BenchmarkLatency/2000kbps-4                   20          67143197 ns/op
BenchmarkLatency/5000kbps-4                   50          27533168 ns/op

mimoo avatar Aug 10 '18 14:08 mimoo

we need benchmark about connection establishment

mimoo avatar Sep 05 '18 10:09 mimoo