POST perf testing with json message bodies in file

Hi all,

I am performance testing an end point for a POST request. We have a file with 4000 POST body json messages one per line.
How do I go about performance testing by firing POST requests with the JSON message bodies from the file ?

I read loading the whole file in memory would be costly, what is the preferred approach for this scenario ?

Thanks
Narayanan

  1. Post JSON body - http://gatling.io/docs/2.1.7/http/http_request.html?highlight=asjson#request-body . There is a section about ELFileBody, which is what you are looking for.

  2. How big is the file? - Gatling easily handles large files, since, it does not require a lot of resources for Perf testing.