Updated dependencies, fixed benchmarks

This commit is contained in:
Dennis Schwerdel 2016-05-31 16:02:29 +02:00
parent 47e409ef2f
commit 7586ce02f0
2 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -173,7 +173,7 @@ dependencies = [
"aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
"regex-syntax 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "regex-syntax 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"thread_local 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "thread_local 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
"utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@ -213,7 +213,7 @@ dependencies = [
[[package]] [[package]]
name = "thread_local" name = "thread_local"
version = "0.2.5" version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -155,7 +155,7 @@ fn epoll_wait(b: &mut Bencher) {
#[bench] #[bench]
fn handle_interface_data(b: &mut Bencher) { fn handle_interface_data(b: &mut Bencher) {
let mut node = GenericCloud::<Frame>::new( let mut node = GenericCloud::<Frame>::new(
Device::dummy("vpncloud0", "/dev/null").unwrap(), "127.0.0.1:0", None, Device::dummy("vpncloud0", "/dev/null").unwrap(), 0, None,
Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None
); );
let mut data = [0; 1500]; let mut data = [0; 1500];
@ -169,7 +169,7 @@ fn handle_interface_data(b: &mut Bencher) {
#[bench] #[bench]
fn handle_net_message(b: &mut Bencher) { fn handle_net_message(b: &mut Bencher) {
let mut node = GenericCloud::<Frame>::new( let mut node = GenericCloud::<Frame>::new(
Device::dummy("vpncloud0", "/dev/null").unwrap(), "127.0.0.1:0", None, Device::dummy("vpncloud0", "/dev/null").unwrap(), 0, None,
Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None
); );
let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 1)); let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 1));