Skip to content

Commit

Permalink
docs(readme): add performance section
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Feb 19, 2024
1 parent 99bc568 commit 2273287
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ Handshake initiations also include a timestamp which is used to
1. Uniquely identify the handshake, allowing acknowledgements to be matched to initiations.
2. Prevent replay attacks.
3. Break ties between simultaneous initiations by both peers.

## Performance

Centipede's current implementation is highly performant for a userspace VPN.
It uses a thread-per-core architecture, with all shared state implemented in a lock-free manner.
In addition to userspace state, Centipede creates TUN queues and sets of UDP sockets for each worker, eliminating the need for expensive cross-thread synchronization on the kernel's part.

Below are some benchmark results of Centipede against WireGuard's user- and kernel-space implementations.

![Benchmark results ](./benchmark.png)
Binary file added benchmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2273287

Please sign in to comment.