I'm using jmeter for some load testing. I'm interested in both metrics:
- The total response time.
- The db query time.
As usual, my request does the following: hit the server, makes some computation, query the database, makes more computation, and then return a response. I'm interested on measuring the time it takes to resolve the query and visualize it on JMeter.
To do this, I'm using the Server Timing Response API, that is, I'm setting a header on my responses to annotate that time. Something like this:
Server-Timing: miss, db;dur=53, app;dur=47.2
For more information, checkout the official documentation. Now, my problem is that I do not if that is even possible with JMeter. I thought that maybe on a JSR223 listener I can do that, but I'm not sure. Any idea how to take those values and represent them in some way?