blob: 7b7237e5b9f5708b1debe292c7a229fcef19fa2a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Impala: be/src/experiments/hashing/split-benchmarks/partitioning-throughput-test.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Impala
</div>
<div id="projectbrief">Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('partitioning-throughput-test_8cc_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">partitioning-throughput-test.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="partitioning-throughput-test_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#include &lt;emmintrin.h&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;glog/logging.h&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &quot;tuple-types.h&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="compiler-util_8h.html">common/compiler-util.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cpu-info_8h.html">util/cpu-info.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="debug-util_8h.html">util/debug-util.h</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="stopwatch_8h.html">util/stopwatch.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#ad535e24bf728f53ce7dd4725a4a9581b"> 12</a></span>&#160;<span class="preprocessor">#define STREAMING true</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">using namespace </span>impala;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">namespace </span>impala {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// Tests the throughput of simply partitioning tuples from one stream into many</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">// with no other processing.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html"> 20</a></span>&#160;<span class="keyword">class </span><a class="code" href="classimpala_1_1PartitioningThroughputTest.html">PartitioningThroughputTest</a> {</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="comment">// There will be 2^FANOUT_BITS buffers</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#acdc5983418c21f9c6dd596f48d6142eb"> 23</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#acdc5983418c21f9c6dd596f48d6142eb">FANOUT_BITS</a> = 6;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7"> 24</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7">NUM_BUFFERS</a> = 1&lt;&lt;<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#acdc5983418c21f9c6dd596f48d6142eb">FANOUT_BITS</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// How many bytes of data to partition</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a759e8823026d4f707b8461b91f68dab4"> 26</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a759e8823026d4f707b8461b91f68dab4">DATA_BYTES</a> = 1&lt;&lt;30; <span class="comment">// 2GB</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a4507fb3a2a60ebc9438fd16e4f52c475"> 27</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4507fb3a2a60ebc9438fd16e4f52c475">DATA_TUPLES</a> = <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a759e8823026d4f707b8461b91f68dab4">DATA_BYTES</a> / <span class="keyword">sizeof</span>(ProbeTuple);</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="comment">// How many bytes each buffer will hold</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="comment">// Twice as much as needed if randomness is perfect.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a08c1c701b2a883c46239a2155f786ab9"> 30</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a08c1c701b2a883c46239a2155f786ab9">BUFFER_BYTES</a> = <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a759e8823026d4f707b8461b91f68dab4">DATA_BYTES</a> / <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7">NUM_BUFFERS</a> * 2;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40"> 31</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40">BUFFER_TUPLES</a> = <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a08c1c701b2a883c46239a2155f786ab9">BUFFER_BYTES</a> / <span class="keyword">sizeof</span>(ProbeTuple);</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9"> 33</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9">STREAMING_BUFFER_TUPLES</a> = 8 * 4; <span class="comment">// 4 cache linesp</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#ae4b10d42a9e46f75d00a40862197374e"> 34</a></span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#ad43c3812e6d13e0518d9f8b8f463ffcf"> 35</a></span>&#160; <span class="keyword">struct </span><a class="code" href="partitioning-throughput-test_8cc.html#a21a2991bad371e69e271208a9349d895">Buffer</a> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#a95e220783b7e524ffb49506a3fa592d8"> 36</a></span>&#160; ProbeTuple <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a84fe988c75f81c298ddd94179c1682bf">tuples</a>[<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40">BUFFER_TUPLES</a>];</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#ad172ecfd5c31c5df6282c2b4bc322bf7"> 37</a></span>&#160; <a class="code" href="classuint64__t.html">uint64_t</a> <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a6aaa98e11c89da3bbfa25f9f69c07998">count</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#a9b66cde1bdc6c170b4ad24a27fbd509d"> 38</a></span>&#160; <span class="comment">// offset by 7 cache lines</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#a21a2991bad371e69e271208a9349d895"> 39</a></span>&#160; uint8_t <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#aefd66df8850b13d54ba5b3fd579e229c">offset</a>[7 * 64 - <span class="keyword">sizeof</span>(<a class="code" href="classuint64__t.html">uint64_t</a>)];</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a41be783722e51fa72afafabfad8f2cc7"> 41</a></span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a41be783722e51fa72afafabfad8f2cc7">Buffer</a>() {</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a6aaa98e11c89da3bbfa25f9f69c07998">count</a> = 0;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; }</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; } <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a5cd380eba5b8036ed99d6a1d73464b92">__attribute__</a>((__packed__)) <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a5cd380eba5b8036ed99d6a1d73464b92">__attribute__</a>((aligned(64)));</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html"> 46</a></span>&#160; struct <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html">BufferBuffer</a> {</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#aa7146c4dab63891358228193133c75b4"> 47</a></span>&#160; ProbeTuple <a class="code" href="partitioning-throughput-test_8cc.html#ae4b10d42a9e46f75d00a40862197374e">tuples</a>[<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9">STREAMING_BUFFER_TUPLES</a>];</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#ac7388451f5d3388ea11057d3a88bd929"> 48</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#ac7388451f5d3388ea11057d3a88bd929">count</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#a9ee4d8c939e0c3666fb45d2121ab884e"> 49</a></span>&#160; uint8_t <a class="code" href="partitioning-throughput-test_8cc.html#a95e220783b7e524ffb49506a3fa592d8">padding</a>[64 - <span class="keyword">sizeof</span>(int)];</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#aad1cc3ec13eefb19b6bfd2624dc4df9c"> 51</a></span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#aad1cc3ec13eefb19b6bfd2624dc4df9c">BufferBuffer</a>() {</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; count = 0;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; } <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a5cd380eba5b8036ed99d6a1d73464b92">__attribute__</a>((__packed__)) <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a5cd380eba5b8036ed99d6a1d73464b92">__attribute__</a>((aligned(64)));</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#if STREAMING</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> BufferTuple(<span class="keyword">const</span> ProbeTuple* tuple, <a class="code" href="partitioning-throughput-test_8cc.html#a21a2991bad371e69e271208a9349d895">Buffer</a>* buffer) {</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="code" href="partitioning-throughput-test_8cc.html#a9b66cde1bdc6c170b4ad24a27fbd509d">BufferBuffer</a>* buffer_buffer = &amp;<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a>[tuple-&gt;id];</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; DCHECK_LT(buffer_buffer-&gt;count, <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9">STREAMING_BUFFER_TUPLES</a>);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; buffer_buffer-&gt;tuples[buffer_buffer-&gt;count++] = *tuple;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="compiler-util_8h.html#a9acc330d508b9a3b775cfdf7ce405e7d">UNLIKELY</a>(buffer_buffer-&gt;count == <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9">STREAMING_BUFFER_TUPLES</a>)) {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; DCHECK_LE(buffer-&gt;count + buffer_buffer-&gt;count, <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40">BUFFER_TUPLES</a>);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="comment">// Do a streaming write of streaming_tuples</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; __m128i* buffer_write_ptr = (__m128i*)&amp;buffer-&gt;tuples[buffer-&gt;count];</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="comment">// TODO code very dependent on size of ProbeTuple.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; DCHECK_EQ(buffer_buffer-&gt;count % 2, 0);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; buffer_buffer-&gt;count; i += 2) {</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; __m128i content = _mm_set_epi64x(*(<span class="keywordtype">long</span> <span class="keywordtype">long</span>*) (buffer_buffer-&gt;tuples + i),</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; *(<span class="keywordtype">long</span> <span class="keywordtype">long</span>*) (buffer_buffer-&gt;tuples + i + 1));</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; _mm_stream_si128(buffer_write_ptr + i/2, content);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; buffer-&gt;count += buffer_buffer-&gt;count;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; buffer_buffer-&gt;count = 0;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; }</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a513e835f764613eab2d6300bf81e0a2d"> 78</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a513e835f764613eab2d6300bf81e0a2d">TestThroughput</a>() {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="comment">// align allocations.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordtype">bool</span> fail = posix_memalign((<span class="keywordtype">void</span>**)&amp;<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>, __alignof(*<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>), <span class="keyword">sizeof</span>(*<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>) * <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7">NUM_BUFFERS</a>);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; CHECK(!fail);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; fail = posix_memalign((<span class="keywordtype">void</span>**)&amp;<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a>, __alignof(*<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a>), <span class="keyword">sizeof</span>(*<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>) * NUM_BUFFERS);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; CHECK(!fail);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; CHECK_EQ(((<span class="keywordtype">long</span>)<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>) % 64, 0);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7">NUM_BUFFERS</a>; ++i) {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">new</span> (buffers_ + i) <a class="code" href="partitioning-throughput-test_8cc.html#a21a2991bad371e69e271208a9349d895">Buffer</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keyword">new</span> (<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a> + i) <a class="code" href="partitioning-throughput-test_8cc.html#a9b66cde1bdc6c170b4ad24a27fbd509d">BufferBuffer</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; }</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; ProbeTuple* <a class="code" href="partitioning-throughput-test_8cc.html#ae4b10d42a9e46f75d00a40862197374e">tuples</a> = GenTuples(<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4507fb3a2a60ebc9438fd16e4f52c475">DATA_TUPLES</a>, NUM_BUFFERS);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="classimpala_1_1StopWatch.html">StopWatch</a> watch;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; watch.<a class="code" href="classimpala_1_1StopWatch.html#a811ac5c8ae0f5de261c62aba58d911f6">Start</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">for</span> (<a class="code" href="classuint64__t.html">uint64_t</a> i = 0; i &lt; <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4507fb3a2a60ebc9438fd16e4f52c475">DATA_TUPLES</a>; ++i) {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keyword">const</span> ProbeTuple* tuple = &amp;tuples[i];</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html">Buffer</a>* buffer = &amp;buffers_[tuple-&gt;id];</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="preprocessor">#if STREAMING</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="preprocessor"></span> BufferTuple(tuple, buffer);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="preprocessor"></span> buffer-&gt;tuples[buffer-&gt;count++] = *tuple;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; DCHECK_LT(buffer-&gt;count, <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40">BUFFER_TUPLES</a>);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor"></span> }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; watch.<a class="code" href="classimpala_1_1StopWatch.html#abb3886869c34e8e9a3d2d43a41631dac">Stop</a>();</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; LOG(ERROR) &lt;&lt; <a class="code" href="classimpala_1_1PrettyPrinter.html#a6e5f06a1ce274f747cc4f9928b797c5a">PrettyPrinter::Print</a>(watch.Ticks(), TUnit::CPU_TICKS);;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; free(tuples);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="comment">// Note: destructors not called.</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; free(buffers_);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; free(<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a>);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; }</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a7f3e68e6e96516bcc1663af2d597e295"> 110</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a7f3e68e6e96516bcc1663af2d597e295">TestRawThroughput</a>() {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> NUM_RECORDS = 1&lt;&lt;27;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; int64_t* buffer = (int64_t*) malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">long</span>) * NUM_RECORDS);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; int64_t constant = 0xFA57;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="classimpala_1_1StopWatch.html">StopWatch</a> watch;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; watch.<a class="code" href="classimpala_1_1StopWatch.html#a811ac5c8ae0f5de261c62aba58d911f6">Start</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">for</span> (int64_t i = 0; i &lt; NUM_RECORDS; ++i) {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; buffer[i] = constant;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; watch.<a class="code" href="classimpala_1_1StopWatch.html#abb3886869c34e8e9a3d2d43a41631dac">Stop</a>();</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; LOG(ERROR) &lt;&lt; <a class="code" href="classimpala_1_1PrettyPrinter.html#a6e5f06a1ce274f747cc4f9928b797c5a">PrettyPrinter::Print</a>(watch.Ticks(), TUnit::CPU_TICKS);;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; free(buffer);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; }</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2"> 125</a></span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html">Buffer</a>* <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">buffers_</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b"> 126</a></span>&#160; <a class="code" href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html">BufferBuffer</a>* <a class="code" href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">buffer_buffers_</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;};</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;}</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="partitioning-throughput-test_8cc.html#a3c04138a5bfe5d72780bb7e82a18e627"> 131</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="partitioning-throughput-test_8cc.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv) {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; google::InitGoogleLogging(argv[0]);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <a class="code" href="classimpala_1_1CpuInfo.html#ab63b1a50201fc23934e209f407945674">CpuInfo::Init</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classimpala_1_1PartitioningThroughputTest.html">PartitioningThroughputTest</a> test;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; test.<a class="code" href="classimpala_1_1PartitioningThroughputTest.html#a7f3e68e6e96516bcc1663af2d597e295">TestRawThroughput</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="comment">//test.TestThroughput();</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;}</div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a4507fb3a2a60ebc9438fd16e4f52c475"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a4507fb3a2a60ebc9438fd16e4f52c475">impala::PartitioningThroughputTest::DATA_TUPLES</a></div><div class="ttdeci">static const uint64_t DATA_TUPLES</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00027">partitioning-throughput-test.cc:27</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_ad8fd522e0cdf9f2dfca58327b9c9f6c7"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#ad8fd522e0cdf9f2dfca58327b9c9f6c7">impala::PartitioningThroughputTest::NUM_BUFFERS</a></div><div class="ttdeci">static const uint64_t NUM_BUFFERS</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00024">partitioning-throughput-test.cc:24</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a08c1c701b2a883c46239a2155f786ab9"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a08c1c701b2a883c46239a2155f786ab9">impala::PartitioningThroughputTest::BUFFER_BYTES</a></div><div class="ttdeci">static const uint64_t BUFFER_BYTES</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00030">partitioning-throughput-test.cc:30</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a4b697ce2c34e0b99dd40d09c21136fa2"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a4b697ce2c34e0b99dd40d09c21136fa2">impala::PartitioningThroughputTest::buffers_</a></div><div class="ttdeci">Buffer * buffers_</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00125">partitioning-throughput-test.cc:125</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_ae4b10d42a9e46f75d00a40862197374e"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#ae4b10d42a9e46f75d00a40862197374e">tuples</a></div><div class="ttdeci">ProbeTuple tuples[BUFFER_TUPLES]</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00034">partitioning-throughput-test.cc:34</a></div></div>
<div class="ttc" id="classimpala_1_1StopWatch_html_a811ac5c8ae0f5de261c62aba58d911f6"><div class="ttname"><a href="classimpala_1_1StopWatch.html#a811ac5c8ae0f5de261c62aba58d911f6">impala::StopWatch::Start</a></div><div class="ttdeci">void Start()</div><div class="ttdef"><b>Definition:</b> <a href="stopwatch_8h_source.html#l00035">stopwatch.h:35</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_acdc5983418c21f9c6dd596f48d6142eb"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#acdc5983418c21f9c6dd596f48d6142eb">impala::PartitioningThroughputTest::FANOUT_BITS</a></div><div class="ttdeci">static const uint64_t FANOUT_BITS</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00023">partitioning-throughput-test.cc:23</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html">impala::PartitioningThroughputTest</a></div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00020">partitioning-throughput-test.cc:20</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1Buffer_html_a6aaa98e11c89da3bbfa25f9f69c07998"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a6aaa98e11c89da3bbfa25f9f69c07998">impala::PartitioningThroughputTest::Buffer::count</a></div><div class="ttdeci">uint64_t count</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00037">partitioning-throughput-test.cc:37</a></div></div>
<div class="ttc" id="stopwatch_8h_html"><div class="ttname"><a href="stopwatch_8h.html">stopwatch.h</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_af7fdf6a41acc1f99ca205d16a965a91b"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#af7fdf6a41acc1f99ca205d16a965a91b">impala::PartitioningThroughputTest::buffer_buffers_</a></div><div class="ttdeci">BufferBuffer * buffer_buffers_</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00126">partitioning-throughput-test.cc:126</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a513e835f764613eab2d6300bf81e0a2d"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a513e835f764613eab2d6300bf81e0a2d">impala::PartitioningThroughputTest::TestThroughput</a></div><div class="ttdeci">void TestThroughput()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00078">partitioning-throughput-test.cc:78</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a5cd380eba5b8036ed99d6a1d73464b92"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a5cd380eba5b8036ed99d6a1d73464b92">impala::PartitioningThroughputTest::__attribute__</a></div><div class="ttdeci">struct impala::PartitioningThroughputTest::Buffer __attribute__((__packed__)) __attribute__((aligned(64)))</div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a759e8823026d4f707b8461b91f68dab4"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a759e8823026d4f707b8461b91f68dab4">impala::PartitioningThroughputTest::DATA_BYTES</a></div><div class="ttdeci">static const uint64_t DATA_BYTES</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00026">partitioning-throughput-test.cc:26</a></div></div>
<div class="ttc" id="classimpala_1_1StopWatch_html"><div class="ttname"><a href="classimpala_1_1StopWatch.html">impala::StopWatch</a></div><div class="ttdef"><b>Definition:</b> <a href="stopwatch_8h_source.html#l00028">stopwatch.h:28</a></div></div>
<div class="ttc" id="classimpala_1_1PrettyPrinter_html_a6e5f06a1ce274f747cc4f9928b797c5a"><div class="ttname"><a href="classimpala_1_1PrettyPrinter.html#a6e5f06a1ce274f747cc4f9928b797c5a">impala::PrettyPrinter::Print</a></div><div class="ttdeci">static std::string Print(bool value, TUnit::type ignored, bool verbose=false)</div><div class="ttdef"><b>Definition:</b> <a href="pretty-printer_8h_source.html#l00033">pretty-printer.h:33</a></div></div>
<div class="ttc" id="debug-util_8h_html"><div class="ttname"><a href="debug-util_8h.html">debug-util.h</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_a9b66cde1bdc6c170b4ad24a27fbd509d"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#a9b66cde1bdc6c170b4ad24a27fbd509d">BufferBuffer</a></div><div class="ttdeci">BufferBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00038">partitioning-throughput-test.cc:38</a></div></div>
<div class="ttc" id="classuint64__t_html"><div class="ttname"><a href="classuint64__t.html">uint64_t</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1Buffer_html_a84fe988c75f81c298ddd94179c1682bf"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a84fe988c75f81c298ddd94179c1682bf">impala::PartitioningThroughputTest::Buffer::tuples</a></div><div class="ttdeci">ProbeTuple tuples[BUFFER_TUPLES]</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00036">partitioning-throughput-test.cc:36</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer_html"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html">impala::PartitioningThroughputTest::BufferBuffer</a></div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00046">partitioning-throughput-test.cc:46</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer_html_ac7388451f5d3388ea11057d3a88bd929"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#ac7388451f5d3388ea11057d3a88bd929">impala::PartitioningThroughputTest::BufferBuffer::count</a></div><div class="ttdeci">int count</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00048">partitioning-throughput-test.cc:48</a></div></div>
<div class="ttc" id="compiler-util_8h_html"><div class="ttname"><a href="compiler-util_8h.html">compiler-util.h</a></div></div>
<div class="ttc" id="compiler-util_8h_html_a9acc330d508b9a3b775cfdf7ce405e7d"><div class="ttname"><a href="compiler-util_8h.html#a9acc330d508b9a3b775cfdf7ce405e7d">UNLIKELY</a></div><div class="ttdeci">#define UNLIKELY(expr)</div><div class="ttdef"><b>Definition:</b> <a href="compiler-util_8h_source.html#l00033">compiler-util.h:33</a></div></div>
<div class="ttc" id="classimpala_1_1StopWatch_html_abb3886869c34e8e9a3d2d43a41631dac"><div class="ttname"><a href="classimpala_1_1StopWatch.html#abb3886869c34e8e9a3d2d43a41631dac">impala::StopWatch::Stop</a></div><div class="ttdeci">void Stop()</div><div class="ttdef"><b>Definition:</b> <a href="stopwatch_8h_source.html#l00042">stopwatch.h:42</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1Buffer_html_a41be783722e51fa72afafabfad8f2cc7"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#a41be783722e51fa72afafabfad8f2cc7">impala::PartitioningThroughputTest::Buffer::Buffer</a></div><div class="ttdeci">Buffer()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00041">partitioning-throughput-test.cc:41</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1Buffer_html_aefd66df8850b13d54ba5b3fd579e229c"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html#aefd66df8850b13d54ba5b3fd579e229c">impala::PartitioningThroughputTest::Buffer::offset</a></div><div class="ttdeci">uint8_t offset[7 *64-sizeof(uint64_t)]</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00039">partitioning-throughput-test.cc:39</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_a95e220783b7e524ffb49506a3fa592d8"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#a95e220783b7e524ffb49506a3fa592d8">padding</a></div><div class="ttdeci">uint8_t padding[64-sizeof(int)]</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00036">partitioning-throughput-test.cc:36</a></div></div>
<div class="ttc" id="classimpala_1_1CpuInfo_html_ab63b1a50201fc23934e209f407945674"><div class="ttname"><a href="classimpala_1_1CpuInfo.html#ab63b1a50201fc23934e209f407945674">impala::CpuInfo::Init</a></div><div class="ttdeci">static void Init()</div><div class="ttdoc">Initialize CpuInfo. </div><div class="ttdef"><b>Definition:</b> <a href="cpu-info_8cc_source.html#l00075">cpu-info.cc:75</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_a21a2991bad371e69e271208a9349d895"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#a21a2991bad371e69e271208a9349d895">Buffer</a></div><div class="ttdeci">Buffer()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00039">partitioning-throughput-test.cc:39</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a7f3e68e6e96516bcc1663af2d597e295"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a7f3e68e6e96516bcc1663af2d597e295">impala::PartitioningThroughputTest::TestRawThroughput</a></div><div class="ttdeci">void TestRawThroughput()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00110">partitioning-throughput-test.cc:110</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer_html_aad1cc3ec13eefb19b6bfd2624dc4df9c"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1BufferBuffer.html#aad1cc3ec13eefb19b6bfd2624dc4df9c">impala::PartitioningThroughputTest::BufferBuffer::BufferBuffer</a></div><div class="ttdeci">BufferBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00051">partitioning-throughput-test.cc:51</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a354774d292a74ebcb04bddbae63cc0b9"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a354774d292a74ebcb04bddbae63cc0b9">impala::PartitioningThroughputTest::STREAMING_BUFFER_TUPLES</a></div><div class="ttdeci">static const int STREAMING_BUFFER_TUPLES</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00033">partitioning-throughput-test.cc:33</a></div></div>
<div class="ttc" id="structimpala_1_1PartitioningThroughputTest_1_1Buffer_html"><div class="ttname"><a href="structimpala_1_1PartitioningThroughputTest_1_1Buffer.html">impala::PartitioningThroughputTest::Buffer</a></div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00035">partitioning-throughput-test.cc:35</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_a3c04138a5bfe5d72780bb7e82a18e627"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a></div><div class="ttdeci">int main(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00131">partitioning-throughput-test.cc:131</a></div></div>
<div class="ttc" id="classimpala_1_1PartitioningThroughputTest_html_a8aa6e4ee4c63f48bc023e299f9144f40"><div class="ttname"><a href="classimpala_1_1PartitioningThroughputTest.html#a8aa6e4ee4c63f48bc023e299f9144f40">impala::PartitioningThroughputTest::BUFFER_TUPLES</a></div><div class="ttdeci">static const uint64_t BUFFER_TUPLES</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00031">partitioning-throughput-test.cc:31</a></div></div>
<div class="ttc" id="cpu-info_8h_html"><div class="ttname"><a href="cpu-info_8h.html">cpu-info.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_e5d120be6b5e8a44336cbfd013b25604.html">be</a></li><li class="navelem"><a class="el" href="dir_68cf7cafb51a962d5bc4848b83cab0de.html">src</a></li><li class="navelem"><a class="el" href="dir_c9df84a671cd91d3c29aa4a38e7587c0.html">experiments</a></li><li class="navelem"><a class="el" href="dir_367816a830a7d40c657b425d9d1f547b.html">hashing</a></li><li class="navelem"><a class="el" href="dir_ba3a9893189629d7c7924039bf8c04ad.html">split-benchmarks</a></li><li class="navelem"><a class="el" href="partitioning-throughput-test_8cc.html">partitioning-throughput-test.cc</a></li>
<li class="footer">Generated on Thu May 7 2015 16:10:35 for Impala by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>