Comparing Communication Layers

In the previous sections, we saw how reducing the number of messages led to a proportional reduction in the time taken by the application to process those messages. Table 12-1 compares the performance between the different communication layers used in those sections.

Table 12-1. Comparison of Different Communication Layers

 

Executing Three Separate Methods-Time Taken

Executing Three Separate Methods-Bytes Written

Executing Three Separate Methods-Overhead Time

Executing One Combined Method-Time Taken

Executing One Combined Method-Bytes Written

Executing One Combined Method-Overhead Time

CORBA

512%

291

194%

175%

106

66%

RMI

356%

136

181%

113%

54

56%

Proprietary

293%

40

80%

100%

20

31%

Here, I detail the measurements made for the three communication layers using the tests defined in Section 12.2. The first three columns list measurements taken while executing the three updating methods together. The second three columns list the measurements taken when the single updating method updates the server object. Within each set of three columns, the first column lists the round trip time taken for executing the methods, with all times normalized to the proprietary communications layer time in the combined method case. (The network round trip overhead is a 10-millisecond ping time in these tests.) The second column lists the number of bytes written from the client to the server to execute one set of methods, and the third column lists ...

Get Java Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.