Open bhavinkpatel opened 3 years ago
Output for sequential requests,
123{"TotalRequests":3,"AverageTime":169649}
. This shows that all requests were successfully run in order and the verified using the request to /stats.
For the parallel/simultaneous scenario, output was,
[1] 52502
[2] 52503
[3] 52504
Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$ 213
[1] Done curl -X POST -H "application/json" -d '{"password":"bhavinpatel"}' http://127.0.0.1:8088/hash
[2]- Done curl -X POST -H "application/json" -d '{"password":"bhavinpatel1"}' http://127.0.0.1:8088/hash
[3]+ Done curl -X POST -H "application/json" -d '{"password":"bhavinpatel2"}' http://127.0.0.1:8088/hash
Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$ curl http://127.0.0.1:8088/stats
{"TotalRequests":3,"AverageTime":371821}Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$
This shows that each command was successfully ran and confirmed by running /stats.
Test Data / Request / Prerequisite
curl -X POST -H "application/json" -d '{"password":"bhavinpatel"}' http://127.0.0.1:8088/hash && curl -X POST -H "application/json" -d '{"password":"bhavinpatel1"}' http://127.0.0.1:8088/hash && curl -X POST -H "application/json" -d '{"password":"bhavinpatel2"}' http://127.0.0.1:8088/hash && curl http://127.0.0.1:8088/stats
curl -X POST -H "application/json" -d '{"password":"bhavinpatel"}' http://127.0.0.1:8088/hash & curl -X POST -H "application/json" -d '{"password":"bhavinpatel1"}' http://127.0.0.1:8088/hash & curl -X POST -H "application/json" -d '{"password":"bhavinpatel2"}' http://127.0.0.1:8088/hash &
Test Steps
Expected Result
Notes