📝 It can do 100 MiB/s with everything running on localhost

main
_ 2021-07-18 16:56:38 +00:00
parent 0fe8c64c4f
commit 7963765f63
1 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,14 @@ The command types are:
| 11 | P3 | P4 | Relay tells server that a client wants to connect |
| 12 | P2 | P4 (via P3) | Client wants a port forwarded from the server |
# Performance
Running all 5 processes on my desktop, measured by `pv`, I can hit 10 MiB/s
for bulk transfers with debug builds, and 100 MiB/s with release builds.
In production, P2, P3, and P4 would be running on separate systems, and the
bottleneck would likely be the Internet connection between P2 and P3 or between
P3 and P4.
# Plan
This is a TCP port forwarding system, like SSH has, but better.