| By Jimmy Zhang | Article Rating: |
|
| February 20, 2008 02:15 PM EST | Reads: |
31,638 |
Absolute Latency
/*/*/*[position() mod 2 = 0]
| file name | Jaxen (ms) | Xalan (ms) | VTD-XML (ms) |
|---|---|---|---|
| po_small.xml | 0.401 | 1.521 | 0.028 |
| po_medium.xml | 16.255 | 25.131 | 0.449 |
| po_big.xml | 159.329 | 270.188 | 4.44 |
/purchaseOrder/items/item[USPrice<100]
| file name | Jaxen (ms) | Xalan (ms) | VTD-XML (ms) |
|---|---|---|---|
| po_small.xml | 0.441 | 1.612 | 0.0338 |
| po_medium.xml | 16.954 | 28.21 | 0.431 |
| po_big.xml | 174.201 | 288.18 | 4.499 |
/*/*/*/quantity/text()
| file name | Jaxen (ms) | Xalan (ms) | VTD-XML (ms) |
|---|---|---|---|
| po_small.xml | 0.47 | 1.534 | 0.0315 |
| po_medium.xml | 17.57 | 25.278 | 0.431 |
| po_big.xml | 190 | 272.958 | 4.412 |
//item/comment
| file name | Jaxen (ms) | Xalan (ms) | VTD-XML (ms) |
|---|---|---|---|
| po_small.xml | 0.805 | 1.689 | 0.0364 |
| po_medium.xml | 27.27 | 27.687 | 0.434 |
| po_big.xml | 398.57 | 304.103 | 4.43 |
//item/comment/../quantity
| file name | Jaxen (ms) | Xalan (ms) | VTD-XML (ms) |
|---|---|---|---|
| po_small.xml | 0.816 | 1.706 | 0.0372 |
| po_medium.xml | 28.367 | 28.338 | 0.435 |
| po_big.xml | 384.05 | 306.056 | 4.431 |
Observation
The benchmark results show that, after
removing the parsing cost (by resorting to the index), VTD-XML now
consistently outperforms DOM by two orders of magnitude, regardless of
the message sizes. Interpreting the above results as the upper limit of
how fast an XML content switch makes routing decisions based on the
XPath output, VTD-XML's processing throughput, calculated by dividing
the XML message size (not including VTD) by the latency, is around 250
MB/sec, roughly doubling the maximum throughput of a gigabit Ethernet
connection. This means that switching/routing VTD+XML payloads based on
simple XPath expressions is I/O-bound.
Conclusion
This article has introduced the latest
indexing feature of VTD-XML along with the latest benchmark numbers
showcasing the efficiency level it achieves. Prior to VTD-XML, an
XML/SOA application written in DOM or SAX incurs the overhead of XML
parsing, XPath evaluation and, optionally, content update. It's not
uncommon that those overheads account for 80%-90% or more of the total
CPU cycles of running the application. VTD-XML obliterates those
overheads since there's not much overhead left to optimize. Using
VTD-XML as a parser reduces XML parsing overhead by 5x-10x. Next
VTD-XML's incremental update uniquely eliminates the roundtrip overhead
of updating XML. Moreover, this article shows VTD-XML's innovative
non-blocking, stateless XPath engine significantly outperforming Jaxen
and Xalan. With the addition of the indexing capability, XML parsing
has now become "optional."
In other words, obstacles standing on the path to successful SOA have quietly disappeared. But this is just another starting point. It probably won't be difficult to see that none of its benefits would exist if VTD-XML stuck with excessive object allocation like DOM. In the context of XML processing, pure OO modeling of an XML infoset (e.g., string and node objects) just doesn't appear the right thing to do in the first place. Like anything else, OO has its weaknesses. The problems (e.g., DOM and SAX's problems) arise when one chooses OO for the sake of choosing it, and stops questioning its sensibility. To me, knowing when not to use objects is equally, if not more, important. Derived from the weaknesses, constraints, and limitations, VTD-XML strives to be the simple, sensible answer to the problems.
And, in the context of SOA, there are more questions on OO programming worth reflecting on. Among them, is OOP's API-based public contract suitable for building loosely coupled, document-centric Web Services applications? The answers, again, are likely to be surprisingly simple.
Published February 20, 2008 Reads 31,638
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Jimmy Zhang
Jimmy Zhang is a cofounder of XimpleWare, a provider of high performance XML processing solutions. He has working experience in the fields of electronic design automation and Voice over IP for a number of Silicon Valley high-tech companies. He holds both a BS and MS from the department of EECS from U.C. Berkeley.
- The Top 150 Players in Cloud Computing
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- Industry Experts Discuss the State of Cloud Computing
- Cloud Expo New York Call for Papers Deadline December 15
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- US Federal Government is Major Cloud Computing Innovator
- Google Wave
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Adaptivity & Cloud Computing: Exclusive Q&A with CEO Tony Bishop
- 4th International Cloud Expo: Photo Album
- The Top 150 Players in Cloud Computing
- SYS-CON.TV: Cloud Computing Expo Power Panel
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- 1st Annual GovIT Expo: Letter from the Technical Chair
- Deputy CIO of the CIA to Keynote 1st Annual GovIT Expo
- Industry Experts Discuss the State of Cloud Computing
- SOA World Power Panel on SYS-CON.TV
- CIA was Headed to an Enterprise Cloud All Along: Jill Tummler Singer
- 1st Annual Government IT Conference & Expo: Themes & Topics
- Cloud Expo New York Call for Papers Deadline December 15
- Stock in Focus: Dragon Capital
- The i-Technology Right Stuff
- Who Are The All-Time Heroes of i-Technology?
- Get the Message
- Where Are RIA Technologies Headed in 2008?
- i-Technology Viewpoint: Is Web 2.0 the Global SOA?
- i-Technology Viewpoint: Thinking Outside the VC Box
- ESB Myth Busters: 10 Enterprise Service Bus Myths Debunked
- i-Technology Viewpoint: When to Leave Your First IT Job
- SOA Web Services Edge Conference Coverage on SYS-CON.TV
- Five Reasons Why Web 2.0 Matters
- SYS-CON.TV's "SOA Web Services" and "Enterprise Open Source" Programs To Air in December
- SOA World Conference & Expo SYS-CON.TV Power Panel Live From Times Square









There are a variety of applications that supp...

























