• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>3.4- Linux Benchmarks</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Boost.Sort">
8<link rel="up" href="../parallel.html" title="3.- Parallel Algorithms">
9<link rel="prev" href="parallel_stable_sort/parallel_programming.html" title="Programming">
10<link rel="next" href="windows_parallel.html" title="3.5- Windows Benchmark">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="parallel_stable_sort/parallel_programming.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../parallel.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="windows_parallel.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="sort.parallel.linux_parallel"></a><a class="link" href="linux_parallel.html" title="3.4- Linux Benchmarks">3.4- Linux Benchmarks</a>
28</h3></div></div></div>
29<div class="blockquote"><blockquote class="blockquote">
30<p>
31          The following results are from complex benchmarks, not include in the library
32          because they use non free software. (If you are interested in them, contact
33          fjtapia@gmail.com)
34        </p>
35<p>
36          There are 3 types of benchmarks,
37        </p>
38<div class="blockquote"><blockquote class="blockquote">
39<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
40<li class="listitem">
41                64 bits integers
42              </li>
43<li class="listitem">
44                strings
45              </li>
46<li class="listitem">
47                objects of several sizes.
48              </li>
49</ul></div>
50<p>
51            The objects are arrays of integers. The heavy comparison sums all the
52            elements in each, and the light comparison uses only the first number
53            in the array.
54          </p>
55<p>
56            These were run on an Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, with 6
57            cores and 2 threads by core, and 15M of cache. The compiler used was
58            a GCC 6.3 64 bits
59          </p>
60</blockquote></div>
61<h5>
62<a name="sort.parallel.linux_parallel.h0"></a>
63          <span class="phrase"><a name="sort.parallel.linux_parallel.100_000_000_numbers_of_64_bits_r"></a></span><a class="link" href="linux_parallel.html#sort.parallel.linux_parallel.100_000_000_numbers_of_64_bits_r"><span class="underline">100 000 000 NUMBERS OF 64 BITS RANDOMLY FILLED</span></a>
64        </h5>
65<p>
66          <span class="bold"><strong>
67<pre class="programlisting">                         |         |             |
68                         |  Time   |   Maximum   |
69                         |  secs   | Memory Used |
70-------------------------+---------+-------------+
71OMP parallel sort        | 1.1990  |   1564 MB   |
72TBB parallel_sort        | 1.6411  |    789 MB   |
73block_indirect_sort      | 0.9270  |    790 MB   |
74                         |         |             |
75OMP parallel stable sort | 1.5814  |   1972 MB   |
76TBB parallel stable sort | 1.1745  |   1570 MB   |
77sample sort              | 1.2872  |   1566 MB   |
78parallel stable sort     | 1.7158  |   1176 MB   |
79                         |         |             |
80</pre>
81          </strong></span>
82        </p>
83<h5>
84<a name="sort.parallel.linux_parallel.h1"></a>
85          <span class="phrase"><a name="sort.parallel.linux_parallel.10_000_000_strings_randomly_fill"></a></span><a class="link" href="linux_parallel.html#sort.parallel.linux_parallel.10_000_000_strings_randomly_fill"><span class="underline">10 000 000 STRINGS RANDOMLY FILLED</span></a>
86        </h5>
87<p>
88          <span class="bold"><strong>
89<pre class="programlisting">                         |         |             |
90                         |  Time   |   Maximum   |
91                         |  secs   | Memory Used |
92-------------------------+---------+-------------+
93OMP parallel sort        | 1.5738  |   2023 MB   |
94TBB parallel_sort        | 1.8626  |    826 MB   |
95block_indirect_sort      | 1.2411  |    825 MB   |
96                         |         |             |
97OMP parallel stable sort | 2.3214  |   2024 MB   |
98TBB parallel stable sort | 1.4383  |   1143 MB   |
99sample sort              | 1.5097  |   1135 MB   |
100parallel stable sort     | 2.0970  |    978 MB   |
101                         |         |             |
102</pre>
103          </strong></span>
104        </p>
105<h5>
106<a name="sort.parallel.linux_parallel.h2"></a>
107          <span class="phrase"><a name="sort.parallel.linux_parallel.objects_randomly_filled"></a></span><a class="link" href="linux_parallel.html#sort.parallel.linux_parallel.objects_randomly_filled"><span class="underline">OBJECTS RANDOMLY FILLED</span></a>
108        </h5>
109<div class="blockquote"><blockquote class="blockquote">
110<p>
111            The objects are arrays of 64 bits numbers
112          </p>
113<p>
114            They are compared in two ways :
115          </p>
116<div class="blockquote"><blockquote class="blockquote">
117<p>
118              (H) Heavy : The comparison is the sum of all the numbers of the array.
119            </p>
120<p>
121              (L) Light : The comparison is using only the first element of the array,
122              as a key
123            </p>
124</blockquote></div>
125</blockquote></div>
126<p>
127          <span class="bold"><strong>
128<pre class="programlisting">                    |           |           |           |           |           |           |             |
129                    | 100000000 |  50000000 |  25000000 |  12500000 |   6250000 |   1562500 |             |
130                    | objects of| objects of|objects of |objects of |objects of |objects of |  Maximum    |
131                    |  8 bytes  | 16 bytes  | 32 bytes  | 64 bytes  | 128 bytes | 512 bytes |  Memory     |
132                    |           |           |           |           |           |           |  Used       |
133                    |  H     L  |  H     L  |  H     L  |  H     L  |  H     L  |  H     L  |             |
134--------------------+-----------+-----------+-----------+-----------+-----------+-----------+-------------+
135OMP parallel sort   | 1.18  1.17| 0.73  0.66| 0.51  0.45| 0.43  0.39| 0.41  0.37| 0.37  0.32|   1569 MB   |
136TBB parallel_sort   | 1.71  1.59| 0.85  0.81| 0.56  0.54| 0.51  0.42| 0.45  0.39| 0.36  0.32|    788 MB   |
137block_indirect_sort | 1.11  1.08| 0.66  0.63| 0.49  0.46| 0.43  0.39| 0.40  0.37| 0.37  0.33|    794 MB   |
138                    |           |           |           |           |           |           |             |
139OMP par stable sort | 1.55  1.55| 1.38  1.35| 1.23  1.22| 1.17  1.17| 1.09  1.08| 0.97  0.97|   1980 MB   |
140TBB par stable sort | 1.23  1.23| 0.89  0.85| 0.74  0.72| 0.71  0.69| 0.69  0.69| 0.68  0.68|   1573 MB   |
141                    |           |           |           |           |           |           |             |
142sample sort         | 1.32  1.32| 0.84  0.78| 0.66  0.63| 0.63  0.62| 0.62  0.61| 0.60  0.60|   1568 MB   |
143parallel stable sort| 1.80  1.90| 1.17  1.07| 0.83  0.75| 0.76  0.71| 0.72  0.70| 0.70  0.69|   1177 MB   |
144                    |           |           |           |           |           |           |             |
145</pre>
146          </strong></span>
147        </p>
148</blockquote></div>
149</div>
150<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
151<td align="left"></td>
152<td align="right"><div class="copyright-footer">Copyright © 2014-2017 Steven
153      Ross, Francisco Tapia, Orson Peters<p>
154        Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost
155        Software License, Version 1.0</a>.
156      </p>
157</div></td>
158</tr></table>
159<hr>
160<div class="spirit-nav">
161<a accesskey="p" href="parallel_stable_sort/parallel_programming.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../parallel.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="windows_parallel.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
162</div>
163</body>
164</html>
165