4832 lines
100 KiB
HTML
4832 lines
100 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>Integer Algorithm Performance</title>
|
|
<link rel="stylesheet" href="../../multiprecision.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
|
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Multiprecision">
|
|
<link rel="up" href="../perf.html" title="Performance Comparison">
|
|
<link rel="prev" href="float_performance.html" title="Float Algorithm Performance">
|
|
<link rel="next" href="rational_performance.html" title="Rational Type Performance">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table cellpadding="2" width="100%"><tr>
|
|
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
|
<td align="center"><a href="../../../../../../index.html">Home</a></td>
|
|
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
|
|
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="float_performance.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../perf.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="rational_performance.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h3 class="title">
|
|
<a name="boost_multiprecision.perf.integer_performance"></a><a class="link" href="integer_performance.html" title="Integer Algorithm Performance">Integer
|
|
Algorithm Performance</a>
|
|
</h3></div></div></div>
|
|
<p>
|
|
Note that these tests are carefully designed to test performance of the underlying
|
|
algorithms and not memory allocation or variable copying. As usual, performance
|
|
results should be taken with a healthy dose of scepticism, and real-world
|
|
performance may vary widely depending upon the specifics of the program.
|
|
In each table relative times are given first, with the best performer given
|
|
a score of 1. Total actual times are given in brackets, measured in seconds
|
|
for 500000 operations.
|
|
</p>
|
|
<div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator"></a><p class="title"><b>Table 1.34. Operator +</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator +">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.23704 (0.0274266s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.09358 (0.0383278s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.26645 (0.0558828s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.32188 (0.0916899s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.62044 (0.0359271s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.5277 (0.053543s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.73059 (0.076363s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.71537 (0.118983s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.87515 (0.0415741s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.21699 (0.042653s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.15599 (0.0510088s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0693631s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0221711s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.035048s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0441255s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.04441 (0.0724435s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int"></a><p class="title"><b>Table 1.35. Operator +(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator +(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0155377s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0209523s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0306377s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.043125s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.31904 (0.0204948s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.76211 (0.0369203s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.52941 (0.0468577s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.60412 (0.0691778s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.96204 (0.0304855s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.02569 (0.0424428s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.11505 (0.0648002s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.65993 (0.114709s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
14.0654 (0.218543s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.8239 (0.226786s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
7.76691 (0.23796s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
6.10039 (0.263079s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long"></a><p class="title"><b>Table 1.36. Operator +(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator +(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.026624s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0291407s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0373209s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0464919s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.31378 (0.034978s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.54897 (0.045138s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.53649 (0.0573431s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.27833 (0.0594319s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
25.5775 (0.680974s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
24.0117 (0.699717s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
19.5633 (0.730121s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
16.8939 (0.785432s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
19.4694 (0.518354s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
18.4246 (0.536907s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
14.7715 (0.551288s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.3637 (0.574812s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long0"></a><p class="title"><b>Table 1.37. Operator +=(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator +=(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.18405 (0.0196905s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.22304 (0.0206476s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.25861 (0.0217397s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.29525 (0.0220829s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0166298s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0168822s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0172728s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0170492s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
39.9082 (0.663668s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
39.4584 (0.666147s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
38.5504 (0.665873s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
39.2231 (0.668722s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
30.6219 (0.509238s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
30.4135 (0.513447s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
30.9077 (0.533863s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
32.3086 (0.550835s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator0"></a><p class="title"><b>Table 1.38. Operator -</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator -">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.06986 (0.0296064s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0381508s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.05932 (0.053186s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.1766 (0.0844721s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.3304 (0.0368163s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.44506 (0.0551303s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.4431 (0.0724545s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.57255 (0.112898s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.48072 (0.0409761s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.19003 (0.0454007s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.0794 (0.0541942s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0717934s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0276731s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.10891 (0.0423057s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0502076s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.08479 (0.0778811s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int0"></a><p class="title"><b>Table 1.39. Operator -(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator -(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0147372s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0170001s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0232882s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0310734s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.4267 (0.0210256s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.98887 (0.0338109s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.83788 (0.0428009s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.81269 (0.0563264s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.07504 (0.0305803s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.40928 (0.0409579s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.58711 (0.0602493s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.26438 (0.101435s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
13.5424 (0.199577s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.1793 (0.207048s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
9.28855 (0.216314s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
7.49327 (0.232842s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long1"></a><p class="title"><b>Table 1.40. Operator -(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator -(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0277377s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0296807s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0372392s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0455855s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.19867 (0.0332484s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.48639 (0.0441169s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.43253 (0.0533464s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.27697 (0.0582111s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
24.1794 (0.670683s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
22.9073 (0.679904s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
18.8758 (0.702922s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
16.5837 (0.755975s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
18.149 (0.503413s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
17.4116 (0.516787s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
14.0411 (0.52288s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.8237 (0.538987s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long2"></a><p class="title"><b>Table 1.41. Operator -=(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator -=(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.26896 (0.0203467s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.25722 (0.0206147s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.36108 (0.0225485s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.18351 (0.0226161s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0160342s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0163971s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0165667s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0191094s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
41.1339 (0.659547s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
40.3982 (0.662411s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
39.925 (0.661425s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
34.636 (0.661874s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
31.1543 (0.499533s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
31.0303 (0.508806s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
30.7699 (0.509756s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
27.7054 (0.529434s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator1"></a><p class="title"><b>Table 1.42. Operator *</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator *">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.11839 (0.0757577s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.61061 (0.207951s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.4501 (0.696912s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.72796 (2.64108s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.01115 (0.0684934s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.28687 (0.166152s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.480595s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (1.52844s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0677384s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.129113s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.09011 (0.523902s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.03374 (1.58s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.6322 (0.110562s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.71751 (0.350866s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.05222 (0.986288s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.0644 (3.15531s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int1"></a><p class="title"><b>Table 1.43. Operator *(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator *(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.01611 (0.0229536s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.12175 (0.0298152s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.16413 (0.0416439s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.31747 (0.0666043s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.30215 (0.0294152s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.669 (0.0443606s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.72395 (0.0616701s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.88315 (0.095202s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0225897s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0265791s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0357725s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0505547s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.8281 (0.244603s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.1516 (0.26982s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.76424 (0.313519s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.04364 (0.406644s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long3"></a><p class="title"><b>Table 1.44. Operator *(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator *(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0570721s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0856141s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.143279s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.252785s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.10857 (0.0632686s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.2951 (0.110878s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.20827 (0.173121s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.18463 (0.299456s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.0605 (0.68832s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.13434 (0.696415s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
5.21762 (0.747577s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.11601 (0.787681s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.0524 (0.57371s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
7.33116 (0.627651s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.85202 (0.695193s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.35808 (0.848871s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long4"></a><p class="title"><b>Table 1.45. Operator *=(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator *=(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
111.27 (7.43118s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
67.7078 (7.34138s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
43.3851 (7.4075s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
25.3089 (7.55455s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0667848s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.108427s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.170738s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.298493s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
46.3718 (3.09693s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
28.4639 (3.08626s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
18.1719 (3.10264s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.5223 (3.14083s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
276.674 (18.4776s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
169.146 (18.34s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
108.491 (18.5236s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
63.3261 (18.9024s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator2"></a><p class="title"><b>Table 1.46. Operator /</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator /">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.68035 (0.595251s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.04702 (0.707471s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.62314 (0.921536s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.43112 (1.38811s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.222079s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.34561s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.567748s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.969945s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.79283 (0.842308s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.73668 (0.945824s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.86649 (1.05969s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.32141 (1.2817s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
13.2531 (2.94324s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.2054 (3.87271s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
9.83293 (5.58262s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
13.0164 (12.6252s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int2"></a><p class="title"><b>Table 1.47. Operator /(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator /(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.06026 (0.225473s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.45732 (0.340049s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.00195 (0.547957s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.80587 (0.978029s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.43766 (0.135367s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.56264 (0.252052s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.44011 (0.445402s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.38009 (0.829617s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0555316s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0983563s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.182534s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.348566s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
35.9988 (1.99907s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
27.1024 (2.66569s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
21.8333 (3.98531s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
25.8066 (8.99528s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long5"></a><p class="title"><b>Table 1.48. Operator /(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator /(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.50505 (0.705756s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.39347 (1.58556s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.63348 (3.57438s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.75451 (8.52733s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.468925s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.12378 (1.27869s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.29966 (3.12128s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.4844 (8.04288s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.17234 (1.01866s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (1.13785s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (1.35728s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (1.79352s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.74612 (2.22557s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.70088 (3.07319s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.65634 (4.96268s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
6.79408 (12.1853s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_unsigned_long_long6"></a><p class="title"><b>Table 1.49. Operator /=(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator /=(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.76281 (0.0574966s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.76471 (0.0604224s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.56085 (0.0716403s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.31422 (0.124043s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0326164s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0342393s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0458981s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0943852s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
20.2862 (0.661664s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
19.4043 (0.664389s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
14.4881 (0.664976s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
7.14238 (0.674135s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
32.9555 (1.07489s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
30.1525 (1.0324s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
22.8324 (1.04796s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.7456 (1.10861s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator3"></a><p class="title"><b>Table 1.50. Operator %</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator %">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.8501 (0.364131s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.46527 (0.476653s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.27509 (0.689738s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.20064 (1.11769s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.196817s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.325301s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.540932s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.930916s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.2533 (0.640305s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.15441 (0.700832s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.47898 (0.800029s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.07439 (1.00016s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
15.3501 (3.02116s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.1106 (3.9396s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.0689 (5.98752s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
13.5535 (12.6172s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int3"></a><p class="title"><b>Table 1.51. Operator %(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator %(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.82761 (0.104331s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.01496 (0.202512s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.10004 (0.389523s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.17252 (0.768097s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.78851 (0.102099s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.96844 (0.197838s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.02956 (0.376451s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.07257 (0.73276s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.057086s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.100505s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.185483s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.353552s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
36.3018 (2.07233s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
26.3075 (2.64402s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
21.9525 (4.07183s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
25.6759 (9.07775s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_construct"></a><p class="title"><b>Table 1.52. Operator construct</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator construct">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.40211 (0.0026854s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00278639s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00322813s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0027185s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00191526s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.40721 (0.00392103s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.90346 (0.00614463s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.14621 (0.00583447s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
98.705 (0.189046s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
68.9726 (0.192184s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
58.8994 (0.190135s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
70.0525 (0.190438s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
105.602 (0.202255s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
74.1994 (0.206748s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
63.6455 (0.205456s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
76.8935 (0.209035s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_construct_unsigned"></a><p class="title"><b>Table 1.53. Operator construct(unsigned)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator construct(unsigned)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.73436 (0.00348927s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00263476s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0027009s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00318651s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00201185s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.36851 (0.0036057s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.07362 (0.00560064s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.66856 (0.00531688s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
97.2414 (0.195635s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
76.3759 (0.201232s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
72.7396 (0.196462s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
63.8129 (0.20334s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
210.112 (0.422713s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
162.652 (0.42855s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
158.33 (0.427634s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
134.626 (0.428987s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_construct_unsigned_long"></a><p class="title"><b>Table 1.54. Operator construct(unsigned long long)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator construct(unsigned long long)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.34403 (0.00739542s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.66376 (0.00713834s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.22989 (0.0074969s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.23708 (0.00711417s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00315501s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00429049s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00609561s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0057508s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
222.866 (0.703144s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
164.331 (0.705059s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
115.363 (0.70321s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
122.347 (0.703596s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
218.681 (0.689941s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
163.796 (0.702765s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
114.57 (0.698376s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
122.422 (0.704027s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_gcd"></a><p class="title"><b>Table 1.55. Operator gcd</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator gcd">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.16358 (2.74442s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.39847 (8.11559s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.64677 (22.2518s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.95096 (64.4961s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (2.35859s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.30986 (7.60133s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.67681 (22.6577s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.0895 (69.0758s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.03392 (2.4386s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (5.80319s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (13.5124s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (33.0586s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
5.25978 (12.4057s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.4619 (25.8932s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.15577 (56.1542s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.91192 (129.323s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_powm"></a><p class="title"><b>Table 1.56. Operator powm</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator powm">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.50722 (2.91621s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.5561 (13.406s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.37066 (73.483s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.88831 (473.91s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.93385 (2.24931s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.18107 (11.9922s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.20753 (70.7403s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.8158 (466.88s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (1.16313s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (3.76986s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (16.8128s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (96.9476s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.44081 (1.67584s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.8794 (7.08507s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.19115 (36.8394s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.17186 (210.557s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_str"></a><p class="title"><b>Table 1.57. Operator str</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator str">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.17175 (0.00160006s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.41999 (0.00329476s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.40856 (0.00813784s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.52964 (0.0229767s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00136554s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00232027s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.00577741s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.14754 (0.0172372s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.50501 (0.00205515s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.52968 (0.00354926s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.01989 (0.0058923s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.015021s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.2161 (0.0166816s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
16.9577 (0.0393463s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
18.7474 (0.108311s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
22.7368 (0.341528s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator4"></a><p class="title"><b>Table 1.58. Operator |</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator |">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0301617s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0423404s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0522358s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0813156s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.0638 (0.0320861s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.22566 (0.0518951s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.28515 (0.0671305s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.16118 (0.094422s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.76553 (0.0532514s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.51489 (0.0641408s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.70708 (0.0891706s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.77346 (0.14421s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.37637 (0.131999s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.46212 (0.146587s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.91875 (0.152463s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.19621 (0.341217s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int4"></a><p class="title"><b>Table 1.59. Operator |(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator |(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0289129s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0351119s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0406779s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0525891s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.06091 (0.030674s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.25979 (0.0442336s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.36194 (0.0554009s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.37438 (0.0722772s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.92854 (0.142498s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.34687 (0.152627s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.71442 (0.151095s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.981 (0.156768s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.9847 (0.317598s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
9.37065 (0.329021s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.53651 (0.347248s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.2155 (0.589813s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator5"></a><p class="title"><b>Table 1.60. Operator ^</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator ^">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0305149s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.04217s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0525977s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0816632s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.01544 (0.0309861s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.24872 (0.0526585s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.26661 (0.066621s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.15965 (0.0947007s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.64675 (0.0502505s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.47181 (0.0620663s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.66038 (0.0873322s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.67895 (0.137108s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.30668 (0.131418s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.45859 (0.145849s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.91462 (0.153303s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.15538 (0.339342s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int5"></a><p class="title"><b>Table 1.61. Operator ^(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator ^(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.01566 (0.0296088s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0356634s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0401898s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0514097s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0291524s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.2393 (0.0441976s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.38556 (0.0556856s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.38899 (0.0714075s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.68027 (0.136441s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.15243 (0.14809s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.74237 (0.150405s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.0483 (0.156712s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.919 (0.318314s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
9.16311 (0.326788s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.62554 (0.346659s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
11.6212 (0.597442s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator6"></a><p class="title"><b>Table 1.62. Operator &</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator &">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.0346 (0.0303431s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0427309s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0535587s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.06945 (0.0828084s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0293284s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.10435 (0.04719s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.05262 (0.0563769s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0774309s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.86057 (0.0545675s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.58432 (0.0676995s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.69164 (0.0906018s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.86625 (0.144505s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.4157 (0.129506s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.60396 (0.154s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.95985 (0.158525s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
4.4032 (0.340944s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator_int6"></a><p class="title"><b>Table 1.63. Operator &(int)</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator &(int)">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.05874 (0.038946s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0483903s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.063842s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.100361s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0367853s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.05827 (0.0512099s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.09114 (0.0696605s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.09432 (0.109826s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
3.92298 (0.144308s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.99447 (0.144903s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.228 (0.14224s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.42296 (0.142809s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
8.79208 (0.323419s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
7.02288 (0.339839s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
5.65271 (0.36088s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
6.27104 (0.629365s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator7"></a><p class="title"><b>Table 1.64. Operator <<</b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator <<">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0248801s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.23196 (0.04s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0424149s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.060157s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.08931 (0.027102s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.40572 (0.0456418s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.3475 (0.0571542s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.24573 (0.0749397s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.05561 (0.0262636s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0324686s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.09914 (0.0466199s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.16315 (0.0699719s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.60497 (0.0399319s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.13048 (0.0691737s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.31219 (0.0980712s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
2.74695 (0.165248s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><div class="table">
|
|
<a name="boost_multiprecision.perf.integer_performance.operator8"></a><p class="title"><b>Table 1.65. Operator >></b></p>
|
|
<div class="table-contents"><table class="table" summary="Operator >>">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Backend
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
128 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
256 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
512 Bits
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
1024 Bits
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0213349s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.02127 (0.0295019s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0327116s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.13168 (0.0433804s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
cpp_int(fixed)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.13514 (0.0242181s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.16938 (0.0337803s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.46999 (0.0480859s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.60077 (0.061362s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
gmp_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.26614 (0.0270129s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0288873s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
1.42219 (0.0465221s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<span class="bold"><strong>1</strong></span> (0.0383329s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
tommath_int
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
12.0066 (0.25616s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
10.2837 (0.297067s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
9.99696 (0.327017s)
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
16.0943 (0.616942s)
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<br class="table-break"><p>
|
|
Test code was compiled with Microsoft Visual Studio 2010 with all optimisations
|
|
turned on (/Ox), and used MPIR-2.3.0 and <a href="http://www.mpfr.org" target="_top">MPFR</a>-3.0.0.
|
|
The tests were run on 32-bit Windows Vista machine.
|
|
</p>
|
|
<p>
|
|
Linux x86_64 results are broadly similar, except that libtommath performs
|
|
much better there.
|
|
</p>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"></td>
|
|
<td align="right"><div class="copyright-footer">Copyright © 2002-2019 John Maddock
|
|
and Christopher Kormanyos<p>
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
|
</p>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="float_performance.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../perf.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="rational_performance.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|