diff --git a/pr/3434/docs/iroh/endpoint/index.html b/pr/3434/docs/iroh/endpoint/index.html index 2f393e366c..153201c8af 100644 --- a/pr/3434/docs/iroh/endpoint/index.html +++ b/pr/3434/docs/iroh/endpoint/index.html @@ -1,4 +1,4 @@ -iroh::endpoint - Rust

Module endpoint

Source
Expand description

The Endpoint allows establishing connections to other iroh nodes.

+iroh::endpoint - Rust

Module endpoint

Source
Expand description

The Endpoint allows establishing connections to other iroh nodes.

The Endpoint is the main API interface to manage a local iroh node. It allows connecting to and accepting connections from other nodes. See the module docs for more details on how iroh connections work.

diff --git a/pr/3434/docs/src/iroh/endpoint.rs.html b/pr/3434/docs/src/iroh/endpoint.rs.html index a451d272fb..c9be81486c 100644 --- a/pr/3434/docs/src/iroh/endpoint.rs.html +++ b/pr/3434/docs/src/iroh/endpoint.rs.html @@ -3256,24 +3256,22 @@ 3256 let conn = endpoint.connect(*id, NOOP_ALPN).await?; 3257 conn.close(0u32.into(), b"done"); 3258 } -3259 let dt0 = t0.elapsed(); +3259 let dt0 = t0.elapsed().as_secs_f64(); 3260 let t1 = Instant::now(); 3261 for id in &ids { 3262 let conn = endpoint.connect(*id, NOOP_ALPN).await?; 3263 conn.close(0u32.into(), b"done"); 3264 } -3265 let dt1 = t1.elapsed(); -3266 println!( -3267 "Round 0: {}s, {}s per connection", -3268 dt0.as_secs_f64(), -3269 dt0.as_secs_f64() / (n as f64) -3270 ); -3271 println!( -3272 "Round 1: {}s, {}s per connection", -3273 dt1.as_secs_f64(), -3274 dt1.as_secs_f64() / (n as f64) -3275 ); -3276 assert!(dt0.as_secs_f64() / dt1.as_secs_f64() < 20.0); -3277 Ok(()) -3278 } -3279}
\ No newline at end of file +3265 let dt1 = t1.elapsed().as_secs_f64(); +3266 +3267 println!("Round 0: {}s, {}s per connection", dt0, dt0 / (n as f64)); +3268 println!("Round 1: {}s, {}s per connection", dt1, dt1 / (n as f64)); +3269 assert!( +3270 dt0 / dt1 < 20.0, +3271 "First round: {}s, second round {}s", +3272 dt0, +3273 dt1 +3274 ); +3275 Ok(()) +3276 } +3277}
\ No newline at end of file