-
Notifications
You must be signed in to change notification settings - Fork 4
Thanks for this crate #1
Copy link
Copy link
Open
Description
I have been testing and benchmarking it. Compared with rusoto presigned urls take to 150 times more to complete around 150 presigned urls.
Async vs Sync
but using multithreading aproach with tokio::spawn and join_all the diference is reduced to 10 times slower.
let mut handles = Vec::new();
for i in 1..10 {
let mut private_key = fs::read_to_string("files/pk2.pem").unwrap();
handles.push(tokio::spawn(async {
let mut options = SignedOptions {
key_pair_id: String::from("KEYPARD"),
private_key: private_key,
..Default::default()
};
get_signed_url("https://domainHere/asdasd-2020-01-30-59245video/mp4", &options)
}));
}
futures::future::join_all(handles).await;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels