Forked from marcustallberg/gist:d1bae55dd408f964579f1012b2b2e659
Created
November 8, 2018 07:33
-
-
Save geosmart/8836115ad2f402704e76cce0cc336400 to your computer and use it in GitHub Desktop.
Stress testing a file-upload with Apache Bench
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ab -n 10 -c 2 -p /Users/post_file.txt -T "multipart/form-data; boundary=1234567890" http://localhost/upload | |
post_file.txt (use CRLF line-endings): | |
--1234567890 | |
Content-Disposition: form-data; filename="file.png" | |
Content-Type: application/octet-stream | |
Content-Transfer-Encoding: binary | |
<base64 encoded file> | |
--1234567890-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment