src/bin/download-speed.rs: h2 download speedtest for our server

I get about 30MB/s (much too slow)
This commit is contained in:
Dietmar Maurer
2019-06-29 13:43:10 +02:00
parent a2b29b68d4
commit 17243003b3
3 changed files with 103 additions and 1 deletions

View File

@ -260,7 +260,7 @@ fn speedtest(
_rpcenv: Box<dyn RpcEnvironment>,
) -> Result<BoxFut, Error> {
let buffer = vec![2u8; 8*1024*1024]; // nonsense [2,2,2,2,2...]
let buffer = vec![65u8; 1024*1024]; // nonsense [A,A,A...]
let body = Body::from(buffer);