10.3. Data Format Optimization
In each of these cases, the following performance-related measures need to be considered:
Data size—The volume or size of the data in a particular format
Server execution time—The time the server takes to serve the data
Transmission time—The time the data takes to traverse the wire from the server to the client
Parsing time—The time the client-side program takes to parse the data so that it's available for consumption
Rendering time—The time it takes to render the data in a UI component on the client side
Although accurately measuring the size and duration intervals in the preceding list is fraught with inefficiencies and challenges, these measures do provide an indication of the scale of differences among the various options. In this section, I will present a way to measure the data size and the execution, transmission, parsing, and rendering time intervals.
For starters, let's measure the execution time on the server. The execution time on the server is not only impacted ...