Browse files

Benchmark for HTML Emitter

  • Loading branch information...
1 parent 475f151 commit 54e75a085c9c62384510b2f38e93b4b8f812e78a @joa committed Apr 2, 2012
View
119 hector-microbenchmark/src/main/resources/books.xml
@@ -0,0 +1,119 @@
+<catalog>
+ <book id="bk101">
+ <author>Gambardella, Matthew</author>
+ <title>XML Developer's Guide</title>
+ <genre>Computer</genre>
+ <price>44.95</price>
+ <publish_date>2000-10-01</publish_date>
+ <description>An in-depth look at creating applications
+ with XML.</description>
+ </book>
+ <book id="bk102">
+ <author>Ralls, Kim</author>
+ <title>Midnight Rain</title>
+ <genre>Fantasy</genre>
+ <price>5.95</price>
+ <publish_date>2000-12-16</publish_date>
+ <description>A former architect battles corporate zombies,
+ an evil sorceress, and her own childhood to become queen
+ of the world.</description>
+ </book>
+ <book id="bk103">
+ <author>Corets, Eva</author>
+ <title>Maeve Ascendant</title>
+ <genre>Fantasy</genre>
+ <price>5.95</price>
+ <publish_date>2000-11-17</publish_date>
+ <description>After the collapse of a nanotechnology
+ society in England, the young survivors lay the
+ foundation for a new society.</description>
+ </book>
+ <book id="bk104">
+ <author>Corets, Eva</author>
+ <title>Oberon's Legacy</title>
+ <genre>Fantasy</genre>
+ <price>5.95</price>
+ <publish_date>2001-03-10</publish_date>
+ <description>In post-apocalypse England, the mysterious
+ agent known only as Oberon helps to create a new life
+ for the inhabitants of London. Sequel to Maeve
+ Ascendant.</description>
+ </book>
+ <book id="bk105">
+ <author>Corets, Eva</author>
+ <title>The Sundered Grail</title>
+ <genre>Fantasy</genre>
+ <price>5.95</price>
+ <publish_date>2001-09-10</publish_date>
+ <description>The two daughters of Maeve, half-sisters,
+ battle one another for control of England. Sequel to
+ Oberon's Legacy.</description>
+ </book>
+ <book id="bk106">
+ <author>Randall, Cynthia</author>
+ <title>Lover Birds</title>
+ <genre>Romance</genre>
+ <price>4.95</price>
+ <publish_date>2000-09-02</publish_date>
+ <description>When Carla meets Paul at an ornithology
+ conference, tempers fly as feathers get ruffled.</description>
+ </book>
+ <book id="bk107">
+ <author>Thurman, Paula</author>
+ <title>Splish Splash</title>
+ <genre>Romance</genre>
+ <price>4.95</price>
+ <publish_date>2000-11-02</publish_date>
+ <description>A deep sea diver finds true love twenty
+ thousand leagues beneath the sea.</description>
+ </book>
+ <book id="bk108">
+ <author>Knorr, Stefan</author>
+ <title>Creepy Crawlies</title>
+ <genre>Horror</genre>
+ <price>4.95</price>
+ <publish_date>2000-12-06</publish_date>
+ <description>An anthology of horror stories about roaches,
+ centipedes, scorpions and other insects.</description>
+ </book>
+ <book id="bk109">
+ <author>Kress, Peter</author>
+ <title>Paradox Lost</title>
+ <genre>Science Fiction</genre>
+ <price>6.95</price>
+ <publish_date>2000-11-02</publish_date>
+ <description>After an inadvertant trip through a Heisenberg
+ Uncertainty Device, James Salway discovers the problems
+ of being quantum.</description>
+ </book>
+ <book id="bk110">
+ <author>O'Brien, Tim</author>
+ <title>Microsoft .NET: The Programming Bible</title>
+ <genre>Computer</genre>
+ <price>36.95</price>
+ <publish_date>2000-12-09</publish_date>
+ <description>Microsoft's .NET initiative is explored in
+ detail in this deep programmer's reference.</description>
+ </book>
+ <book id="bk111">
+ <author>O'Brien, Tim</author>
+ <title>MSXML3: A Comprehensive Guide</title>
+ <genre>Computer</genre>
+ <price>36.95</price>
+ <publish_date>2000-12-01</publish_date>
+ <description>The Microsoft MSXML3 parser is covered in
+ detail, with attention to XML DOM interfaces, XSLT processing,
+ SAX and more.</description>
+ </book>
+ <book id="bk112">
+ <author>Galos, Mike</author>
+ <title>Visual Studio 7: A Comprehensive Guide</title>
+ <genre>Computer</genre>
+ <price>49.95</price>
+ <publish_date>2001-04-16</publish_date>
+ <description>Microsoft Visual Studio 7 is explored in depth,
+ looking at how Visual Basic, Visual C++, C#, and ASP+ are
+ integrated into a comprehensive development
+ environment.</description>
+ </book>
+</catalog>
View
497 hector-microbenchmark/src/main/resources/w3_frontpage.xml
@@ -0,0 +1,497 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <!-- Generated from data/head-home.php, ../../smarty/{head.tpl} -->
+ <head>
+ <title>World Wide Web Consortium (W3C)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="Help" href="/Help/" />
+ <link rel="stylesheet" href="/2008/site/css/minimum" type="text/css" media="handheld, all" />
+ <style type="text/css" media="print, screen and (min-width: 481px)">
+ /*<![CDATA[*/
+ @import url("/2008/site/css/advanced");
+ /*]]>*/
+ </style>
+ <link href="/2008/site/css/minimum" rel="stylesheet" type="text/css" media="handheld, only screen and (max-device-width: 480px)" />
+ <meta name="viewport" content="width=device-width" />
+ <link rel="stylesheet" href="/2008/site/css/print" type="text/css" media="print" />
+ <link rel="shortcut icon" href="/2008/site/images/favicon.ico" type="image/x-icon" />
+ <meta name="description" content="The World Wide Web Consortium (W3C) is an international community where Member organizations, a full-time staff, and the public work together to develop Web standards." />
+ <link rel="alternate" type="application/atom+xml" title="W3C News" href="/News/atom.xml" />
+ </head>
+ <body id="www-w3-org" class="w3c_public w3c_home">
+ <div id="w3c_container">
+ <!-- Generated from data/mast-home.php, ../../smarty/{mast.tpl} -->
+ <div id="w3c_mast"><!-- #w3c_mast / Page top header -->
+ <h1 class="logo"><a tabindex="2" accesskey="1" href="/"><img src="/2008/site/images/logo-w3c-mobile-lg" width="90" height="53" alt="W3C" /></a> <span class="alt-logo">W3C</span></h1>
+ <div id="w3c_nav">
+ <form id="region_form" action="http://www.w3.org/Consortium/contact">
+ <div><select name="region">
+ <option selected="selected" title="Get Information about W3C By Region">W3C By Region</option>
+ <option value="all">All</option>
+ <option value="au">Australia</option>
+ <option xml:lang="de" lang="de" value="de">&#xD6;sterreich
+ (Austria)</option>
+ <option lang="nl" xml:lang="nl" value="nl">Belgi&#xEB;
+ (Belgium)</option>
+ <option value="za">Botswana</option>
+ <option xml:lang="pt-br" value="br" lang="pt-br">Brasil
+ (Brazil)</option>
+ <option xml:lang="zh-hans" value="cn" lang="zh-hans">&#x4E2D;&#x56FD;
+ (China)</option>
+ <option xml:lang="fi" value="fi" lang="fi">Suomi (Finland)</option>
+ <option xml:lang="de" value="de" lang="de">Deutschland
+ (Germany)</option>
+ <option xml:lang="el" value="gr" lang="el">&#x395;&#x3BB;&#x3BB;&#x3AC;&#x3B4;&#x3B1; (Greece)</option>
+ <option xml:lang="hu" value="hu" lang="hu">Magyarorsz&#xE1;g
+ (Hungary)</option>
+ <option xml:lang="hi" value="in" lang="hi">&#x92D;&#x93E;&#x930;&#x924; (India)</option>
+ <option xml:lang="ga" lang="ga" value="gb">&#xC9;ire (Ireland)</option>
+ <option xml:lang="he" value="il" lang="he">&#x5D9;&#x5E9;&#x5E8;&#x5D0;&#x5DC; (Israel)</option>
+ <option xml:lang="it" value="it" lang="it">Italia (Italy)</option>
+ <option xml:lang="ja" value="jp" lang="ja">&#x306B;&#x307B;&#x3093; (Japan)</option>
+ <option xml:lang="ko" value="kr" lang="ko">&#xD55C;&#xAD6D; (Korea)</option>
+ <option value="za">Lesotho</option>
+ <option lang="lb" xml:lang="lb" value="nl">L&#xEB;tzebuerg
+ (Luxembourg)</option>
+ <option xml:lang="ar" value="ma" lang="ar">&#x627;&#x644;&#x645;&#x63A;&#x631;&#x628;
+ (Morocco)</option>
+ <option value="za">Namibia</option>
+ <option lang="nl" xml:lang="nl" value="nl">Nederland
+ (Netherlands)</option>
+ <option xml:lang="ru" value="ru" lang="ru">&#x420;&#x43E;&#x441;&#x441;&#x438;&#x44F; (Russia)</option>
+ <option xml:lang="fr" value="sn" lang="fr">S&#xE9;n&#xE9;gal</option>
+ <option xml:lang="es" value="es" lang="es">Espa&#xF1;a (Spain)</option>
+ <option value="za">South Africa</option>
+ <option lang="ss" xml:lang="ss" value="za">Swatini
+ (Swaziland)</option>
+ <option xml:lang="sv" value="se" lang="sv">Sverige
+ (Sweden)</option>
+ <option value="gb">United Kingdom</option>
+ </select> <input class="button" type="submit" value="Go" /></div>
+ </form>
+ <form action="http://www.w3.org/Help/search" method="get" enctype="application/x-www-form-urlencoded">
+ <!-- w3c_sec_nav is populated through js -->
+ <div class="w3c_sec_nav"><!-- --></div>
+ <ul class="main_nav"><!-- Main navigation menu -->
+ <li class="first-item"><a href="/standards/">Standards</a></li>
+ <li><a href="/participate/">Participate</a></li>
+ <li><a href="/Consortium/membership">Membership</a></li>
+ <li class="last-item"><a href="/Consortium/">About W3C</a></li>
+ <li class="search-item">
+ <div id="search-form"><input tabindex="3" class="text" name="q" value="" title="Search" /> <button id="search-submit" name="search-submit" type="submit"><img class="submit" src="/2008/site/images/search-button" alt="Search" width="21" height="17" /></button></div>
+ </li>
+ </ul>
+ </form>
+ </div>
+ </div>
+ <!-- /end #w3c_mast -->
+ <div id="w3c_main">
+ <div id="w3c_logo_shadow" class="w3c_leftCol"><img height="32" alt="" src="/2008/site/images/logo-shadow" /></div>
+ <div class="w3c_leftCol">
+ <h2 class="offscreen">Site Navigation</h2>
+ <h3 class="category"><span class="ribbon"><a href="/standards/">Standards <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
+ <ul class="theme">
+ <li class="design"><a href="/standards/webdesign/" title="HTML5, XHTML, and CSS, Scripting and Ajax, Web Applications, Graphics, Accessibility">
+ <span class="icon"><!-- --></span>Web Design and
+ Applications</a></li>
+ <li class="arch"><a href="/standards/webarch/" title="Architecture Principles, Identifiers, Protocols, Meta Formats"><span class="icon">
+ <!-- --></span>Web Architecture</a></li>
+ <li class="semantics"><a href="/standards/semanticweb/" title="Data, Ontologies, Query, Linked Data"><span class="icon">
+ <!-- --></span>Semantic Web</a></li>
+ <li class="xml"><a href="/standards/xml/" title="XML Essentials, Semantic Additions to XML, Schema, Security"><span class="icon">
+ <!-- --></span>XML Technology</a></li>
+ <li class="services"><a href="/standards/webofservices/" title="Data, Protocols, Service Description, Security"><span class="icon"><!-- --></span>Web of Services</a></li>
+ <li class="devices"><a href="/standards/webofdevices/" title="Voice Browsing, Device Independence and Content Negotation, Multimodal Access, Printing">
+ <span class="icon"><!-- --></span>Web of Devices</a></li>
+ <li class="browsers"><a href="/standards/agents/" title="Browsers and User Agents, Authoring Tools, Web Servers"><span class="icon">
+ <!-- --></span>Browsers and Authoring Tools</a></li>
+ <li class="allspecs"><a href="/TR/"><span class="icon">
+ <!-- --></span>&#x2026; or view all</a></li>
+ </ul>
+ <h3 class="category tMargin"><span class="ribbon"><a href="Consortium/mission.html#principles">Web for All <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
+ <ul class="theme">
+ <li><a title="Popular links to W3C technology information" href="Consortium/siteindex.html#technologies">W3C
+ A&#xA0;to&#xA0;Z</a></li>
+ <li><a href="/WAI/">Accessibility</a></li>
+ <li><a href="/International/">Internationalization</a></li>
+ <li><a href="/Mobile/">Mobile Web</a></li>
+ <li><a href="/2007/eGov/">eGovernment</a></li>
+ <li><a href="/2008/MW4D/">Developing Economies</a></li>
+ </ul>
+ <h3 class="category tMargin"><span class="ribbon"><a href="/community/">Community and Business Groups <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
+ <ul class="theme">
+ <li><a href="/community/groups/">Current Groups</a></li>
+ <li><a href="/community/groups/proposed/">Proposed Groups</a></li>
+ </ul>
+ <h3 class="category tMargin"><span class="ribbon"><a href="Consortium/activities">Working Groups <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
+ <ul class="theme">
+ <li><a href="/TR/tr-groups-all">Specifications by group</a></li>
+ <li><a title="Member-only group participant guidebook" href="/Guide/">Participant guidebook</a></li>
+ </ul>
+ <h3 class="category tMargin"><span class="ribbon"><a href="/Member/">Member-only Home <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
+ <ul class="theme">
+ <li><a href="http://www.w3.org/Consortium/activities">Join a
+ Group</a></li>
+ <li><a href="http://www.w3.org/Help/Account/Request/Member">Get
+ Member Account</a></li>
+ </ul>
+ </div>
+ <div class="w3c_mainCol">
+ <div id="w3c_crumbs">
+ <div id="w3c_crumbs_frame">
+ <p class="bct"><span class="skip"><a tabindex="1" accesskey="2" title="Skip to content (e.g., when browsing via audio)" href="#w3c_most-recently">Skip</a></span></p>
+ <br /></div>
+ </div>
+ <div class="line">
+ <div class="unit size2on3">
+ <div class="main-content">
+ <h2 class="offscreen">News</h2>
+ <div id="w3c_slideshow"><div id="w3c_most-recently" class="intro hierarchy vevent_list">
+
+ <div class="event w3c_topstory expand_block">
+ <div class="headline">
+ <h3 class="h4 tPadding0 bPadding0 summary">
+ <span class="expand_section">W3C Expands Presence at WWW 2012 to Increase Community Engagement</span>
+ </h3>
+ <p class="date"><span class="dtstart published" title="2012-03-27T09:17:18-05:00">27 March 2012</span>
+ | <a title="Archive: W3C Expands Presence at WWW 2012 to Increase Community Engagement" href="/News/2012#entry-9401">Archive</a>
+ </p>
+ </div>
+ <div class="description expand_description">
+ <p>
+ <a href="http://www.www2012.org/" class="imageLink"><img src="http://www.w3.org/2012/04/www2012.png" width="115" height="60" alt="WWW 2012" /></a>
+ W3C invites developers, business, government, media, analysts, and all who attend the <a href="http://www2012.org/">2012 World Wide Web Conference</a> to participate in the <a href="http://www.w3.org/2012/04/w3c-track.html">expanding W3C Track</a> and learn how the Open Web Platform is transforming industry and society. W3C's activities at the conference this year, from 16-20 April at the Lyon Convention Center in France, include:</p>
+ <ul class="show_items">
+ <li>Tim Berners-Lee Keynote (and participation in Workshops and a Panel)</li>
+ <li>W3C Tutorial Track (NEW!), four half-day presentations on CSS3 in Style, Accessibility in Tomorrow's Web, Developing Mobile Web Applications, Open Data in Practice</li>
+ <li>W3C Track: Camp-style half-day interactive discussions with W3C experts and Web users on Web Security and Privacy, and HTML5 Games</li>
+ </ul>
+ <p>A number of <a href="/People/">W3C staff</a> will be on hand to discuss
+ HTML5, CSS, and other technologies of the Open Web Platform. Attendees can also
+ learn about <a href="http://www.w3devcampus.com">W3C online training</a> and
+ participation in <a href="/community/">W3C Community Groups</a>, and meet representatives of the <a href="http://www.w3.org/2011/09/france-pr.html">new W3C France Office</a>. The
+ France Office and Inria will have a booth (number 54) in the exhibition area at
+ the Lyon Convention Center. Read the <a href="http://www.w3.org/2012/03/www2012.html.en">full press release</a> for details and see you in Lyon.</p>
+ </div>
+ </div>
+
+
+ <div class="event closed expand_block">
+ <div class="headline">
+ <h3 class="h4 tPadding0 bPadding0 summary"><span class="expand_section">Ten HTML5 Drafts Updated</span></h3>
+ <p class="date"><span class="published dtstart" title="2012-03-29T15:21:27-05:00">29 March 2012</span>
+ | <a title="Archived: Ten HTML5 Drafts Updated" href="/News/2012#entry-9404">Archive</a>
+ </p>
+ </div>
+ <div class="description expand_description">
+ <p>The <a href="/html/wg/">HTML Working Group</a> has published ten updated
+ working drafts:</p>
+ <ul class="show_items">
+ <li><a href="/TR/2012/WD-html5-20120329/">the HTML5 specification</a></li>
+ <li><a href="/TR/2012/WD-html5-author-20120329/">HTML5: Edition for Web Authors</a></li>
+ <li><a href="/TR/2012/WD-html5-diff-20120329/">HTML5 differences from HTML4</a></li>
+ <li><a href="/TR/2012/WD-rdfa-in-html-20120329/">HTML+RDFa 1.1</a></li>
+ <li><a href="/TR/2012/WD-microdata-20120329/">HTML Microdata</a></li>
+ <li><a href="/TR/2012/WD-2dcontext-20120329/">HTML Canvas 2D Context</a></li>
+ <li><a href="/TR/2012/WD-html-alt-techniques-20120329/">HTML5: Techniques for providing useful text alternatives</a></li>
+ <li><a href="/TR/2012/WD-html-polyglot-20120329/">Polyglot Markup: HTML-Compatible XHTML Documents</a></li>
+ <li><a href="/TR/2012/WD-html-aapi-20120329/">HTML to Platform Accessibility APIs Implementation Guide</a></li>
+ <li><a href="/TR/2012/WD-html-markup-20120329/">HTML: The Markup Language</a></li>
+ </ul>
+ <p>There is a <a href="http://www.w3.org/TR/2012/WD-html5-diff-20120329/#changes-2011-05-25">comprehensive list of the changes made to the HTML5 spec</a> since publication of the previous HTML Working Draft (May 2011). Most of the changes are fine-tuning refinements rather than major new additions, in keeping with the progress of the specification toward greater stability, and transitioning toward an upcoming Candidate Recommendation draft.</p>
+ <p>Learn more about <a href="http://www.w3.org/standards/webdesign/htmlcss">HTML</a>.</p>
+ </div>
+ </div>
+
+ <div class="event closed expand_block">
+ <div class="headline">
+ <h3 class="h4 tPadding0 bPadding0 summary"><span class="expand_section">SMIL Timesheets 1.0 Note Published</span></h3>
+ <p class="date"><span class="published dtstart" title="2012-03-29T15:08:29-05:00">29 March 2012</span>
+ | <a title="Archived: SMIL Timesheets 1.0 Note Published" href="/News/2012#entry-9403">Archive</a>
+ </p>
+ </div>
+ <div class="description expand_description">
+ <p>The <a href="http://www.w3.org/AudioVideo/Group/">SYMM Working Group</a> has published a Group Note of <a href="http://www.w3.org/TR/2012/NOTE-timesheets-20120328/">SMIL Timesheets 1.0</a>. This document defines an XML timing language that makes SMIL 3.0 element and attribute timing control available to a wide range of other XML languages. This language allows SMIL timing to be integrated into a wide variety of a-temporal languages, even when several such languages are combined in a compound document. Because of its similarity with external style and positioning descriptions in the Cascading Style Sheet (CSS) language, this functionality has been termed SMIL Timesheets. Learn more about the <a href="http://www.w3.org/AudioVideo/">W3C Synchronized Multimedia Activity</a>.</p>
+ </div>
+ </div>
+
+ <div class="event closed expand_block">
+ <div class="headline">
+ <h3 class="h4 tPadding0 bPadding0 summary"><span class="expand_section">Website Accessibility Conformance Evaluation Methodology (WCAG-EM) Draft Published</span></h3>
+ <p class="date"><span class="published dtstart" title="2012-03-27T09:15:59-05:00">27 March 2012</span>
+ | <a title="Archived: Website Accessibility Conformance Evaluation Methodology (WCAG-EM) Draft Published" href="/News/2012#entry-9400">Archive</a>
+ </p>
+ </div>
+ <div class="description expand_description">
+ <p>The First Public Working Draft of <a href="http://www.w3.org/TR/WCAG-EM/">Website Accessibility Conformance Evaluation Methodology (WCAG-EM)</a> was published today by the Web Content Accessibility Guidelines Working Group (<a href="http://www.w3.org/WAI/GL/">WCAG WG</a>) and Evaluation and Repair Tools Working Group (<a href="http://www.w3.org/WAI/ER/">ERT WG</a>), through the joint <acronym>WCAG</acronym> 2.0 Evaluation Methodology Task Force (<a href="http://www.w3.org/WAI/ER/2011/eval/eval-tf"><acronym>Eval TF</acronym></a>). WCAG-EM provides an approach for evaluating how websites - including web applications and websites for mobile devices - conform to <a href="http://www.w3.org/WAI/intro/wcag"><acronym title="Web Content Accessibility Guidelines">WCAG</acronym> 2.0</a>. Learn more about <a href="http://lists.w3.org/Archives/Public/w3c-wai-ig/2012JanMar/0296.html">WCAG-EM Website Accessibility Conformance Evaluation Methodology Draft Published</a> and the <a href="http://www.w3.org/WAI/">Web Accessibility Initiative (WAI)</a>.</p>
+ </div>
+ </div>
+
+ <div class="event closed expand_block">
+ <div class="headline">
+ <h3 class="h4 tPadding0 bPadding0 summary"><span class="expand_section">Three drafts published by the XML Query Working Group</span></h3>
+ <p class="date"><span class="published dtstart" title="2012-03-27T08:56:15-05:00">27 March 2012</span>
+ | <a title="Archived: Three drafts published by the XML Query Working Group" href="/News/2012#entry-9399">Archive</a>
+ </p>
+ </div>
+ <div class="description expand_description">
+ <p>The <a href="http://www.w3.org/XML/Query/">XML Query Working Group</a> has published three Working Drafts today.</p>
+ <ul class="show_items"><li><a href="http://www.w3.org/TR/2012/WD-xquery-update-30-requirements-use-cases-20120327/">XQuery Update Facility 3.0 Requirements and Use Cases</a>, a First Public Working Draft that specifies goals, requirements and use cases for the XQuery Update Facility 3.0.</li>
+ <li><a href="http://www.w3.org/TR/2012/WD-xquery-30-use-cases-20120327/">XQuery 3.0 Use Cases</a> which specifies usage scenarios for XML Query (XQuery) 3.0.</li>
+ <li><a href="http://www.w3.org/TR/2012/WD-xpath-full-text-30-requirements-use-cases-20120327/">XQuery and XPath Full Text 3.0 Requirements and Use Cases</a>, this First Public Working Draft, jointly developed by the W3C XML Query Working Group and the W3C XSL Working Group, specifies requirements and use cases for Full-Text Search for use in XQuery 3.0 and XPath 3.0.</li></ul>
+ <p>Learn more about the <a href="http://www.w3.org/XML/">Extensible Markup Language (XML) Activity</a>.</p>
+ </div>
+ </div>
+
+ </div></div>
+ <p class="noprint"><span class="more-news"><a href="/News/archive" title="More News">More news&#x2026;</a> <a title="RSS feed for W3C home page news" href="/News/news.rss" class="feedlink"><img width="30" height="30" alt="RSS" src="/2008/site/images/icons/rss30" /></a> <a title="Atom feed for W3C home page news" href="/News/atom.xml" class="feedlink"><img width="30" height="30" alt="Atom" src="/2008/site/images/icons/atom30" /></a></span></p>
+ <div class="w3c_events_talks">
+ <div class="line">
+ <div class="unit size1on2">
+ <div id="w3c_home_talks" class="w3c_upcoming_talks"><h2 class="category"><a title="More Talks&#x2026;" href="/Talks/">
+ Talks and Appearances
+ <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" /></a></h2><ul class="vevent_list"><li class="vevent"><p class="date single"><span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-16</span></span> <span class="paren">(</span><span class="dd-mmm">16 APR</span><span class="paren">)</span></p><div class="info-wrap"><p class="summary">Accessibility in Tomorrow's Web</p><p class="eventtitle"><a href="http://www.w3.org/2012/04/tuto-track.html" class="uri">W3C Tutorial Track, 21st International World Wide Web Conference (WWW2012)</a></p><p class="location">Lyon,
+ France</p></div></li><li class="vevent"><p class="date single"><span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-17</span></span> <span class="paren">(</span><span class="dd-mmm">17 APR</span><span class="paren">)</span></p><div class="info-wrap"><p class="summary">Open Data in Practice</p><p class="eventtitle"><a href="http://www.w3.org/2012/04/tuto-track.html" class="uri">W3C Tutorial Track, 21st International World Wide Web Conference (WWW2012)</a></p><p class="location">Lyon,
+ France</p></div></li><li class="vevent"><p class="date single"><span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-17</span></span> <span class="paren">(</span><span class="dd-mmm">17 APR</span><span class="paren">)</span></p><div class="info-wrap"><p class="summary">Developing Mobile Web Applications</p><p class="eventtitle"><a href="http://www.w3.org/2012/04/tuto-track.html" class="uri">W3C Tutorial Track, 21st International World Wide Web Conference (WWW2012)</a></p><p class="location">Lyon,
+ France</p></div></li><li class="vevent"><p class="date single"><span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-19</span></span> <span class="paren">(</span><span class="dd-mmm">19 APR</span><span class="paren">)</span></p><div class="info-wrap"><p class="summary">WAI-ACT: Web Accessibility Now</p><p class="source"> by Shadi Abou-Zahra</p><p class="eventtitle"><a href="http://www.www2012.org/" class="uri">World Wide Web Conference 2012</a></p><p class="location">Lyon,
+ France</p></div></li><li class="vevent"><p class="date single"><span class="dtstart"><span class="year">2012</span><span class="mm-dd">-05-30</span></span> <span class="paren">(</span><span class="dd-mmm">30 MAY</span><span class="paren">)</span></p><div class="info-wrap"><p class="summary">Roadmaps for the open mobile web</p><p class="source"> panel features Jiri Kupiainen</p><p class="eventtitle"><a href="http://www.openmobilesummit.com/" class="uri">Open Mobile Summit</a></p><p class="location">London,
+ United Kingdom</p></div></li></ul></div>
+ </div>
+ <div class="unit size1on2 lastUnit">
+ <div id="w3c_home_upcoming_events" class="w3c_upcoming_events"><h2 class="category"><a title="More Events&#x2026;" href="/participate/eventscal.html">Events <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" /></a></h2>
+ <ul class="vevent_list">
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-03-26</span></span>
+ <span class="paren">(</span><span class="dd-mmm">26 MAR</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-03-28</span></span>
+ <span class="paren">(</span><span class="dd-mmm">28 MAR</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://www.gala-global.org/conference/" class="uri">GALA 2012</a>
+ </p>
+ <p class="location">Monaco</p> </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-16</span></span>
+ <span class="paren">(</span><span class="dd-mmm">16 APR</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-04-20</span></span>
+ <span class="paren">(</span><span class="dd-mmm">20 APR</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://www2012.org/" class="uri">WWW 2012</a>
+ </p>
+ <p class="location">Lyon, France</p> </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-04-22</span></span>
+ <span class="paren">(</span><span class="dd-mmm">22 APR</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-04-24</span></span>
+ <span class="paren">(</span><span class="dd-mmm">24 APR</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://www.internetsociety.org/globalinet" class="uri">Global INET</a>
+ </p>
+ <p class="location">Geneva, Switzerland</p> </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-05-01</span></span>
+ <span class="paren">(</span><span class="dd-mmm"> 1 MAY</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-05-04</span></span>
+ <span class="paren">(</span><span class="dd-mmm"> 4 MAY</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://www.w3.org/2008/webapps/wiki/May2012F2FMeeting" class="uri">Web Applications WG, Web Application Security WG, and HTML WG meetings</a>
+ </p>
+ <p class="location">Mountain View, California</p> <p class="host">Microsoft</p>
+ </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-05-02</span></span>
+ <span class="paren">(</span><span class="dd-mmm"> 2 MAY</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-05-05</span></span>
+ <span class="paren">(</span><span class="dd-mmm"> 5 MAY</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://libregraphicsmeeting.org/2012/" class="uri">Libre Graphics meeting</a>
+ </p>
+ <p class="location">Vienna, Austria</p> </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-05-13</span></span>
+ <span class="paren">(</span><span class="dd-mmm">13 MAY</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-05-15</span></span>
+ <span class="paren">(</span><span class="dd-mmm">15 MAY</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://www.w3.org/participate/meetings" class="uri">AC Sophia-Antipolis 2012</a>
+ </p>
+ <p class="location">Sophia-Antipolis, France</p> </div>
+ </li>
+ <li class="vevent">
+ <div class="date">
+ <span class="dtstart"><span class="year">2012</span><span class="mm-dd">-05-25</span></span>
+ <span class="paren">(</span><span class="dd-mmm">25 MAY</span><span class="paren">)</span>
+ <span class="date-separator"> &#x2013; </span>
+ <span class="dtend"><span class="year">2012</span><span class="mm-dd">-05-26</span></span>
+ <span class="paren">(</span><span class="dd-mmm">26 MAY</span><span class="paren">)</span>
+ </div> <div class="info-wrap">
+ <p class="summary">
+ <a href="http://sudweb.fr/" class="uri">Sud Web 2012</a>
+ </p>
+ <p class="location">Toulouse, France</p> </div>
+ </li>
+ </ul></div>
+ </div>
+ </div>
+ </div>
+ <!-- end events talks --></div>
+ <!-- end main content --></div>
+ <div class="unit size1on3 lastUnit">
+ <p class="about">The World Wide Web Consortium (W3C) is an
+ international community that develops open <a href="/TR/">standards</a> to ensure the long-term growth of the Web.
+ Read about the <a href="Consortium/mission.html">W3C
+ mission</a>.</p>
+ <div id="w3c_home_new_jobs">
+ <h2 class="category"><a href="/Consortium/Recruitment/">Jobs
+ <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></h2>
+ <p><a href="/Consortium/Recruitment/#WebTech">Web Technologies
+ Specialist</a></p>
+ <p><a href="/Consortium/Recruitment/#WAIspecialist">Web
+ Accessibility Specialist</a></p>
+ <p><a href="/Consortium/Recruitment/#WAIengineer">Web Accessibility
+ Engineer</a></p>
+ </div>
+ <div id="w3c_home_recent_blogs"><h2 class="category">
+ <a title="More Blog Entries&#x2026;" href="/QA/">W3C Blog <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" />
+ </a>
+ </h2><ul class="hentry_list">
+ <li class="hentry">
+ <p class="entry-title">
+ <a href="http://www.w3.org/QA/2012/03/openweb-weekly-30.html" class="uri url" rel="bookmark">Open Web Platform Weekly Summary - 2012-03-19 - 2012-03-25</a>
+ </p>
+ <p class="date">
+ <abbr title="2012-03-27" class="published">27 March 2012</abbr> by <span class="author vcard">
+ <a class="fn url" href="http://my.opera.com/karlcow/blog/">Karl Dubost</a>
+ </span>
+ </p>
+ </li>
+ <li class="hentry">
+ <p class="entry-title">
+ <a href="http://www.w3.org/QA/2012/03/openweb-weekly-29.html" class="uri url" rel="bookmark">Open Web Platform Weekly Summary - 2012-03-12 - 2012-03-18</a>
+ </p>
+ <p class="date">
+ <abbr title="2012-03-26" class="published">26 March 2012</abbr> by <span class="author vcard">
+ <a class="fn url" href="http://my.opera.com/karlcow/blog/">Karl Dubost</a>
+ </span>
+ </p>
+ </li>
+ <li class="hentry">
+ <p class="entry-title">
+ <a href="http://www.w3.org/QA/2012/03/w3c_day_in_spain.html" class="uri url" rel="bookmark">W3C Day in Spain: HTML5 and Government Linked Data</a>
+ </p>
+ <p class="date">
+ <abbr title="2012-03-23" class="published">23 March 2012</abbr> by <span class="author vcard">
+ <a class="fn url" href="http://www.w3c.es/Personal/Martin">Martin Alvarez-Espinar</a>
+ </span>
+ </p>
+ </li>
+ </ul></div>
+ <!--
+ <div id="w3c_home_video">
+ <h2 class="category">
+ <a href="/participate/podcastsvideo">Featured Video
+ <img src="/2008/site/images/header-link.gif" alt="Header link" width
+ ="13" height="13" class="header-link"/>
+ </a>
+ </h2>
+ <p>Here</p>
+ </div>
+ -->
+ <div id="w3c_home_validators_software">
+ <h2 class="category"><a href="Status.html">Validators, Unicorn, and
+ Other Software <img src="/2008/site/images/header-link.gif" alt="Header link" width="13" height="13" class="header-link" /></a></h2>
+ <p><a title="Become a validator sponsor" class="imageLink no-border" href="QA/Tools/Donate"><img width="80" height="15" class="icon" alt="I Love Validator" src="/2009/03/I_heart_validator" /></a></p>
+ <ul>
+ <li><a href="http://validator.w3.org/unicorn/">Unicorn
+ validator</a></li>
+ <li><a title="HTML and XHTML Validator" href="http://validator.w3.org/">HTML and markup validator</a></li>
+ <li><a title="CSS Validator" href="http://jigsaw.w3.org/css-validator/">CSS validator</a></li>
+ <li><a title="mobileOK Checker" href="http://validator.w3.org/mobile/">mobileOK checker</a></li>
+ <li><a href="http://www.w3.org/2009/cheatsheet/">W3C
+ cheatsheet</a></li>
+ <li><a href="Status.html">More Open Source Software</a></li>
+ </ul>
+ </div>
+ <div class="hpmt" id="w3c_home_member_testimonials">
+ <h2 class="category"><a title="Read all Member testimonials" href="/Consortium/Member/Testimonial/">W3C Member Testimonial <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" /></a></h2>
+ <div id="w3c_home_member_testimonials_choice"><p class="tPadding0">
+ <a rel="nofollow" href="http://www.t-online.net" class="no-border">
+ <img class="media" width="117" height="22" alt="Deutsche Telekom AG logo" src="/Consortium/Member/Testimonial/Logo/20" />
+ </a>
+ </p><h3>
+ <a rel="nofollow" href="http://www.t-online.net">Deutsche Telekom AG</a>
+ </h3><p>With 13+ million registered customers and an extensive product portfolio, Deutsche Telekom is a major player in the European Internet market, and is also an active participant in W3C activities. Deutsche Telekom's Internet Media Technology - using open standards - allows for flexibility and speed in adapting new technologies.</p></div>
+ </div>
+ </div>
+ </div>
+ <!-- end main col --></div>
+ </div>
+ </div>
+ <!-- Generated from data/footer.php, ../../smarty/{footer-block.tpl} -->
+ <div id="w3c_footer">
+ <div id="w3c_footer-inner">
+ <h2 class="offscreen">Footer Navigation</h2>
+ <div class="w3c_footer-nav">
+ <h3>Navigation</h3>
+ <ul class="footer_top_nav">
+ <li><a href="/">Home</a></li>
+ <li><a href="/standards/">Standards</a></li>
+ <li><a href="/participate/">Participate</a></li>
+ <li><a href="/Consortium/membership">Membership</a></li>
+ <li class="last-item"><a href="/Consortium/">About W3C</a></li>
+ </ul>
+ </div>
+ <div class="w3c_footer-nav">
+ <h3>Contact W3C</h3>
+ <ul class="footer_bottom_nav">
+ <li><a href="/Consortium/contact">Contact</a></li>
+ <li><a accesskey="0" href="/Help/">Help and FAQ</a></li>
+ <li><a href="/Consortium/sponsor/">Sponsor / Donate</a></li>
+ <li><a href="/Consortium/siteindex">Site Map</a></li>
+ <li>
+ <address id="w3c_signature"><a href="mailto:site-comments@w3.org">Feedback</a> (<a href="http://lists.w3.org/Archives/Public/site-comments/">archive</a>)</address>
+ </li>
+ </ul>
+ </div>
+ <div class="w3c_footer-nav">
+ <h3>W3C Updates</h3>
+ <ul class="footer_follow_nav">
+ <li><a href="http://twitter.com/W3C" title="Follow W3C on Twitter"><img src="/2008/site/images/twitter-bird" alt="Twitter" class="social-icon" width="78" height="83" /></a>
+ <a href="http://identi.ca/w3c" title="See W3C on Identica"><img src="/2008/site/images/identica-logo" alt="Identica" class="social-icon" width="91" height="83" /></a></li>
+ </ul>
+ </div>
+ <!-- #footer address / page signature -->
+ <p class="copyright">Copyright &#xA9; 2012 W3C <sup>&#xAE;</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.eu/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
+ <a href="http://www.keio.ac.jp/">Keio</a>) <a href="/Consortium/Legal/ipr-notice">Usage policies apply</a>.</p>
+ </div>
+ </div>
+ <!-- /end #footer -->
+ <!-- Generated from data/scripts.php, ../../smarty/{scripts.tpl} -->
+ <div id="w3c_scripts"><script type="text/javascript" src="/2008/site/js/main">
+ //<![CDATA[
+<!-- -->
+ //]]>
+ </script></div>
+ </body>
+</html>
View
1 hector-microbenchmark/src/main/resources/yql_1.xml
@@ -0,0 +1 @@
+<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="10" yahoo:created="2012-04-02T14:25:00Z" yahoo:lang="en-US"><diagnostics><publiclyCallable>true</publiclyCallable><url execution-start-time="1" execution-stop-time="135" execution-time="134"><![CDATA[http://where.yahooapis.com/v1/places.q(london);start=0;count=10]]></url><user-time>136</user-time><service-time>134</service-time><build-version>26247</build-version></diagnostics><results><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/44418"><woeid>44418</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="GB" type="Country">United Kingdom</country><admin1 code="GB-ENG" type="Country">England</admin1><admin2 code="GB-LND" type="County">Greater London</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal/><centroid><latitude>51.506321</latitude><longitude>-0.127140</longitude></centroid><boundingBox><southWest><latitude>51.261318</latitude><longitude>-0.563000</longitude></southWest><northEast><latitude>51.686031</latitude><longitude>0.280360</longitude></northEast></boundingBox><areaRank>7</areaRank><popRank>13</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/4063"><woeid>4063</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="CA" type="Country">Canada</country><admin1 code="CA-ON" type="Province">Ontario</admin1><admin2 code="" type="County">Middlesex</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal/><centroid><latitude>42.986889</latitude><longitude>-81.246208</longitude></centroid><boundingBox><southWest><latitude>42.824558</latitude><longitude>-81.390648</longitude></southWest><northEast><latitude>43.073051</latitude><longitude>-81.107582</longitude></northEast></boundingBox><areaRank>6</areaRank><popRank>11</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441293"><woeid>2441293</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-KY" type="State">Kentucky</admin1><admin2 code="" type="County">Laurel</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal/><centroid><latitude>37.127171</latitude><longitude>-84.083771</longitude></centroid><boundingBox><southWest><latitude>37.102821</latitude><longitude>-84.126663</longitude></southWest><northEast><latitude>37.152210</latitude><longitude>-84.038658</longitude></northEast></boundingBox><areaRank>3</areaRank><popRank>8</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441291"><woeid>2441291</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-TX" type="State">Texas</admin1><admin2 code="" type="County">Kimble</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">76854</postal><centroid><latitude>30.685770</latitude><longitude>-99.564850</longitude></centroid><boundingBox><southWest><latitude>30.677750</latitude><longitude>-99.574188</longitude></southWest><northEast><latitude>30.693800</latitude><longitude>-99.555527</longitude></northEast></boundingBox><areaRank>1</areaRank><popRank>8</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441279"><woeid>2441279</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-CA" type="State">California</admin1><admin2 code="" type="County">Tulare</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">93618</postal><centroid><latitude>36.475281</latitude><longitude>-119.438530</longitude></centroid><boundingBox><southWest><latitude>36.467670</latitude><longitude>-119.445732</longitude></southWest><northEast><latitude>36.482731</latitude><longitude>-119.431328</longitude></northEast></boundingBox><areaRank>1</areaRank><popRank>1</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441292"><woeid>2441292</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-OH" type="State">Ohio</admin1><admin2 code="" type="County">Madison</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">43140</postal><centroid><latitude>39.885960</latitude><longitude>-83.448128</longitude></centroid><boundingBox><southWest><latitude>39.859211</latitude><longitude>-83.478882</longitude></southWest><northEast><latitude>39.921780</latitude><longitude>-83.393143</longitude></northEast></boundingBox><areaRank>3</areaRank><popRank>8</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441289"><woeid>2441289</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-WV" type="State">West Virginia</admin1><admin2 code="" type="County">Kanawha</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">25126</postal><centroid><latitude>38.186329</latitude><longitude>-81.346451</longitude></centroid><boundingBox><southWest><latitude>38.177238</latitude><longitude>-81.358017</longitude></southWest><northEast><latitude>38.195419</latitude><longitude>-81.334877</longitude></northEast></boundingBox><areaRank>2</areaRank><popRank>1</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441278"><woeid>2441278</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-AR" type="State">Arkansas</admin1><admin2 code="" type="County">Pope</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">72847</postal><centroid><latitude>35.330799</latitude><longitude>-93.253899</longitude></centroid><boundingBox><southWest><latitude>35.319340</latitude><longitude>-93.265541</longitude></southWest><northEast><latitude>35.338020</latitude><longitude>-93.187363</longitude></northEast></boundingBox><areaRank>2</areaRank><popRank>1</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441286"><woeid>2441286</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-OR" type="State">Oregon</admin1><admin2 code="" type="County">Lane</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">97424</postal><centroid><latitude>43.635551</latitude><longitude>-123.091049</longitude></centroid><boundingBox><southWest><latitude>43.630501</latitude><longitude>-123.097328</longitude></southWest><northEast><latitude>43.639599</latitude><longitude>-123.084770</longitude></northEast></boundingBox><areaRank>0</areaRank><popRank>1</popRank></place><place xmlns="http://where.yahooapis.com/v1/schema.rng" xml:lang="en-US" yahoo:uri="http://where.yahooapis.com/v1/place/2441281"><woeid>2441281</woeid><placeTypeName code="7">Town</placeTypeName><name>London</name><country code="US" type="Country">United States</country><admin1 code="US-MI" type="State">Michigan</admin1><admin2 code="" type="County">Monroe</admin2><admin3/><locality1 type="Town">London</locality1><locality2/><postal type="Zip Code">48159</postal><centroid><latitude>42.020210</latitude><longitude>-83.607811</longitude></centroid><boundingBox><southWest><latitude>42.011120</latitude><longitude>-83.620049</longitude></southWest><northEast><latitude>42.029301</latitude><longitude>-83.595573</longitude></northEast></boundingBox><areaRank>2</areaRank><popRank>1</popRank></place></results></query>
View
10 hector-microbenchmark/src/main/scala/hector/microbenchmark/AllBenchmarks.scala
@@ -3,26 +3,34 @@ package hector.microbenchmark
import hector.microbenchmark.util.classesOf
import com.google.caliper.{SimpleBenchmark, Runner}
+import java.lang.reflect.Modifier
/**
*/
object AllBenchmarks {
def main(args: Array[String]) {
val benchmarks =
for {
- klass <- classesOf("hector.microbenchmark") if klass.getName.endsWith("Benchmark")
+ klass <- classesOf("hector.microbenchmark") if klass.getName.endsWith("Benchmark") && !Modifier.isAbstract(klass.getModifiers)
} yield {
klass.asInstanceOf[Class[SimpleBenchmark]]
}
+ val total = benchmarks.length
+ var current = 0
+
println("Benchmarks:")
benchmarks foreach { klass => println(" "+klass.getName) }
for {
benchmark <- benchmarks
} {
println("Running Benchmark "+benchmark.getName+":")
+
Runner.main(benchmark, args)
+ current += 1
+
+ println("Complet ("+current+"/"+total+")")
}
}
}
View
26 hector-microbenchmark/src/main/scala/hector/microbenchmark/EscapeJavaStringBenchmark.scala
@@ -1,22 +1,22 @@
package hector.microbenchmark
-import com.google.caliper.{Runner, SimpleBenchmark}
+import hector.microbenchmark.util.HectorBenchmark
+/**
+ */
+final class EscapeJavaStringBenchmark extends HectorBenchmark {
+ private[this] var chars: String = _
-object EscapeJavaStringBenchmark {
- def main(args: Array[String]) {
- Runner.main(classOf[EscapeJavaStringBenchmark], args)
+ override protected def setUp() {
+ chars =
+ (for {
+ i <- 0x00000 until 0x10000
+ } yield i.asInstanceOf[Char]) mkString ""
}
-}
-/**
- */
-final class EscapeJavaStringBenchmark extends SimpleBenchmark {
- def timeEscapeEmptyJavaString(reps: Int) {
- var i = 0
- while(i < reps) {
- hector.util.escapeJavaScriptString("")
- i += 1
+ def timeEscapeJavaString(reps: Int) = {
+ benchmark(reps) {
+ hector.util.escapeJavaScriptString(chars)
}
}
}
View
86 hector-microbenchmark/src/main/scala/hector/microbenchmark/HtmlEmitterBenchmark.scala
@@ -0,0 +1,86 @@
+package hector.microbenchmark
+
+import com.google.caliper.Param
+import com.google.common.io.Resources
+
+import hector.html.emitter.HtmlEmitter
+import hector.html._
+import hector.microbenchmark.util.HectorBenchmark
+
+import scala.xml._
+
+/**
+ */
+final class HtmlEmitterBenchmark extends HectorBenchmark {
+ @Param(Array("0", "1", "2"))
+ private var index: Int = _
+
+ private var data: Node = _
+
+ override protected def setUp() {
+ data = Data(index)
+ }
+
+ def timeHtmlEmitterWithTrimAndStripComments(reps: Int) =
+ benchmark(reps) {
+ HtmlEmitter.toString(data, DocTypes.`HTML 5`, stripComments = true, trim = true, humanReadable = false, omitDocType = false)
+ }
+
+ def timeHtmlEmitterWithTrim(reps: Int) =
+ benchmark(reps) {
+ HtmlEmitter.toString(data, DocTypes.`HTML 5`, stripComments = false, trim = true, humanReadable = false, omitDocType = false)
+ }
+
+ def timeHtmlEmitterWithStripComments(reps: Int) =
+ benchmark(reps) {
+ HtmlEmitter.toString(data, DocTypes.`HTML 5`, stripComments = true, trim = false, humanReadable = false, omitDocType = false)
+ }
+
+ def timeHtmlEmitter(reps: Int) =
+ benchmark(reps) {
+ HtmlEmitter.toString(data, DocTypes.`HTML 5`, stripComments = false, trim = false, humanReadable = false, omitDocType = false)
+ }
+
+ def timeToString(reps: Int) =
+ benchmark(reps) {
+ data.toString()
+ }
+
+ def timeUtilityWithTrimAndStripComments(reps: Int) =
+ benchmark(reps) {
+ Utility.toXML(Utility.trim(data), stripComments = true, preserveWhitespace = false).toString()
+ }
+
+ def timeUtilityWithTrim(reps: Int) =
+ benchmark(reps) {
+ Utility.toXML(Utility.trim(data), preserveWhitespace = false).toString()
+ }
+
+ def timeUtilityWithStripComments(reps: Int) =
+ benchmark(reps) {
+ Utility.toXML(data, stripComments = true).toString()
+ }
+
+ def timeUtility(reps: Int) =
+ benchmark(reps) {
+ Utility.toXML(data).toString()
+ }
+}
+
+object Data {
+ def apply(index: Int) =
+ index match {
+ case 0 => Books
+ case 1 => YQL_1
+ case 2 => W3_frontpage
+ }
+
+ private[this] val Books = load("books")
+
+ private[this] val YQL_1 = load("yql_1")
+
+ private[this] val W3_frontpage = load("w3_frontpage")
+
+ private[this] def load(file: String) =
+ XML.load(Resources.getResource(file+".xml"))
+}
View
20 hector-microbenchmark/src/main/scala/hector/microbenchmark/util/HectorBenchmark.scala
@@ -0,0 +1,20 @@
+package hector.microbenchmark.util
+
+import com.google.caliper.SimpleBenchmark
+
+/**
+ */
+abstract class HectorBenchmark extends SimpleBenchmark {
+ protected def benchmark[@specialized U](reps: Int)(f: => U) = {
+ var result: U = null.asInstanceOf[U]
+ var i = 0
+
+ while(i < reps) {
+ val value = f
+ if(f != result) result = f
+ i += 1
+ }
+
+ result
+ }
+}
View
1 hector-web/src/main/scala/hector/util/package.scala
@@ -244,5 +244,4 @@ package object util {
val uuid = JUUID.randomUUID().toString
uuid.replace("-", "")
}
-
}

0 comments on commit 54e75a0

Please sign in to comment.