23.08.2015 Views

Here - Agents Lab - University of Nottingham

Here - Agents Lab - University of Nottingham

Here - Agents Lab - University of Nottingham

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

optimized for this format feature still <strong>of</strong>fers substantially lower encoding timesthan Jade FIPA SL encoding.Time (ms)400036093500319630002717237725002057183120001692164213611466150012791077 991 1091100072478750033062 81 102 126 147 165 20100 20000 40000 60000 80000 100000Number <strong>of</strong> ObjectsJadex XML Java Serialization Jadex BinaryFig. 9. Performance results using the same data set as Fig. 8 with Jade FIPA SLencoding excludedFigure 9 provides a closer look at the three highest performing formats.While Jadex Binary clearly provides an advantage over Jadex XML by roughlya factor <strong>of</strong> two, the Java serialization is almost an order <strong>of</strong> magnitude faster.Initial analysis seems to suggest this is due to the use <strong>of</strong> the Java ReflectionAPI used by both Jadex XML and Jadex Binary, which the Java serializationmechanism can avoid due to its built-in nature. However, Java serialization hasfurther drawbacks as outlined in Section 3, meaning it is not a general solutionto the problem and has a more narrow scope <strong>of</strong> environments in which it can beuseful.5.2 CompactnessIn order to test for content compactness, the test object was passed to theencoder and the number <strong>of</strong> bytes <strong>of</strong> the encoded object was measured. Since thetest object contained a fair amount <strong>of</strong> test data, the resulting content sizes wereexpected to be large.As can be seen in Figure 10, the differences between the four formats are quitesubstantial. Jadex XML is barely half the size <strong>of</strong> the FIPA SL encoding and bothJava serialization and Jadex Binary are substantially smaller still. In fact, JadexBinary clearly provided the most compact representation <strong>of</strong> the test object,being smaller than even the Java serialization format by a factor <strong>of</strong> roughly 2.5.112

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!