Skip to content

Instantly share code, notes, and snippets.

@phishy
Created August 10, 2020 16:29
Show Gist options
  • Save phishy/bd1793e88771a42eacc5ea6c8886b60a to your computer and use it in GitHub Desktop.
Save phishy/bd1793e88771a42eacc5ea6c8886b60a to your computer and use it in GitHub Desktop.

Quiche vs SCP

I make a 2GB file:

dd if=/dev/zero of=file.txt count=2000048 bs=1024

Run the server:

cargo run --manifest-path=tools/apps/Cargo.toml --bin quiche-server -- --cert tools/apps/src/bin/cert.crt --key tools/apps/src/bin/cert.key --root $PWD --listen [::]:4433

Run the client:

cargo run --manifest-path=tools/apps/Cargo.toml --bin quiche-client -- https://my.ip.address/file.txt --no-verify --dump-responses .

Quiche results: 8MB/s - 12MB/s

scp [email protected]:~/quiche/file.txt .

SCP Results: 23 MB/s

@phishy
Copy link
Author

phishy commented Aug 10, 2020

Just tried:

npm i -g serve && serve in a directory with a 2GB file on AWS EC2

On my local I ran:

curl http://my.ip.address/file.txt > file.txt

and got about 20MB/s throughput rate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment