summaryrefslogtreecommitdiffstats
path: root/src/types/keys.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-05 19:55:10 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-05 19:58:12 +0200
commit8551e03ee3a27492f8423db3eda7ddfd1135bd50 (patch)
tree1b73587437388d4084c98315d792e4b55da62650 /src/types/keys.rs
parentOutput test number and parameters to debug (diff)
downloadwireguard-rs-8551e03ee3a27492f8423db3eda7ddfd1135bd50.tar.xz
wireguard-rs-8551e03ee3a27492f8423db3eda7ddfd1135bd50.zip
Added outbound benchmark
Decent performance (~1.5Gb/s on old XPS laptop from 2014), biggest bottleneck seems to be the heap allocator, swapping with jemalloc yields 2x performance.
Diffstat (limited to '')
-rw-r--r--src/types/keys.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/types/keys.rs b/src/types/keys.rs
index d2c4139..89cacf9 100644
--- a/src/types/keys.rs
+++ b/src/types/keys.rs
@@ -1,10 +1,6 @@
use clear_on_drop::clear::Clear;
use std::time::Instant;
-/* This file holds types passed between components.
- * Whenever a type cannot be held local to a single module.
- */
-
#[derive(Debug, Clone)]
pub struct Key {
pub key: [u8; 32],