Without compression XMLNeither With GZIP default compression XMLDocument With GZIP compression for a given compression level 1-9

Copyright © 2011 Open Geospatial Consortium 30 collecting can be tricky many runs are necessary if you want to get a fair figure. Garbage collecting is called before the run, so only the “top-up” value can be a minor figure is GC was called during the run. As GC takes some CPU to run, this comment also works for CPU consumption. The memory consumption is based on the sum of all banks of heap memory, so no BSS or TXT data is taken into consideration in these memory measures.

5.3 Candidates

This chapter focused on describing the different candidates used in the benchmark and theirs various configurations.

5.3.1 Java based

5.3.1.1 Java Sax parser

This is a SAX parser providing a SAX parser and reader, doing no compression by its own.

5.3.1.1.1 Without compression XMLNeither

With no specific option, this candidate will handle SAX events provided by the platform a SAX parser, same for all candidates, then regenerate XML. This particular configuration serves as a reference for other candidates as it will generate “no compression” on any file, so it will stand for the 100 mark. Generally it’s the worst candidate regarding “compaction” but the best for “CPU” in “encode”. This configuration is in: exi-ttfmsconfigdriverssaxxml-neither.xml … param name=japex.driverClass value=org.w3c.exi.ttf.candidate.xml.jaxp.JAXPSAXDriver param name=org.w3c.exi.ttf.driver.candidateName value=XML param name=org.w3c.exi.ttf.driver.isXmlProcessor value=true driver name=XMLNeither normal=true param name=description value=XML param name=org.w3c.exi.ttf.applicationClass value=neither driver … Copyright © 2011 Open Geospatial Consortium 31

5.3.1.1.2 With GZIP default compression XMLDocument

Same as XMLNeither except a gzip compressor is connected between the output of the SAX reader and the output stream or datasink. This could be seen as a basic GZIP on the raw XML file, except SAX is used. This configuration is in: exi-ttfmsconfigdriverssaxxml-document.xml … param name=japex.driverClass value=org.w3c.exi.ttf.candidate.xml.jaxp.JAXPSAXDriver param name=org.w3c.exi.ttf.driver.candidateName value=XML param name=org.w3c.exi.ttf.driver.isXmlProcessor value=true driver name=XMLDocument normal=true param name=description value=XML using document analysis param name=org.w3c.exi.ttf.applicationClass value=document param name=org.w3c.exi.ttf.applicationClass.documentAnalysing.GZIP value=true driver …

5.3.1.1.3 With GZIP compression for a given compression level 1-9

As we modified the platform to be able to integrate a new parameter org.w3c.exi.ttf.applicationClass.documentAnalysing.level to set the level for gzip compression default is 4 between 1 and 9, you can use it on the XML candidate also. … param name=japex.driverClass value=org.w3c.exi.ttf.candidate.xml.jaxp.JAXPSAXDriver param name=org.w3c.exi.ttf.driver.candidateName value=XML param name=org.w3c.exi.ttf.driver.isXmlProcessor value=true driver name=XMLDocument normal=true param name=description value=XML using document analysis level 9 param name=org.w3c.exi.ttf.applicationClass value=document param name=org.w3c.exi.ttf.applicationClass.documentAnalysing.GZIP value=true param name=org.w3c.exi.ttf.applicationClass.documentAnalysing.level value=9 driver … Copyright © 2011 Open Geospatial Consortium 32 We didn’t want to disable gzip by just using a level 4 compression performance, so we choose to use 9 maximum for all XML Document tests.

5.3.1.1.4 With GZIP compression, level and pre-loaded dictionnary