Running some bandwidth tests on Librecast's router API on my laptop just to check things are sane.
-
Running some bandwidth tests on Librecast's router API on my laptop just to check things are sane.
Getting ~8.1Gbps sending on one socketpair(2) connected to a Librecast Router and reading from another socketpair on another port.
For comparison, sending directly through a single AF_UNIX socketpair gives me ~9.3Gbps.
A straight memcpy yields ~23.3Gbps.
That seems reasonable, so I'm not going to bother optimizing anything just yet. There's always going to be some overhead from epoll/kevent etc
Copyright © 2024 NodeBB | Contributors