fix: routing mock accuracy

routing interface doesn't wait for value to appear in network, but value
doesn't appear in network until time as passed

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
add more routing benchmarks

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
add mixed benchmark

BenchmarkMixedAddCat1MBXX              2         517168259 ns/op 2.03 MB/s
BenchmarkMixedAddCat2MBXX              2         526999378 ns/op 3.98 MB/s
BenchmarkMixedAddCat4MBXX              2         543184846 ns/op 7.72 MB/s
BenchmarkMixedAddCat8MBXX              2         590800431 ns/op 14.20 MB/s
BenchmarkMixedAddCat16MBX              2         688463619 ns/op 24.37 MB/s
BenchmarkMixedAddCat32MBX              2         881731910 ns/op 38.06 MB/s
BenchmarkMixedAddCat64MBX              1        1254493054 ns/op 53.49 MB/s
BenchmarkMixedAddCat128MB              1        1941335608 ns/op 69.14 MB/s
BenchmarkMixedAddCat256MB              1        4748005512 ns/op 56.54 MB/s

@whyrusleeping

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix: formatting

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Merge pull request #455 from jbenet/test/improve-accuracy-of-mock

fix: routing mock accuracy
net/conn: io, not channels

This commit changes the connections to use io.ReadWriters
instead of channels (+ async workers). This is a pretty
big change -- away from csp -- in the name of performance
(and predictable flow control).

It also uses the brand new secio, which is spipe's successor.
multiconn: close fanIn + error
added ctxgroup and router
updated msgio (bufixes)
new swarm with io and router
muxer io
stash
updated msgio + secio
make net/conn.Conn conform to net.Conn
multierr
much simpler net

- removed ctxcloser
- removed multiconn
- focused on netio
new swarm -- it's so simple
conn: tests pass :)
added loggables pkg
writing swarm2 using go-peerstream

omg wow such pass