I want to use apachebench (ab) to test file upload performance. I have read the manual and can't find a way to achieve my goal.
My goal is try to upload a file by a HTTPs Request with POST method and multipart/form-data format.
abs -n 10 -p test.txt -T "multipart/for-data;boundary=1234567890"https://myapplication.local/upload_file I have tried this but getting error
Take a look at Benchmarking file uploads and Apache benchmark multipart/form-data
Just in case I'll copy the script here:
and the call:
Have you considered using Apache JMeter? It's way more powerful and gives you the possibility to perform the multipart file upload by just specifying the file location and ticking one box:
It also provides options to define the workload model and powerful reporting
More information: JMeter Performance Testing: Upload and Download Scenarios