# AQXMLParser Test Redux

I added NSXMLDocument to the XML parser test code and refactored it to only run a single user-selected test each time. When doing this, NSXMLParser used the same amount of memory whether using memory-mapped data or not. Here are the new output values:

• NSXMLDocument: 3rd place, 300.75MB
• NSXMLParser: 2nd place, 139.01MB
• AQXMLParser: 1st place, 68KB

Looks like a side-effect of using AQXMLParser is that it will always use the exact same amount of memory. I’ve not tried different-sized XML feeds, but so far NSXMLParser has varied a bit on each test, while AQXMLParser has been steady at the same place.

Again, code is on github.