• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Benchmark</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="../spinsort.html" title="2.3.- spinsort">
9<link rel="prev" href="../spinsort.html" title="2.3.- spinsort">
10<link rel="next" href="spinsort_programming.html" title="Programming">
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="../spinsort.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../spinsort.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="spinsort_programming.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="sort.single_thread.spinsort.spinsort_benchmark"></a><a class="link" href="spinsort_benchmark.html" title="Benchmark">Benchmark</a>
28</h4></div></div></div>
29<div class="blockquote"><blockquote class="blockquote">
30<p>
31            The benchmark with 100000000 64 bits integers, comparing with the std::stable_sort
32            of the GCC 6.3 compiler shows the mentioned characteristics, running
33            on a Intel i7-5820K CPU @ 3.30GH .
34          </p>
35<p>
36            <span class="bold"><strong>
37<pre class="programlisting">Data                           |std::stable_sort |   spin_sort  |
38-------------------------------+-----------------+--------------+
39random                         |     8.62        |     9.73     |
40                               |                 |              |
41sorted                         |     4.88        |     0.06     |
42sorted + 0.1% end              |     4.92        |     0.41     |
43sorted +   1% end              |     4.97        |     0.55     |
44sorted +  10% end              |     5.73        |     1.32     |
45                               |                 |              |
46sorted + 0.1% middle           |     6.58        |     1.89     |
47sorted +   1% middle           |     7.06        |     2.12     |
48sorted +  10% middle           |     9.56        |     4.02     |
49                               |                 |              |
50reverse sorted                 |     0.13        |     0.14     |
51reverse sorted + 0.1% end      |     5.22        |     0.52     |
52reverse sorted +   1% end      |     5.29        |     0.66     |
53reverse sorted +  10% end      |     6.03        |     1.45     |
54                               |                 |              |
55reverse sorted + 0.1% middle   |     6.52        |     1.89     |
56reverse sorted +   1% middle   |     7.09        |     2.12     |
57reverse sorted +  10% middle   |     9.46        |     4.02     |
58                               |                 |              |
59-------------------------------+-----------------+--------------+
60</pre>
61            </strong></span>
62          </p>
63</blockquote></div>
64</div>
65<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
66<td align="left"></td>
67<td align="right"><div class="copyright-footer">Copyright © 2014-2017 Steven
68      Ross, Francisco Tapia, Orson Peters<p>
69        Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost
70        Software License, Version 1.0</a>.
71      </p>
72</div></td>
73</tr></table>
74<hr>
75<div class="spirit-nav">
76<a accesskey="p" href="../spinsort.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../spinsort.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="spinsort_programming.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
77</div>
78</body>
79</html>
80