Skip to content

Thanks for this crate #1

@ajosecueto

Description

@ajosecueto

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions