X-Timing-Info response header for requests to the REST API contains timing info for the request:
Each representing time in seconds:
total— the total time to execute the action
cpu— the time spent in the CPU (executing code)
io— the time spent waiting on data from external sources (e.g. the database).