mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 02:42:54 +00:00
11437 lines
851 KiB
XML
11437 lines
851 KiB
XML
<?xml version="1.0"?>
|
||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||
<updated>2025-02-20T00:00:00Z</updated>
|
||
<title>yakubin’s notes</title>
|
||
<link rel="alternate" type="text/html" href="https://yakubin.com/notes"/>
|
||
<link rel="self" type="application/atom+xml" href="https://yakubin.com/notes/atom.xml"/>
|
||
<author>
|
||
<name>Jakub Alba (yakubin)</name>
|
||
<uri>https://yakubin.com</uri>
|
||
</author>
|
||
<id>urn:uuid:a81c5f80-f5ca-4b3a-8a31-9d61a9fadf30</id>
|
||
|
||
<entry>
|
||
<title>Thoughts about Prolog</title>
|
||
<link href="/notes/thoughts-about-prolog.html"/>
|
||
<id>urn:uuid:034e3deb-01fe-48bb-9c30-0ad0df9b1c26</id>
|
||
|
||
<published>2025-01-17T00:00:00Z</published>
|
||
|
||
<updated>2025-01-17T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>The most advertised feature of Prolog is its ability to run
|
||
computations both forwards and backwards. This is a simplification. More
|
||
accurately, Prolog doesn’t have functions which return values. It has
|
||
predicates. In order to model a traditional function in Prolog, the
|
||
programmer can treat one of the predicate’s arguments as its return
|
||
value. E.g. the following predicate models the function
|
||
<code>f(x) = 2x</code>:</p>
|
||
<pre><code>:- use_module(library(clpfd)).
|
||
|
||
f(X, Y) :- Y #= 2 * X.</code></pre>
|
||
<p>Now we can ask Prolog to run this “function” forwards by asking for
|
||
valid substitutions of <code>Y</code>:</p>
|
||
<pre><code>?- f(1, Y).
|
||
Y = 2.</code></pre>
|
||
<p>But we may also run it backwards by asking for valid substitutions of
|
||
<code>X</code> instead:</p>
|
||
<pre><code>?- f(X, 2).
|
||
X = 1.</code></pre>
|
||
<p>We can also ask Prolog for the general solution:</p>
|
||
<pre><code>?- f(X, Y).
|
||
2*X#=Y.</code></pre>
|
||
<p>With more arguments, we’ll have many more directions we can run the
|
||
computation in and which one is forwards is just a matter of
|
||
convention.</p>
|
||
<p>Unfortunately, this works only for the most trivial programs. It
|
||
breaks down on things as simple as quicksort. With the following
|
||
definition:</p>
|
||
<pre><code>:- use_module(library(clpfd)).
|
||
|
||
quicksort_forwards([X|Xs], Ys) :-
|
||
partition(Xs, X, Littles, Bigs),
|
||
quicksort_forwards(Littles, Ls),
|
||
quicksort_forwards(Bigs, Bs),
|
||
append(Ls, [X|Bs], Ys).
|
||
quicksort_forwards([], []).
|
||
|
||
partition([X|Xs], Y, [X|Ls], Bs) :- X #=&lt; Y, !, partition(Xs, Y, Ls, Bs).
|
||
partition([X|Xs], Y, Ls, [X|Bs]) :- X #&gt; Y, !, partition(Xs, Y, Ls, Bs).
|
||
partition([], Y, [], []).</code></pre>
|
||
<p>We can run this quicksort implementation forwards with no issues:</p>
|
||
<pre><code>?- quicksort_forwards([2, 1], L).
|
||
L = [1, 2] .</code></pre>
|
||
<p>But running it backwards fails due to the program hitting the stack
|
||
limit:</p>
|
||
<pre><code>?- quicksort_forwards(L, [1, 2]).
|
||
ERROR: Stack limit (1.0Gb) exceeded
|
||
ERROR: Stack sizes: local: 2Kb, global: 1.0Gb, trail: 66.4Mb
|
||
ERROR: Stack depth: 1,053,286, last-call: 100%, Choice points: 7
|
||
ERROR: In:
|
||
ERROR: [1,053,286] clpfd:left_right_linsum_const(_104836684, _104836686, _104836688, _104836690, _104836692)
|
||
ERROR: [1,053,285] clpfd:clpfd_geq_(_104836710, _104836712)
|
||
ERROR: [1,053,284] clpfd:clpfd_geq(_104836730, _104836732)
|
||
ERROR: [1,053,283] user:partition([length:1|_104836762], _104836752, [length:1|_104836768], _104836756)
|
||
ERROR: [12] user:quicksort_forwards([length:1,053,272|_104836794], [length:2])
|
||
ERROR:
|
||
ERROR: Use the --stack_limit=size[KMG] command line option or
|
||
ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
|
||
^ Exception: (1,053,283) partition(_104836436, _174{clpfd = ...}, _104836442, _114) ? abort
|
||
% Execution Aborted</code></pre>
|
||
<p>Why is that? Prolog traverses the search tree in depth-first order,
|
||
starting with the first clause. In this case, the first clause of
|
||
<code>quicksort_forwards</code> is
|
||
<code>partition(Xs, X, Littles, Bigs)</code>. At this point the only
|
||
variables bound are <code>X</code> and <code>Xs</code>.
|
||
<code>Littles</code> and <code>Bigs</code> are unbound. Going deeper
|
||
into <code>partition</code>, Prolog is going to begin infinite
|
||
recursion, generating all possible lists that it could substitute for
|
||
<code>Littles</code> and <code>Bigs</code> in
|
||
<code>quicksort_forwards</code>. It’s never going to reach the recursive
|
||
clause <code>quicksort_forwards</code> in
|
||
<code>quicksort_forwards</code>. The stack is going to be filled with
|
||
calls to <code>partition</code>.</p>
|
||
<p>We can fix this by reordering the clauses so that the length of the
|
||
generated list is established first, preventing infinite recursion:</p>
|
||
<pre><code>quicksort_backwards([X|Xs], Ys) :-
|
||
append(Ls, [X|Bs], Ys),
|
||
quicksort_backwards(Littles, Ls),
|
||
quicksort_backwards(Bigs, Bs),
|
||
partition(Xs, X, Littles, Bigs).
|
||
quicksort_backwards([], []).</code></pre>
|
||
<p>The <code>append</code> call, which is placed first, is going to
|
||
recursively establish possible contents of <code>Ls</code> and
|
||
<code>Bs</code> (along with their lengths). After that we recurse into
|
||
<code>quicksort_backwards</code>, which is going to establish similar
|
||
splits for progressively smaller lists comprising the input. Finally the
|
||
call to <code>partition</code> is going to establish how the smaller
|
||
lists are synthesised into bigger lists.</p>
|
||
<p>Lo and behold, it works:</p>
|
||
<pre><code>?- quicksort_backwards(L, [1, 2]).
|
||
L = [1, 2] ;
|
||
L = [2, 1] ;
|
||
false.</code></pre>
|
||
<p>But only backwards. We can’t run it forwards anymore:</p>
|
||
<pre><code>?- quicksort_backwards([2, 1], L).
|
||
ERROR: Stack limit (1.0Gb) exceeded
|
||
ERROR: Stack sizes: local: 0.8Gb, global: 0.2Gb, trail: 53.9Mb
|
||
ERROR: Stack depth: 2,353,978, last-call: 0%, Choice points: 4,707,935
|
||
ERROR: Possible non-terminating recursion:
|
||
ERROR: [2,353,978] user:quicksort_backwards(_42391182, [])
|
||
ERROR: [2,353,977] user:quicksort_backwards([length:1|_42391210], [length:1|_42391216])
|
||
Exception: (2,352,548) quicksort_backwards(_42365378, _42365374) ? abort
|
||
% Execution Aborted</code></pre>
|
||
<p>That experience forms my general impression of Prolog. The promise of
|
||
being able to run computations in multiple directions is false. The
|
||
programmer needs to think about a specific direction anyway and even
|
||
after reordering the clauses to get <code>quicksort_backwards</code>,
|
||
what we get is not Heap’s algorithm, but something much less efficient.
|
||
At that point one might as well pick a more standard algorithmic
|
||
language, where the direction is explicit and the language is more
|
||
efficient in general.</p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Naive Gaussian elimination in floating-point vs exact arithmetic [PDF]</title>
|
||
<link href="/notes/naive-gauss-in-fp-vs-exact.pdf"/>
|
||
<id>urn:uuid:ddb2699a-063f-41e3-9f38-da11665feb53</id>
|
||
|
||
<published>2024-11-18T00:00:00Z</published>
|
||
|
||
<updated>2024-11-18T00:00:00Z</updated>
|
||
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>In appreciation of segment LCDs</title>
|
||
<link href="/notes/in-appreciation-of-segment-lcds.html"/>
|
||
<id>urn:uuid:456233f8-d1fe-4795-a53e-db30f6084e29</id>
|
||
|
||
<published>2024-10-22T00:00:00Z</published>
|
||
|
||
<updated>2024-10-22T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>I love segment LCDs. They’re low-power. Custom segments allow them to
|
||
display perfectly sharp symbols, without any pixelation. They don’t need
|
||
any special controllers/drivers/GPUs to program. To me as a user they
|
||
signal that I’m dealing with a no-nonsense device that’s not going to
|
||
display ads or other annoyances. And I just love their aesthetic. So
|
||
here I’m going to collect photos of some that I’ve used that were done
|
||
particularly well.</p>
|
||
<p>Canon EOS 5D Mark IV:</p>
|
||
<p><img src="canon-eos-5d-mark-iv-top.jpg" alt="Top side of Canon EOS 5D Mark IV" /></p>
|
||
<p>Fluke 179:</p>
|
||
<p><img src="fluke-179.webp" alt="Fluke 179 multimeter" /></p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Floating-point Gaussian elimination errors for Hilbert matrices</title>
|
||
<link href="/notes/floating-point-gaussian-elimination-errors-for-hilbert-matrices.html"/>
|
||
<id>urn:uuid:656f798c-b4ce-4c75-8574-ac5a2b0c58f7</id>
|
||
|
||
<published>2024-09-16T00:00:00Z</published>
|
||
|
||
<updated>2024-10-14T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>I’ve written a program which calculates the solution to a system of n
|
||
affine equations of n variables using arbitrary-precision fractions, as
|
||
well as IEEE754 64-bit binary floating-point numbers with the Gaussian
|
||
elimination algorithm with partial and complete pivoting, and calculates
|
||
the numerical error of the latter 2 methods based on the exact solution.
|
||
The input matrices I’ve used are known as Hilbert matrices,
|
||
i.e. <code>H[i][j] = 1/(i + j - 1)</code>. The results show that without
|
||
a thorough analysis of the numerical conditioning of a problem, even
|
||
using a numerically-stable method (like Gaussian elimination with
|
||
complete pivoting), floating-point numbers lead to catastrophic
|
||
errors.</p>
|
||
<p>Results: <a href="/notes/hilbert.csv">hilbert.csv</a>. R program used
|
||
to generate the plots: <a
|
||
href="/notes/hilbert-error-plots.R">hilbert-error-plots.R</a>.</p>
|
||
<p><img src="/notes/hilbert-matrix-rel-error.png" alt="Gaussian elimination relative error for Hilbert matrices" />
|
||
<img src="/notes/hilbert-matrix-abs-error.png" alt="Gaussian elimination absolute error for Hilbert matrices" /></p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Race conditions in procfs</title>
|
||
<link href="/notes/race-conditions-in-procfs.html"/>
|
||
<id>urn:uuid:f915aa6b-373f-4135-8b78-c12951b9b667</id>
|
||
|
||
<published>2024-06-12T00:00:00Z</published>
|
||
|
||
<updated>2024-06-18T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>OpenBSD deleted <code>procfs</code> in 5.7 release (2015), <a
|
||
href="https://www.openbsd.org/plus57.html">citing race conditions</a> as
|
||
one of the main issues. FreeBSD deprecated it in 2011 and doesn’t mount
|
||
it by default. Instead users are expected to rely on tools like the
|
||
<code>procstat</code> command-line tool and the <code>libprocstat</code>
|
||
C library, which underneath use the <code>sysctl(3)</code> interface to
|
||
communicate with the kernel. In contrast, Linux supports
|
||
<code>procfs</code> with no plans of deprecating in sight and lots of
|
||
basic things on Linux can only be done through <code>procfs</code>. On
|
||
Linux, tools like <code>ps</code>, <code>pmap</code>,
|
||
<code>pgrep</code>, <code>pkill</code>, <code>lsof</code> all rely on
|
||
<code>procfs</code>.</p>
|
||
<p>Personally, I dislike the idea of <code>/proc</code> itself: exposing
|
||
system information that’s available in the kernel in binary form by
|
||
converting it to text only to be converted back to binary in user
|
||
processes, probably with some bugs along the way. Or, putting it
|
||
differently: stringly-typed programming. This has consequences, such as
|
||
most files in <code>/proc</code> reporting their size through
|
||
<code>fstat(2)</code> as 0, even though they’re not empty when you
|
||
actually read them. In order for the kernel to report the actual size of
|
||
such a file, it would need to serialise its data into text every time
|
||
you ask it for the size, since the relation between the size of binary
|
||
data represented by the text and the size of the text is
|
||
non-obvious.</p>
|
||
<p>Another issue is that this API masquerades such files as regular
|
||
files, making them available through the same method as any other files,
|
||
even though when they are treated as regular files, bugs are inevitable.
|
||
There is no warning that they should be treated specially in order for
|
||
the user to receive correct data. So using tools like the
|
||
<code>cat</code> command or generic function for reading files like
|
||
<code>base::ReadFileToString()</code> in Chromium leads to incorrect
|
||
data. And that’s assuming that receiving correct data can even somehow
|
||
be guaranteed. It can be for some files in <code>/proc</code>, but not
|
||
for others, as I’ll show here.</p>
|
||
<p>Some files in <code>/proc</code> guarantee that their content is
|
||
consistent when read in a single <code>read(2)</code> syscall. Others
|
||
don’t. The obvious issue here is that in order to be able to read a
|
||
whole file in a single <code>read(2)</code> syscall, we need to know its
|
||
size first. And most files in <code>/proc</code> report that their size
|
||
is 0, even though they’re not empty:</p>
|
||
<pre><code>$ ls -l /proc | egrep -v &#39;^d&#39; | head
|
||
total 0
|
||
-r--r--r-- 1 root root 0 Jun 11 03:47 buddyinfo
|
||
-r--r--r-- 1 root root 0 Jun 11 03:42 cgroups
|
||
-r--r--r-- 1 root root 0 Jun 11 03:42 cmdline
|
||
-r--r--r-- 1 root root 0 Jun 11 03:47 consoles
|
||
-r--r--r-- 1 root root 0 Jun 11 03:42 cpuinfo
|
||
-r--r--r-- 1 root root 0 Jun 11 03:47 crypto
|
||
-r--r--r-- 1 root root 0 Jun 11 03:42 devices
|
||
-r--r--r-- 1 root root 0 Jun 11 03:47 diskstats
|
||
-r--r--r-- 1 root root 0 Jun 11 03:47 dma
|
||
$ wc -c /proc/cpuinfo
|
||
5508 /proc/cpuinfo</code></pre>
|
||
<h2>Demo: Linux</h2>
|
||
<p>So is it a real problem? Everything seems to work. Can we get
|
||
incorrect data in practice? For demonstration purposes I’ll focus on the
|
||
<code>/proc/[pid]/maps</code> file, since I can easily programatically
|
||
control its contents and show how mutating it (which happens e.g. when a
|
||
program allocates or deallocates memory) and reading it concurrently
|
||
leads to incorrect data.</p>
|
||
<p>How should we read it? I’ll go with simulating the behaviour of the
|
||
<a
|
||
href="https://chromium.googlesource.com/chromium/src/+/62114f568675eb0c3d18307a3f42d9d3b6100ab1/base/files/file_util.cc#364"><code>base::ReadFileToString()</code></a>
|
||
function from Chromium, which, through a sequence of indirections,
|
||
ultimately calls <a
|
||
href="https://chromium.googlesource.com/chromium/src/+/62114f568675eb0c3d18307a3f42d9d3b6100ab1/base/files/file_util.cc#63"><code>base::ReadStreamToSpanWithMaxSize()</code></a>.
|
||
This function in turn uses the <code>fread(3)</code> C standard library
|
||
function to read the file in chunks. If the file has a non-zero size
|
||
reported by <code>fstat(2)</code>, then it uses that as the chunk size.
|
||
If the reported size is zero on the other hand, it uses a 4kiB chunk for
|
||
the first read and 64kiB after that if it’s not enough. One might ask:
|
||
what does <code>pmap</code> do? It’s behaviour is actually more
|
||
bug-prone. It uses <code>fgets(3)</code>, which, according to
|
||
<code>strace</code>, on my system reduces to reading the file in
|
||
1024-byte chunks.</p>
|
||
<p>This is the function I’m going to use for reading
|
||
<code>/proc/[pid]/maps</code>:</p>
|
||
<pre><code>void linux_copy_maps_to_file(const char* dst, pid_t pid) {
|
||
const size_t big_chunk_size = 1 &lt;&lt; 16;
|
||
const size_t small_chunk_size = 1 &lt;&lt; 12;
|
||
|
||
char maps_path[26] = {0};
|
||
snprintf(maps_path, (sizeof maps_path) - 1, &quot;/proc/%u/maps&quot;, (unsigned) pid);
|
||
|
||
FILE* src_fp = fopen(maps_path, &quot;r&quot;);
|
||
if (src_fp == NULL) {
|
||
perror(&quot;fopen&quot;);
|
||
return;
|
||
}
|
||
|
||
FILE* dst_fp = fopen(dst, &quot;w&quot;);
|
||
if (dst_fp == NULL) {
|
||
perror(&quot;fopen&quot;);
|
||
return;
|
||
}
|
||
|
||
char chunk[big_chunk_size];
|
||
for (size_t chunk_size = small_chunk_size; ; chunk_size = big_chunk_size) {
|
||
size_t n = fread(chunk, 1, chunk_size, src_fp);
|
||
if (0 &lt; n) {
|
||
size_t m = fwrite(chunk, 1, n, dst_fp);
|
||
if (n != m) {
|
||
fprintf(stderr, &quot;fwrite failed\n&quot;);
|
||
return;
|
||
}
|
||
}
|
||
if (n &lt; chunk_size) {
|
||
if (ferror(src_fp)) {
|
||
fprintf(stderr, &quot;fread failed\n&quot;);
|
||
return;
|
||
}
|
||
if (feof(src_fp)) {
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
if (fflush(dst_fp)) {
|
||
perror(&quot;fflush&quot;);
|
||
return;
|
||
}
|
||
|
||
fclose(src_fp);
|
||
fclose(dst_fp);
|
||
}
|
||
|
||
#ifdef __linux__
|
||
#define copy_maps_to_file linux_copy_maps_to_file
|
||
#endif
|
||
|
||
void copy_maps_n_times(pid_t pid, int n) {
|
||
assert(n &lt; 100);
|
||
for (int i = 0; i &lt; n; i++) {
|
||
char dstPathBuf[30] = {0};
|
||
snprintf(dstPathBuf, sizeof dstPathBuf - 1, &quot;./saved-maps-%02d.txt&quot;, i);
|
||
copy_maps_to_file(dstPathBuf, pid);
|
||
}
|
||
}</code></pre>
|
||
<p>Now the mutating part of my program. I’m going to allocate a region
|
||
of memory and start by marking every other page of it as read-only,
|
||
initially leaving the other ones with no permissions. This ensures that
|
||
<code>/proc/[pid]/maps</code> doesn’t collapse the whole allocation into
|
||
one line, but instead has a separate line for each page, making the file
|
||
big enough, exceeding the size of the chunks used to read it. After
|
||
that, I’m going to mark the first page as read-write and copy
|
||
<code>/proc/[pid]/maps</code> to a local file named
|
||
<code>saved-maps.txt</code>. Then I’m going to start another process
|
||
which in the background is going to copy <code>/proc/[pid]/maps</code>
|
||
in a loop to local files named using the pattern
|
||
<code>saved-maps-%02d.txt</code>. While this process is doing that, in
|
||
the original process I’m going to iterate through the mapped region of
|
||
memory, in each iteration first marking another page as read-write and
|
||
then marking the previous one (from the previous iteration) as having no
|
||
permissions. This way <strong>the mapped region always has exactly 1 or
|
||
2 pages of memory with read-write permissions.</strong> Other pages are
|
||
either read-only or have no permissions. In order to make the pattern
|
||
more erratic, before the loop I’m going to shuffle an array of pointers
|
||
to pages that I’m going to iterate over. In order to verify the result,
|
||
the program is also going to print the start and end addresses of the
|
||
mapped region of memory. The code:</p>
|
||
<pre><code>int main() {
|
||
struct sigaction act = {0};
|
||
act.sa_handler = do_nothing;
|
||
if (sigaction(SIGCHLD, &amp;act, NULL) != 0) {
|
||
perror(&quot;sigaction&quot;);
|
||
return 1;
|
||
}
|
||
|
||
pid_t pid = getpid();
|
||
|
||
size_t pagesize = sysconf(_SC_PAGESIZE);
|
||
size_t total = 65000;
|
||
|
||
void** pages = mmap(NULL, total * sizeof *pages, PROT_READ | PROT_WRITE,
|
||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||
if (pages == MAP_FAILED) {
|
||
perror(&quot;mmap&quot;);
|
||
return 2;
|
||
}
|
||
|
||
#ifdef MAP_NORESERVE
|
||
int noreserve = MAP_NORESERVE;
|
||
#else
|
||
int noreserve = 0;
|
||
#endif
|
||
|
||
void* arena = mmap(NULL, total * pagesize, PROT_NONE,
|
||
MAP_PRIVATE | MAP_ANONYMOUS | noreserve, -1, 0);
|
||
if (pages == MAP_FAILED) {
|
||
perror(&quot;mmap&quot;);
|
||
return 3;
|
||
}
|
||
|
||
printf(&quot;%p %p\n&quot;, arena, arena + total * pagesize);
|
||
|
||
for (size_t i = 0; i &lt; total; i++) {
|
||
pages[i] = arena + i * pagesize;
|
||
if (i % 2 == 0 &amp;&amp; mprotect(pages[i], pagesize, PROT_READ) != 0) {
|
||
perror(&quot;mprotect read&quot;);
|
||
return 4;
|
||
}
|
||
}
|
||
|
||
if (shuffle(pages, total)) {
|
||
return 5;
|
||
}
|
||
|
||
if (mprotect(pages[0], pagesize, PROT_READ | PROT_WRITE) != 0) {
|
||
perror(&quot;mprotect prot_read_write&quot;);
|
||
return 6;
|
||
}
|
||
|
||
copy_maps_to_file(&quot;./saved-maps.txt&quot;, pid);
|
||
|
||
if (fork() == 0) {
|
||
copy_maps_n_times(pid, 20);
|
||
return 0;
|
||
}
|
||
|
||
int ret = 0;
|
||
|
||
for (size_t i = 1; i &lt; total; i++) {
|
||
if (mprotect(pages[i], pagesize, PROT_READ | PROT_WRITE) != 0) {
|
||
perror(&quot;mprotect prot_read_write&quot;);
|
||
ret = 7;
|
||
break;
|
||
}
|
||
if (mprotect(pages[i - 1], pagesize, PROT_NONE) != 0) {
|
||
perror(&quot;mprotect prot_none&quot;);
|
||
ret = 8;
|
||
break;
|
||
}
|
||
}
|
||
|
||
int child_pid;
|
||
do {
|
||
int stat_loc;
|
||
child_pid = wait(&amp;stat_loc);
|
||
} while (child_pid &lt; 0 &amp;&amp; errno == EINTR);
|
||
|
||
if (child_pid &lt; 0) {
|
||
perror(&quot;wait&quot;);
|
||
ret = 9;
|
||
}
|
||
|
||
return ret;
|
||
}</code></pre>
|
||
<p>The whole file can be downloaded from here: <a
|
||
href="rolling-mmap.c">rolling-mmap.c</a></p>
|
||
<p>Build it:</p>
|
||
<pre><code>cc -std=gnu11 -O2 -Wall -Wextra -o rolling-mmap rolling-mmap.c</code></pre>
|
||
<p>In order to verify the result I wrote a little helper script. Given 2
|
||
arguments representing the start and end addresses of the mapped region
|
||
of memory, it will print the number of read-write pages in that
|
||
region:</p>
|
||
<pre><code>linux-count-rw-maps.sh</code><code>#!/usr/bin/env sh
|
||
|
||
[ $# -ne 2 ] &amp;&amp; (echo &quot;usage: $0 &lt;start&gt; &lt;end&gt;&quot;; exit)
|
||
|
||
sed -E -e &#39;s/^([^-]+)-([^ ]+) /0x\1 0x\2 /&#39; | gawk -v start=&quot;$1&quot; -v end=&quot;$2&quot; &#39;BEGIN{c=0} strtonum($1) &gt;= strtonum(start) &amp;&amp; strtonum($2) &lt; strtonum(end) &amp;&amp; $3 ~ /^rw/{c+=(strtonum($2) - strtonum($1)) / 4096} END{print c}&#39;</code></pre>
|
||
<p>The result:</p>
|
||
<pre><code>$ ./rolling-mmap
|
||
0x7fa44f494000 0x7fa45f27c000
|
||
$ &lt;saved-maps.txt ./linux-count-rw-maps.sh 0x7fa44f494000 0x7fa45f27c000
|
||
1
|
||
$ for f in saved-maps-*.txt; do &lt;&quot;$f&quot; ./linux-count-rw-maps.sh 0x7fa44f494000 0x7fa45f27c000; done
|
||
1
|
||
1
|
||
4
|
||
2
|
||
2
|
||
1
|
||
1
|
||
2
|
||
2
|
||
4
|
||
0
|
||
1
|
||
2
|
||
3
|
||
1
|
||
2
|
||
2
|
||
2
|
||
1
|
||
3</code></pre>
|
||
<p>Well, that’s odd. Remember, <strong>the mapped region always has
|
||
exactly 1 or 2 pages of memory with read-write permissions.</strong> And
|
||
yet according to those copies of <code>/proc/[pid]/maps</code> sometimes
|
||
there were 4, sometimes 3, sometimes 0.</p>
|
||
<h2>Alternative: FreeBSD</h2>
|
||
<p>Now let’s look at what result we may get on a system that uses a
|
||
different API for fetching the same information. The FreeBSD
|
||
<code>libprocstat</code> library provides <a
|
||
href="https://cgit.freebsd.org/src/tree/lib/libprocstat/libprocstat.c?id=a880104a21bf41ebbb4ead26e6d4adda32bad76c#n1937"><code>procstat_getvmmap()</code></a>,
|
||
which for running processes calls <code>kinfo_getvmmap()</code>:</p>
|
||
<pre><code>struct kinfo_vmentry *
|
||
procstat_getvmmap(struct procstat *procstat, struct kinfo_proc *kp,
|
||
unsigned int *cntp)
|
||
{
|
||
|
||
switch(procstat-&gt;type) {
|
||
case PROCSTAT_KVM:
|
||
warnx(&quot;kvm method is not supported&quot;);
|
||
return (NULL);
|
||
case PROCSTAT_SYSCTL:
|
||
return (kinfo_getvmmap(kp-&gt;ki_pid, cntp));
|
||
case PROCSTAT_CORE:
|
||
return (kinfo_getvmmap_core(procstat-&gt;core, cntp));
|
||
default:
|
||
warnx(&quot;unknown access method: %d&quot;, procstat-&gt;type);
|
||
return (NULL);
|
||
}
|
||
}</code></pre>
|
||
<p><a
|
||
href="https://cgit.freebsd.org/src/tree/lib/libutil/kinfo_getvmmap.c?id=a880104a21bf41ebbb4ead26e6d4adda32bad76c#n10"><code>kinfo_getvmmap()</code></a>
|
||
in turn calls <code>sysctl</code> twice:</p>
|
||
<pre><code>struct kinfo_vmentry *
|
||
kinfo_getvmmap(pid_t pid, int *cntp)
|
||
{
|
||
int mib[4];
|
||
int error;
|
||
int cnt;
|
||
size_t len;
|
||
char *buf, *bp, *eb;
|
||
struct kinfo_vmentry *kiv, *kp, *kv;
|
||
|
||
*cntp = 0;
|
||
len = 0;
|
||
mib[0] = CTL_KERN;
|
||
mib[1] = KERN_PROC;
|
||
mib[2] = KERN_PROC_VMMAP;
|
||
mib[3] = pid;
|
||
|
||
error = sysctl(mib, nitems(mib), NULL, &amp;len, NULL, 0);
|
||
if (error)
|
||
return (NULL);
|
||
len = len * 4 / 3;
|
||
buf = malloc(len);
|
||
if (buf == NULL)
|
||
return (NULL);
|
||
error = sysctl(mib, nitems(mib), buf, &amp;len, NULL, 0);
|
||
if (error) {
|
||
free(buf);
|
||
return (NULL);
|
||
}
|
||
// code snipped -- this is followed by unpacking
|
||
// the data into structs expected by callers</code></pre>
|
||
<p>And now the consistency guarantees of this code. From the <a
|
||
href="https://man.freebsd.org/cgi/man.cgi?query=sysctl&amp;apropos=0&amp;sektion=3&amp;manpath=FreeBSD+14.1-RELEASE+and+Ports&amp;arch=default&amp;format=html"><code>sysctl(3)</code>
|
||
manpage</a>:</p>
|
||
<blockquote>
|
||
<p>Unless explicitly noted below, sysctl() returns a consistent snapshot
|
||
of the data requested. Consistency is obtained by locking the
|
||
destination buffer into memory so that the data may be copied out
|
||
without blocking. Calls to sysctl() are serialized to avoid
|
||
deadlock.</p>
|
||
<p>[…]</p>
|
||
<p>The information is copied into the buffer specified by oldp. The size
|
||
of the buffer is given by the location specified by oldlenp before the
|
||
call, and that location gives the amount of data copied after a
|
||
successful call and after a call that returns with the error code
|
||
ENOMEM. If the amount of data available is greater than the size of the
|
||
buffer supplied, the call supplies as much data as fits in the buffer
|
||
provided and returns with the error code ENOMEM. If the old value is not
|
||
desired, oldp and oldlenp should be set to NULL.</p>
|
||
</blockquote>
|
||
<p>So the first call to <code>sysctl(3)</code> is to find out the size
|
||
of the data to be fetched. After that, <code>kinfo_getvmmap()</code>
|
||
allocates a buffer that’s a bit bigger (4/3 times) just in case the size
|
||
changes in the mean time. The second call fetches the actual data. If
|
||
the data is truncated, <code>sysctl(3)</code> will return an error and
|
||
set <code>errno</code> to <code>ENOMEM</code>. In that situation,
|
||
<code>kinfo_getvmmap()</code> is going to return <code>NULL</code>,
|
||
which is going to be forwarded by <code>procstat_getvmmap()</code> to
|
||
users of <code>libprocstat</code>. So <code>procstat_getvmmap()</code>
|
||
either returns <code>NULL</code> or consistent accurate data. No other
|
||
option.</p>
|
||
<p>Now time for a demonstration. The most natural way to write the
|
||
FreeBSD equivalent of what my little demo program does would be to use
|
||
<code>procstat_getvmmap()</code> directly and check the permission bits
|
||
in C. However, in order to make the comparison more direct, I also want
|
||
this data to be in text at the end and the easiest way to do it is to
|
||
shell out to <code>procstat</code>:</p>
|
||
<pre><code>void freebsd_copy_maps_to_file(const char* dst, pid_t pid) {
|
||
char pid_str[11] = {0};
|
||
snprintf(pid_str, (sizeof pid_str) - 1, &quot;%u&quot;, (unsigned) pid);
|
||
|
||
if (fork() == 0) {
|
||
int fd;
|
||
do {
|
||
fd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0644);
|
||
} while (fd &lt; 0 &amp;&amp; errno == EINTR);
|
||
|
||
if (fd &lt; 0) {
|
||
perror(&quot;open&quot;);
|
||
return;
|
||
}
|
||
|
||
// Redirect stdout to the output file.
|
||
if (dup2(fd, 1) &lt; 0) {
|
||
perror(&quot;dup2&quot;);
|
||
return;
|
||
}
|
||
close(fd);
|
||
|
||
execl(&quot;/usr/bin/procstat&quot;, &quot;procstat&quot;, &quot;vm&quot;, pid_str, NULL);
|
||
perror(&quot;exec procstat&quot;);
|
||
return;
|
||
}
|
||
|
||
int child_pid;
|
||
do {
|
||
int stat_loc;
|
||
child_pid = wait(&amp;stat_loc);
|
||
} while (child_pid &lt; 0 &amp;&amp; errno == EINTR);
|
||
|
||
if (child_pid &lt; 0) {
|
||
perror(&quot;wait&quot;);
|
||
}
|
||
}
|
||
|
||
#ifdef __FreeBSD__
|
||
#define copy_maps_to_file freebsd_copy_maps_to_file
|
||
#endif</code></pre>
|
||
<p>The FreeBSD <code>procstat</code> output is printed in a format which
|
||
is a bit different than <code>/proc/[pid]/maps</code> on Linux so the
|
||
script to parse it is also a bit different:</p>
|
||
<pre><code>freebsd-count-rw-maps.sh</code><code>#!/usr/bin/env sh
|
||
|
||
[ $# -ne 2 ] &amp;&amp; (echo &quot;usage: $0 &lt;start&gt; &lt;end&gt;&quot;; exit)
|
||
|
||
gawk -v start=&quot;$1&quot; -v end=&quot;$2&quot; &#39;BEGIN{c=0} strtonum($2) &gt;= strtonum(start) &amp;&amp; strtonum($2) &lt; strtonum(end) &amp;&amp; $4 ~ /^rw/{c+=(strtonum($3) - strtonum($2)) / 4096} END{print c}&#39;</code></pre>
|
||
<p>I have my FreeBSD box configured in such a way that one unprivileged
|
||
process can’t read the memory maps of another process, so here I’m going
|
||
to need to run the program with elevated privileges. The result:</p>
|
||
<pre><code>$ doas ./rolling-mmap
|
||
0x825f28000 0x835d10000
|
||
$ &lt;saved-maps.txt ./freebsd-count-rw-maps.sh 0x825f28000 0x835d10000
|
||
1
|
||
$ for f in saved-maps-*.txt; do &lt;&quot;$f&quot; ./freebsd-count-rw-maps.sh 0x825f28000 0x835d10000; done
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1
|
||
1</code></pre>
|
||
<p>Speaks for itself.</p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Debugging vtable corruption with mmap</title>
|
||
<link href="/notes/debugging-vtable-corruption-with-mmap.html"/>
|
||
<id>urn:uuid:89039ef2-435a-4fb0-95f8-60c7871f082a</id>
|
||
|
||
<published>2024-06-06T00:00:00Z</published>
|
||
|
||
<updated>2024-06-11T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>In the world of C++ programming memory corruption bugs are common.
|
||
Sometimes you can track down their source with ASAN, but more often then
|
||
not ASAN is not a practical solution given real-life constraints. Here
|
||
is a short demonstration of how one can instead tweak how objects of a
|
||
certain type are allocated in order to catch corruption of the vtable
|
||
pointer. Inspired by real-life events.</p>
|
||
<p>Let’s say we have a program of roughly this shape:</p>
|
||
<pre><code>a.hpp</code><code>#pragma once
|
||
|
||
class A {
|
||
public:
|
||
virtual ~A() = default;
|
||
virtual int GetInt() const = 0;
|
||
void PrintInt() const;
|
||
};
|
||
</code></pre>
|
||
<pre><code>a.cpp</code><code>#include &quot;a.hpp&quot;
|
||
|
||
#include &lt;stdio.h&gt;
|
||
|
||
void A::PrintInt() const {
|
||
int n = GetInt();
|
||
printf(&quot;%d\n&quot;, n);
|
||
}</code></pre>
|
||
<pre><code>b.hpp</code><code>#pragma once
|
||
|
||
#include &quot;a.hpp&quot;
|
||
|
||
class B : public A {
|
||
public:
|
||
int GetInt() const override;
|
||
};</code></pre>
|
||
<pre><code>b.cpp</code><code>#include &quot;b.hpp&quot;
|
||
|
||
int B::GetInt() const {
|
||
return 42;
|
||
}</code></pre>
|
||
<pre><code>test1.cpp</code><code>#include &quot;b.hpp&quot;
|
||
|
||
int main() {
|
||
A* a = new B;
|
||
void** vtable_ptr = (void**) a;
|
||
*vtable_ptr = (void*)0xdeadbeef;
|
||
a-&gt;PrintInt();
|
||
delete a;
|
||
}</code></pre>
|
||
<p>In such a short program the memory corruption is trivial to find and
|
||
unlikely to be made. But, let me assure you, this debugging story is
|
||
inspired by real events and in a real-life program the memory corruption
|
||
is much harder to find and more likely to be made.</p>
|
||
<p>To compile:</p>
|
||
<pre><code>g++ -std=c++17 -Wall -Wextra -Og -g -o test1 test1.cpp a.cpp b.cpp</code></pre>
|
||
<p>Now let’s run this program:</p>
|
||
<pre><code>$ ./test1
|
||
zsh: segmentation fault ./test1</code></pre>
|
||
<p>A crash.</p>
|
||
<h2>Finding the cause of the crash</h2>
|
||
<p>Let’s run it under a debugger. Here we do it live. In reality you’ll
|
||
probably only get a core dump, but in this instance a core dump would
|
||
also be entirely sufficient.</p>
|
||
<pre><code>$ gdb ./test1
|
||
--- GDB spam omitted ---
|
||
(gdb) r
|
||
Starting program: /home/yakubin/code/vtable-corruption/test1
|
||
|
||
Program received signal SIGSEGV, Segmentation fault.
|
||
0x0000555555555199 in A::PrintInt (this=0x55555556aeb0) at a.cpp:6
|
||
6 int n = GetInt();</code></pre>
|
||
<p>First step now is to determine what instruction causes the segfault.
|
||
In order to find out, we disassemble the instruction that the program
|
||
counter points to:</p>
|
||
<pre><code>(gdb) set disassembly-flavor intel
|
||
(gdb) x/i $pc
|
||
=&gt; 0x555555555199 &lt;_ZNK1A8PrintIntEv+7&gt;: call QWORD PTR [rax+0x10]</code></pre>
|
||
<p>Ok. It tries to call a function whose address is 16 bytes after the
|
||
address contained in the rax register. Where does the value of rax come
|
||
from? Let’s disassemble all instructions in current function until the
|
||
current one to get some context:</p>
|
||
<pre><code>(gdb) x/3i _ZNK1A8PrintIntEv
|
||
0x555555555192 &lt;_ZNK1A8PrintIntEv&gt;: sub rsp,0x8
|
||
0x555555555196 &lt;_ZNK1A8PrintIntEv+4&gt;: mov rax,QWORD PTR [rdi]
|
||
=&gt; 0x555555555199 &lt;_ZNK1A8PrintIntEv+7&gt;: call QWORD PTR [rax+0x10]</code></pre>
|
||
<p>It seems that rax contains a value loaded from the address stored in
|
||
rdi. This pattern – a read from memory, followed by another read from
|
||
memory displaced by a constant, followed by a call (on x86 the last two
|
||
are fused into one, but on load-store architectures like ARM they’re
|
||
separate) – always screams to me “vtable indirection”, i.e. a virtual
|
||
method call. The <code>mov</code> reads the address of the vtable from
|
||
the rdi register. The <code>call</code> reads the address of a virtual
|
||
method, which it would later jump to.</p>
|
||
<p>Another piece of corroborating evidence for this hypothesis is the
|
||
fact that the supposed vtable address is read from the rdi register,
|
||
which, according to the Unix System V AMD64 ABI, holds the first
|
||
function argument. In C++ <code>this</code> is implicitly passed as the
|
||
first argument and typically vtable address is stored at the beginning
|
||
of each object which has a vtable. We can check that indeed rdi holds
|
||
the value of <code>this</code>:</p>
|
||
<pre><code>(gdb) p/x this
|
||
$1 = 0x55555556aeb0
|
||
(gdb) p/x $rdi
|
||
$2 = 0x55555556aeb0</code></pre>
|
||
<p>Similar heuristics can be applied on other platforms based on cursory
|
||
familiarity with their ABIs.</p>
|
||
<p>Finally, we can inspect what the current vtable address is:</p>
|
||
<pre><code>(gdb) p/x *(void**)$rdi
|
||
$3 = 0xdeadbeef</code></pre>
|
||
<p>Alternatively:</p>
|
||
<pre><code>(gdb) p/x $rax
|
||
$4 = 0xdeadbeef</code></pre>
|
||
<p>That’s the value we put in our code to simulate memory
|
||
corruption.</p>
|
||
<h2>Finding the memory corruption</h2>
|
||
<p>We know some of our memory is corrupted, but we don’t know who did
|
||
it. To find out, we’ll use memory permissions. We can allocate our
|
||
objects in such a way that the vtable address is going to be stored in
|
||
read-only memory, while everything else will be in read-write memory.
|
||
This way if someone tries to overwrite it, the program will crash. So
|
||
the end result is going to be the same as before, but this time the
|
||
backtrace is going to show us who’s really at fault.</p>
|
||
<p>Memory permissions can be set with page granularity, so we’re going
|
||
to need two pages for each object (assuming each object fits in a single
|
||
page, which it should or else you have very big structs).</p>
|
||
<p>The code:</p>
|
||
<pre><code>test2.cpp</code><code>#include &lt;new&gt;
|
||
#include &lt;stdio.h&gt;
|
||
#include &lt;sys/mman.h&gt;
|
||
#include &lt;unistd.h&gt;
|
||
|
||
#include &quot;b.hpp&quot;
|
||
|
||
int main() {
|
||
long pagesize = sysconf(_SC_PAGESIZE);
|
||
|
||
// Map 2 pages with read-write permissions.
|
||
char* p = (char*) mmap(NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
|
||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||
if (p == MAP_FAILED) {
|
||
perror(&quot;mmap&quot;);
|
||
return 1;
|
||
}
|
||
|
||
// Calculate the address that is one pointer size before the end of
|
||
// the first page.
|
||
char* buf = p + pagesize - sizeof p;
|
||
|
||
// We use placement new operator to place the object in previously allocated
|
||
// memory, running its constructor, initialising the vtable address etc.
|
||
A* a = new (buf) B;
|
||
void** vtable_ptr = (void**) a;
|
||
|
||
// Make the first page read-only after the object is constructed
|
||
// (i.e. the vtable address is already written).
|
||
if (mprotect(p, pagesize, PROT_READ) != 0) {
|
||
perror(&quot;mprotect&quot;);
|
||
return 2;
|
||
}
|
||
|
||
*vtable_ptr = (void*)0xdeadbeef;
|
||
a-&gt;PrintInt();
|
||
|
||
// Make the first page read-write again before calling the destructor.
|
||
if (mprotect(p, pagesize, PROT_READ | PROT_WRITE) != 0) {
|
||
perror(&quot;mprotect&quot;);
|
||
return 3;
|
||
}
|
||
|
||
// Calling the destructor and freeing memory.
|
||
a-&gt;~A();
|
||
munmap(p, 2 * pagesize);
|
||
}</code></pre>
|
||
<p>Compile:</p>
|
||
<pre><code>g++ -std=c++17 -Wall -Wextra -Og -g -o test2 test2.cpp a.cpp b.cpp</code></pre>
|
||
<p>And this time gdb shows the line that corrupted the memory instead of
|
||
the one that crashed later because of it:</p>
|
||
<pre><code>(gdb) r
|
||
Starting program: /home/yakubin/code/vtable-corruption/test2
|
||
|
||
Program received signal SIGSEGV, Segmentation fault.
|
||
0x000055555555520f in main () at test2.cpp:35
|
||
35 *vtable_ptr = (void*)0xdeadbeef;</code></pre>
|
||
<h2>Watchpoints</h2>
|
||
<p>You could theoretically use GDB watchpoints for the same purpose,
|
||
but:</p>
|
||
<ol type="1">
|
||
<li>Each CPU supports only a limited number of hardware watchpoints –
|
||
e.g. amd64 supports 4. Once you set one more watchpoint, GDB emulates
|
||
watchpoints in software, single-stepping every instruction one at a
|
||
time. This makes reproduction of the issue unlikely, since your program
|
||
will cease to be functional in any way much earlier. So if we don’t know
|
||
ahead of time which of a large number of objects of a given type is
|
||
going to have its vtable pointer corrupted, this is not practical.
|
||
(There is the <code>rr</code> reverse debugger, but its range of
|
||
supported hardware platforms is so narrow that it could as well not
|
||
exist.)</li>
|
||
<li>To set watchpoints, you need to be live-debugging the issue. In
|
||
reality you’re probably not even present when the issue is reproduced
|
||
and all you get is a core dump. With the approach that I presented here
|
||
on the other hand, you don’t need to be present during reproduction and
|
||
the device where the issue is reproduced doesn’t even need to have gdb
|
||
or gdbserver installed. Your level of interference with the environment
|
||
is generally minimal.</li>
|
||
</ol>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Using external tools inside Docker containers</title>
|
||
<link href="/notes/external-tools-in-docker.html"/>
|
||
<id>urn:uuid:5d97930d-0e90-470b-94a7-affcc3b7f111</id>
|
||
|
||
<published>2024-05-27T00:00:00Z</published>
|
||
|
||
<updated>2024-05-27T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>I often work with Docker containers which lack basic observability
|
||
tools like <code>ss</code> (the new Linux <code>netstat</code>).
|
||
Luckily, thanks to <code>nsenter</code>, it’s possible to use programs
|
||
from the host inside containers.</p>
|
||
<p>Let’s say I started an Ubuntu container:</p>
|
||
<pre><code>$ docker container ls
|
||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||
91c5c431ebb0 ubuntu:20.04 &quot;/bin/bash&quot; 5 minutes ago Up 5 minutes agitated_cohen</code></pre>
|
||
<p>First we need to get the PID of the main process within the
|
||
container:</p>
|
||
<pre><code>$ docker inspect -f &#39;{{.State.Pid}}&#39; 91c5c431ebb0
|
||
17802</code></pre>
|
||
<p>Now we can use <code>nsenter</code> to run a command inside the
|
||
network namespace (<code>-n</code> flag) of the container:</p>
|
||
<pre><code>$ sudo nsenter -t 17802 -n ss -lntp
|
||
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
|
||
LISTEN 0 1 0.0.0.0:80 0.0.0.0:* users:((&quot;nc&quot;,pid=18381,fd=3))</code></pre>
|
||
<p>Putting it all together:</p>
|
||
<pre><code>$ sudo nsenter -t &quot;$(docker inspect -f &#39;{{.State.Pid}}&#39; 91c5c431ebb0)&quot; -n ss -lntp
|
||
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
|
||
LISTEN 0 1 0.0.0.0:80 0.0.0.0:* users:((&quot;nc&quot;,pid=18381,fd=3))</code></pre>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Windows UTC clock</title>
|
||
<link href="/notes/windows-utc-clock.html"/>
|
||
<id>urn:uuid:7f26868a-a5f9-4007-8644-badb2dbb9ae7</id>
|
||
|
||
<published>2024-05-14T00:00:00Z</published>
|
||
|
||
<updated>2024-05-14T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>If you use Windows along with any other OS on the same computer in a
|
||
dual-boot setup, you will run into the issue that, each time you boot
|
||
Windows after using another OS, or boot another OS after using Windows,
|
||
the system clock will show incorrect time until NTP corrects it.</p>
|
||
<p>This is because Windows interprets the value stored in the hardware
|
||
real-time clock as local time, while every other OS interprets it as UTC
|
||
time. So after boot each OS reads the value and interprets it relative
|
||
to the wrong timezone, and then after NTP synchronisation it writes time
|
||
relative to a different timezone than the other OS expects.</p>
|
||
<p>To fix the issue, run the following command in Administrator’s
|
||
Powershell:</p>
|
||
<pre><code>Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation -Name RealTimeIsUniversal -Value 1 -Type DWord -Force</code></pre>
|
||
<p>It will change an entry in the Windows Registry, convincing Windows
|
||
to treat the value stored by the real-time clock as UTC time.</p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Archived links</title>
|
||
<link href="/notes/archived-links.html"/>
|
||
<id>urn:uuid:9d38ab97-cda2-44a0-bf8f-08b659de22f7</id>
|
||
|
||
<published>2023-05-13T00:00:00Z</published>
|
||
|
||
<updated>2025-02-20T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p><a href="https://dwheeler.com/essays/fixing-unix-linux-filenames.html">Fixing
|
||
Unix/Linux/POSIX Filenames: Control Characters (such as Newline),
|
||
Leading Dashes, and Other Problems</a>
|
||
(<a href="https://web.archive.org/web/20250130122641/https://dwheeler.com/essays/fixing-unix-linux-filenames.html">archive</a>)</p>
|
||
<p><a href="https://pvk.ca/Blog/2012/07/30/binary-search-is-a-pathological-case-for-caches/">Binary
|
||
search is a pathological case for caches</a>
|
||
(<a href="https://web.archive.org/web/20250206211110/https://www.pvk.ca/Blog/2012/07/30/binary-search-is-a-pathological-case-for-caches/">archive</a>)</p>
|
||
<p><a href="https://papers.freebsd.org/2006/bsdcan/evans-jemalloc.files/evans-jemalloc-paper.pdf">A
|
||
Scalable Concurrent malloc(3) Implementation for FreeBSD</a>
|
||
(<a href="https://web.archive.org/web/20241115215529/https://papers.freebsd.org/2006/bsdcan/evans-jemalloc.files/evans-jemalloc-paper.pdf">archive</a>)</p>
|
||
<p><a href="https://www.ryanjuckett.com/printing-floating-point-numbers/">Printing
|
||
Floating-Point Numbers</a>
|
||
(<a href="https://web.archive.org/web/20241213214811/https://www.ryanjuckett.com/printing-floating-point-numbers/">archive</a>)</p>
|
||
<p><a href="https://www.informit.com/articles/article.aspx?p=1390172">The
|
||
Failure of the GPL by David Chisnall</a>
|
||
(<a href="https://web.archive.org/web/20240612221434/https://www.informit.com/articles/article.aspx?p=1390172">archive</a>)</p>
|
||
<p><a href="https://lemire.me/blog/2016/06/30/fast-random-shuffling/">Fast
|
||
random shuffling</a>
|
||
(<a href="http://web.archive.org/web/20231207131657/https://lemire.me/blog/2016/06/30/fast-random-shuffling/">archive</a>)</p>
|
||
<p><a href="https://www.pcg-random.org/posts/bounded-rands.html">Efficiently
|
||
Generating a Number in a Range</a>
|
||
(<a href="http://web.archive.org/web/20240913190638/https://www.pcg-random.org/posts/bounded-rands.html">archive</a>)</p>
|
||
<p><a href="https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/">Generating
|
||
random numbers using C++ standard library: the problems</a>
|
||
(<a href="https://web.archive.org/web/20241213221133/https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/">archive</a>)</p>
|
||
<p><a href="https://man.freebsd.org/cgi/man.cgi?query=knockd&apropos=0&sektion=0&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html">Port
|
||
knocking (get rid of noise from sshd logs)</a>
|
||
(<a href="https://web.archive.org/web/20240605232217/https://man.freebsd.org/cgi/man.cgi?query=knockd&apropos=0&sektion=0&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html">archive</a>)</p>
|
||
<p><a href="https://lwn.net/Articles/276782/">20-part linker essay by
|
||
Ian Lance Taylor</a>
|
||
(<a href="https://web.archive.org/web/20240424081856/https://lwn.net/Articles/276782/">archive</a>)</p>
|
||
<p><a href="https://www.scs.stanford.edu/~dm/blog/va-opt.html">Recursive
|
||
macros with C++20 __VA_OPT__</a>
|
||
(<a href="https://web.archive.org/web/20240415055231/https://www.scs.stanford.edu/~dm/blog/va-opt.html">archive</a>)</p>
|
||
<p><a href="https://brendangregg.com/blog/2015-03-12/freebsd-offcpu-flame-graphs.html">FreeBSD
|
||
Off-CPU Flame Graphs</a>
|
||
(<a href="https://web.archive.org/web/20240224225723/https://www.brendangregg.com/blog/2015-03-12/freebsd-offcpu-flame-graphs.html">archive</a>)</p>
|
||
<p><a href="https://bford.info/pub/net/p2pnat/index.html">Peer-to-Peer
|
||
Communication Across NATs</a>
|
||
(<a href="https://web.archive.org/web/20221207090527/https://bford.info/pub/net/p2pnat/index.html">archive</a>)</p>
|
||
<p><a href="https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/coroutines-philosophy/">Philosophy
|
||
of coroutines</a>
|
||
(<a href="https://web.archive.org/web/20240202062134/https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/coroutines-philosophy/">archive</a>)</p>
|
||
<p><a href="https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html">Things
|
||
UNIX can do atomically</a>
|
||
(<a href="https://web.archive.org/web/20240229021849/https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html">archive</a>)</p>
|
||
<p><a href="https://mmapped.blog/posts/23-numeric-tower-fiasco">The
|
||
numeric tower fiasco</a>
|
||
(<a href="https://web.archive.org/web/20240530072613/https://mmapped.blog/posts/23-numeric-tower-fiasco">archive</a>)</p>
|
||
<hr/>
|
||
<p>Somehow I got nerd-sniped into reading not just one, but three
|
||
articles on fixed-point sine approximation.</p>
|
||
<p><a href="https://www.nullhardware.com/blog/fixed-point-sine-and-cosine-for-embedded-systems/">5th
|
||
Order Polynomial Fixed-Point Sine Approximation</a>
|
||
(<a href="https://web.archive.org/web/20230611005525/https://www.nullhardware.com/blog/fixed-point-sine-and-cosine-for-embedded-systems/">archive</a>)</p>
|
||
<p><a href="https://www.coranac.com/2009/07/sines/">Another fast
|
||
fixed-point sine approximation</a>
|
||
(<a href="https://web.archive.org/web/20240211112404/https://www.coranac.com/2009/07/sines/">archive</a>)</p>
|
||
<p><a href="https://web.archive.org/web/20160512180550/http://console-dev.de/wordpress/?p=138">Nintendo
|
||
DS: Sine approximation using fixed point math</a></p>
|
||
<hr/>
|
||
<p><a href="https://swtch.com/~rsc/regexp/regexp1.html">Regex#1: Regular
|
||
Expression Matching Can Be Simple And Fast</a>
|
||
(<a href="https://web.archive.org/web/20250213044918/https://swtch.com/~rsc/regexp/regexp1.html">archive</a>)</p>
|
||
<p><a href="https://swtch.com/~rsc/regexp/regexp2.html">Regex#2: Regular
|
||
Expression Matching: the Virtual Machine Approach</a>
|
||
(<a href="https://web.archive.org/web/20250124121122/https://swtch.com/~rsc/regexp/regexp2.html">archive</a>)</p>
|
||
<p><a href="https://swtch.com/~rsc/regexp/regexp3.html">Regex#3: Regular
|
||
Expression Matching in the Wild</a>
|
||
(<a href="https://web.archive.org/web/20250211004719/https://swtch.com/~rsc/regexp/regexp3.html">archive</a>)</p>
|
||
<p><a href="https://swtch.com/~rsc/regexp/regexp4.html">Regex#4: Regular
|
||
Expression Matching with a Trigram Index</a>
|
||
(<a href="https://web.archive.org/web/20250213081532/https://swtch.com/~rsc/regexp/regexp4.html">archive</a>)</p>
|
||
<hr/>
|
||
<p><a href="https://carter.sande.duodecima.technology/javascript-page-navigation/">Browsers
|
||
are pretty good at loading pages, it turns out</a></p>
|
||
<p><a href="https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html">GNU
|
||
Parted: Solving the dreaded “The resulting partition is not properly
|
||
aligned for best performance”</a>
|
||
(<a href="https://web.archive.org/web/20250106141555/https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html">archive</a>)</p>
|
||
<p><a href="https://dougallj.github.io/applecpu/firestorm.html">Apple M1
|
||
microarchitecture documentation</a>
|
||
(<a href="https://web.archive.org/web/20240521005242/https://dougallj.github.io/applecpu/firestorm.html">archive</a>)</p>
|
||
<p><a href="https://graphics.stanford.edu/~seander/bithacks.html">Bit
|
||
Twiddling Hacks</a>
|
||
(<a href="https://web.archive.org/web/20240526115215/http://graphics.stanford.edu/~seander/bithacks.html">archive</a>)</p>
|
||
<p><a href="https://www.researchgate.net/publication/2809440_Using_de_Bruijn_Sequences_to_Index_a_1_in_a_Computer_Word">Using
|
||
de Bruijn Sequences to Index a 1 in a Computer Word</a></p>
|
||
<p><a href="https://outerproduct.net/2021-02-13_att-asm.html">Why no one
|
||
should use the AT&amp;T syntax ever, for any reason, under any
|
||
circumstances</a>
|
||
(<a href="https://web.archive.org/web/20250201103905/https://outerproduct.net/2021-02-13_att-asm.html">archive</a>)</p>
|
||
<p><a href="https://lore.kernel.org/lkml/20040923234520.GA7303@pclin040.win.tue.nl/">Re:
|
||
[PATCH] oom_pardon, aka don’t kill my xlock</a>
|
||
(<a href="https://web.archive.org/web/20231211101343/https://lore.kernel.org/lkml/20040923234520.GA7303@pclin040.win.tue.nl/">archive</a>)</p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Atomic site updates</title>
|
||
<link href="/notes/atomic-site-updates.html"/>
|
||
<id>urn:uuid:99b11ccd-fae6-4565-9bf8-0f962d7e9d18</id>
|
||
|
||
<published>2023-01-16T00:00:00Z</published>
|
||
|
||
<updated>2024-04-19T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>Whenever I have new photos to add to my website, it takes a while for
|
||
rsync to upload them. It leaves a short time window, during which
|
||
loading my website used to result in it being loaded only partially,
|
||
with placeholders for photos which failed to load, because the HTML got
|
||
updated before the new photos were uploaded. To solve this issue, I
|
||
decided to dig into how to atomically update a static site. It turns out
|
||
to be pretty easy.</p>
|
||
<p>The first step is to make the webroot a symlink. Neither Caddy, nor
|
||
Nginx cache the canonical path this symlink resolves to, which is very
|
||
fortunate. You place one version of your website in a directory next to
|
||
it and point the symlink at that directory. When you want to update the
|
||
website, you upload it into yet another directory next to it, create a
|
||
new symlink, which points to the new directory, and overwrite the
|
||
original symlink with the new one, using the <code>rename()</code>
|
||
syscall (which is atomic). You then delete the old directory.</p>
|
||
<p>To optimise the upload itself, you may use the rsync
|
||
<code>--link-dest</code> option to avoid transferring, or indeed even
|
||
writing new files, when they’re unchanged from the previous version.
|
||
Instead rsync will create hardlinks to the old files in the new
|
||
directory. It makes the transfer faster and avoids a temporary doubling
|
||
of disk use.</p>
|
||
<p>Now the code.</p>
|
||
<pre><code>Caddyfile</code><code>yakubin.com, www.yakubin.com {
|
||
root * /website/current
|
||
file_server
|
||
}</code></pre>
|
||
<pre><code>$ ls -l /website
|
||
total 8
|
||
drwxr-xr-x 6 yakubin yakubin 512 Jan 15 11:22 I7wyFs
|
||
lrwxr-xr-x 1 yakubin yakubin 6 Jan 15 11:22 current -&gt; I7wyFs
|
||
-rwxr-xr-x 1 yakubin yakubin 180 Jan 6 01:45 switch.sh</code></pre>
|
||
<pre><code>/website/switch.sh</code><code>#!/usr/bin/env sh
|
||
|
||
set -euxo pipefail
|
||
|
||
ln -s &quot;$1&quot; new-current
|
||
mv -fh new-current current # If you&#39;re on Linux, replace &quot;-fh&quot; with &quot;-fT&quot;
|
||
|
||
# Remove all directories except the one with the current website version
|
||
find . -mindepth 1 -maxdepth 1 -type d | grep -Fxv &quot;./$(readlink current)&quot; | xargs rm -rf</code></pre>
|
||
<p>FreeBSD’s <code>mv</code> has the <code>-h</code> option, which is
|
||
documented in its man page as follows:</p>
|
||
<pre><code>-h If the target operand is a symbolic link to a directory, do not
|
||
follow it. This causes the mv utility to rename the file source
|
||
to the destination path target rather than moving source into the
|
||
directory referenced by target.</code></pre>
|
||
<p>On Linux the same thing is done with <code>-T</code>.</p>
|
||
<p>And now the upload script. It accepts a path to a local directory
|
||
with the new website version as its first and only command line
|
||
argument:</p>
|
||
<pre><code>#!/usr/bin/env sh
|
||
|
||
set -eux
|
||
|
||
# Setting pipefail breaks this script.
|
||
|
||
directory=&quot;$(&lt;/dev/urandom LC_ALL=C tr -cd &#39;A-Za-z0-9&#39; | head -c 6)&quot;
|
||
rsync -crlDivz --link-dest=../current/ &quot;$1&quot;/ yakubin.com:&quot;/website/$directory/&quot;
|
||
ssh yakubin.com &quot;cd /website; ./switch.sh $directory&quot;</code></pre>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Reserve and commit</title>
|
||
<link href="/notes/reserve-and-commit.html"/>
|
||
<id>urn:uuid:cf3298a6-76d3-4667-8c34-81f6f4dbad48</id>
|
||
|
||
<published>2023-01-14T00:00:00Z</published>
|
||
|
||
<updated>2024-06-11T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p>This page contains a bit of maths. To view it correctly you need a
|
||
web browser which supports MathML. That means either Firefox, Safari or
|
||
Chrome. Chrome should be in version 109 or later.</p>
|
||
<p>I’ve been working on a yet-unpublished side project in Rust and
|
||
decided to use a bump allocator provided by <code>bumpalo</code> to
|
||
simplify lifetimes and improve performance of my code. Generally, making
|
||
lots of micro-allocations and then freeing them one by one is far from
|
||
optimal, when you can instead group them into larger allocations and
|
||
free all at once. In the same way, a large number of little objects with
|
||
their own separate lifetimes is a lot harder to keep track of
|
||
conceptually than when their lifetimes are grouped into just a few
|
||
longer ones. Fewer, longer lifetimes also make working with the
|
||
borrow-checker easier.</p>
|
||
<p>In broad strokes, <code>bumpalo</code> provides memory by allocating
|
||
chunks of memory from the OS and keeping track of how many bytes in the
|
||
last chunk are already used. When you request
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
bytes from <code>bumpalo</code>, it gives you memory from the free
|
||
portion of the last chunk and increments its counter of used bytes. When
|
||
there isn’t enough space in the last chunk, it allocates another one and
|
||
does the same.</p>
|
||
<p>Works well enough. However:</p>
|
||
<ol type="1">
|
||
<li>It involves much more memory management code than I’d like.</li>
|
||
<li>It fragments memory over disparate chunks, where there’s likely
|
||
always going to be unused space left at the end of each chunk.</li>
|
||
<li>Freeing <code>Bump</code> takes linear time relative to the number
|
||
of chunks.</li>
|
||
<li>Reserving memory upfront by setting capacity avoids fragmentation
|
||
into chunks, but it takes that amount of memory from the OS, regardless
|
||
of whether all that memory is actually going to be used. That means the
|
||
user needs to have very precise upfront expectations of memory use if
|
||
they want to avoid fragmentation by reserving. Whether it’s difficult
|
||
and fragile, or impossible varies on a case-by-case basis.</li>
|
||
</ol>
|
||
<p>There is a way to implement a bump allocator without using chunks,
|
||
and without taking unnecessary memory from the OS. I’m going to describe
|
||
it later down this page, but first I want to establish a data structure
|
||
which could serve as a benchmark of whether that allocator is any
|
||
good.</p>
|
||
<p>In this text I’m going to use C++, because it’s the official language
|
||
of Windows APIs, it makes it easy to access C APIs on other platforms as
|
||
well, and it’s more established than Rust, so talking about data
|
||
structures provided by the C++ standard library is going to meet with
|
||
less suspicion than doing the same with the Rust standard library.</p>
|
||
<h2>Dynamic arrays</h2>
|
||
<p>Dynamic arrays are arrays which can change their length. A typical
|
||
implementation of this data structure, such as <code>std::vector</code>,
|
||
when it isn’t being modified, behaves like a normal array, meaning that
|
||
it holds its elements in a contiguous memory buffer.
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>N</mi><annotation encoding="application/x-tex">N</annotation></semantics></math>th
|
||
element (starting from
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>)
|
||
starts at
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">N \times M</annotation></semantics></math>
|
||
bytes after the start of
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>th
|
||
element, when each element is
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>M</mi><annotation encoding="application/x-tex">M</annotation></semantics></math>
|
||
bytes long. Length (reported by <code>size()</code>) and capacity
|
||
(<code>capacity()</code>) are stored on the side. Length is the number
|
||
of elements currently stored, while capacity is the number of elements
|
||
<code>std::vector</code> is capable of storing in the current
|
||
allocation.
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>≤</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} \le \mathit{Capacity}</annotation></semantics></math>.</p>
|
||
<p>To store its elements, <code>std::vector</code> asks the allocator
|
||
for a buffer big enough to store all elements. When you append an
|
||
element to the end using <code>push_back()</code>,
|
||
<code>std::vector</code> checks whether the last allocation has enough
|
||
extra space to hold another element between the current last element and
|
||
the end of allocation. In other words, it checks whether
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>+</mo><mn>1</mn><mo>≤</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} + 1 \le \mathit{Capacity}</annotation></semantics></math>.
|
||
If yes, then it puts the new element right after the current last
|
||
element and updates the length by adding
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
to it.</p>
|
||
<p>If however
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>=</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} = \mathit{Capacity}</annotation></semantics></math>,
|
||
then there is no more space in the current allocation. In that case,
|
||
<code>std::vector</code> asks the allocator for another buffer, this
|
||
time of size
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>×</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">G\times\mathit{Capacity}</annotation></semantics></math>.
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>G</mi><annotation encoding="application/x-tex">G</annotation></semantics></math>
|
||
is called the <em>growth factor</em>. <code>libstdc++</code> and
|
||
<code>libc++</code> use
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">G=2</annotation></semantics></math>.
|
||
MSVC uses
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mfrac><mn>3</mn><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex">G=\frac{3}{2}</annotation></semantics></math>.</p>
|
||
<p>After allocating the new bigger buffer, elements from the old buffer
|
||
are copied to the new one and the new element is put after them. Old
|
||
buffer is freed, length is incremented by
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>,
|
||
and capacity is set to the size of the newly-allocated buffer.</p>
|
||
<h3>Performance Cost</h3>
|
||
<h4>Time</h4>
|
||
<p>If the <code>std::vector</code> had
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>N</mi><annotation encoding="application/x-tex">N</annotation></semantics></math>
|
||
elements before the whole operation, all of that required
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(N)</annotation></semantics></math>
|
||
steps (due to copying). However, this copying doesn’t happen at every
|
||
<code>push_back()</code>. It happens at every
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mi>G</mi><mi>N</mi></msup><annotation encoding="application/x-tex">G^N</annotation></semantics></math>th
|
||
<code>push_back()</code>. In other cases this method takes constant
|
||
time.</p>
|
||
<p>If we consider a sequence of
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
<code>push_back()</code> calls, then they are going to include
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">\lceil\log_{G}n\rceil</annotation></semantics></math>
|
||
calls which copy the underlying buffer, and
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">n - \lceil\log_{G}n\rceil</annotation></semantics></math>
|
||
calls which do not. All the copies taken together are going to take
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mo>+</mo><mi>G</mi><mo>+</mo><msup><mi>G</mi><mn>2</mn></msup><mo>+</mo><mi>⋯</mi><mo>+</mo><msup><mi>G</mi><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow></msup><mo>=</mo><mfrac><mrow><msup><mi>G</mi><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow></msup><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>≈</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac></mrow><annotation encoding="application/x-tex">1 + G + G^2 + \cdots + G^{\lceil\log_{G}n\rceil} = \frac{G^{\lceil\log_{G}n\rceil} - 1}{G - 1} \approx \frac{n - 1}{G - 1}</annotation></semantics></math>
|
||
steps. The copy-less <code>push_back()</code> calls taken together are
|
||
going to take
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">n - \lceil\log_{G}n\rceil</annotation></semantics></math>
|
||
steps. Adding it together we get that all <code>push_back()</code> calls
|
||
together cost us
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(\frac{n - 1}{G - 1} + n - \lceil\log_{G}n\rceil)</annotation></semantics></math>.</p>
|
||
<p>There are
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
<code>push_back()</code> calls, so on average <code>push_back()</code>
|
||
takes constant time:</p>
|
||
<center>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn><mo>+</mo><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mn>2</mn><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>2</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(\frac{\frac{n - 1}{G - 1} + n - \lceil\log_{G}n\rceil}{n}) = O(\frac{\frac{n - 1}{G - 1} + n}{n}) = O(\frac{n - 1 + n}{n}) = O(\frac{2n}{n}) = O(2) = O(1)</annotation></semantics></math>
|
||
</center>
|
||
<p>That’s why it’s sometimes said that
|
||
<code>std::vector::push_back()</code> takes constant time
|
||
<em>amortised</em> – the cost of every expensive
|
||
<code>push_back()</code>, which copies
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
elements, is amortised over
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
previous <code>push_back()</code>s, each of which took constant
|
||
time.</p>
|
||
<p>However, the latency of <code>push_back()</code> is pretty bad, as
|
||
demonstrated by the measurements later in this note.</p>
|
||
<h4>Space</h4>
|
||
<p>Between allocating the new buffer and discarding the old one after
|
||
copying it, the two buffers occupied
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo>+</mo><mi>G</mi><mo>×</mo><mi>N</mi><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>M</mi><mo>=</mo><mrow><mo stretchy="true" form="prefix">(</mo><mi>G</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">(N + G \times N) \times M = (G+1) \times N \times M</annotation></semantics></math>
|
||
bytes of memory, which means that in order to get an
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>+</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">N+1</annotation></semantics></math>-element
|
||
<code>std::vector</code>, we need almost
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>+</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">G+1</annotation></semantics></math>
|
||
times as much memory as is needed for our elements. That’s
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
times for <code>libstdc++</code> and <code>libc++</code>, and
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2.5</mn><annotation encoding="application/x-tex">2.5</annotation></semantics></math>
|
||
times for MSVC. It’s a short time window, so most of the time it isn’t
|
||
terrible, but sometimes we may not have this much memory available to
|
||
us.</p>
|
||
<p>After <code>push_back()</code> finishes, we’re using
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>×</mo><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">G \times N \times M</annotation></semantics></math>
|
||
bytes to store our
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">(N+1) \times M</annotation></semantics></math>,
|
||
which gives us the lower bound for space utilisation. For
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mfrac><mn>3</mn><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex">G=\frac{3}{2}</annotation></semantics></math>,
|
||
space utilisation of <code>std::vector</code> is in the range
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">(</mo><mfrac><mn>2</mn><mn>3</mn></mfrac><mo>,</mo><mn>1</mn><mo stretchy="false" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">(\frac{2}{3}, 1]</annotation></semantics></math>.
|
||
For
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">G=2</annotation></semantics></math>,
|
||
it is in the range
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">(</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mo>,</mo><mn>1</mn><mo stretchy="false" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">(\frac{1}{2}, 1]</annotation></semantics></math>.</p>
|
||
<p>Not terrible, not great.</p>
|
||
<h3>Complexity cost</h3>
|
||
<p>Due to all the copying, our program cannot depend on any elements
|
||
staying in one place for too long. If we want to refer to a string
|
||
stored in a <code>std::vector</code>, we cannot simply grab a
|
||
reference/pointer/<code>string_view</code> to it, as that could result
|
||
in a dangling reference/pointer after a <code>push_back()</code>
|
||
call.</p>
|
||
<p>We could work around this problem by grabbing index of the string in
|
||
that <code>std::vector</code>. However, that would mean that functions
|
||
operating on that string would need to operate on such indices instead
|
||
of references/pointers to strings, which in turn would mean that they
|
||
would either need to take the <code>std::vector</code> as another
|
||
argument, or that they would work only with strings from a selected
|
||
<code>std::vector</code>. That would make using those functions in
|
||
different contexts difficult. E.g. we wouldn’t be able to just pass a
|
||
string directly to those functions in tests (normal, or transient).</p>
|
||
<p>We also wouldn’t be able to easily refer to substrings without
|
||
copying them or creating a substring struct of the form
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">(</mo><mrow><mi>𝐼</mi><mi>𝑛</mi><mi>𝑑</mi><mi>𝑒</mi><mi>𝑥</mi><mi>𝑂</mi><mi>𝑓</mi><mi>𝑆</mi><mi>𝑡</mi><mi>𝑟</mi><mi>𝑖</mi><mi>𝑛</mi><mi>𝑔</mi></mrow><mo>,</mo><mrow><mi>𝑆</mi><mi>𝑡</mi><mi>𝑎</mi><mi>𝑟</mi><mi>𝑡</mi><mi>𝑃</mi><mi>𝑜</mi><mi>𝑠</mi></mrow><mo>,</mo><mrow><mi>𝐸</mi><mi>𝑛</mi><mi>𝑑</mi><mi>𝑃</mi><mi>𝑜</mi><mi>𝑠</mi></mrow><mo>,</mo><mrow><mi>𝑉</mi><mi>𝑒</mi><mi>𝑐</mi></mrow><mo stretchy="true" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">(\mathit{IndexOfString}, \mathit{StartPos}, \mathit{EndPos}, \mathit{Vec})</annotation></semantics></math>,
|
||
which is a lot more things to keep track of than just a plain
|
||
<code>std::string_view</code>, i.e. a
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">(</mo><mrow><mi>𝑃</mi><mi>𝑜</mi><mi>𝑖</mi><mi>𝑛</mi><mi>𝑡</mi><mi>𝑒</mi><mi>𝑟</mi><mi>𝑇</mi><mi>𝑜</mi><mi>𝑆</mi><mi>𝑡</mi><mi>𝑎</mi><mi>𝑟</mi><mi>𝑡</mi></mrow><mo>,</mo><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo stretchy="true" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">(\mathit{PointerToStart}, \mathit{Length})</annotation></semantics></math>.
|
||
And again, the functions operating on those structs would be confined to
|
||
operating only on those special objects instead of arbitrary
|
||
substrings.</p>
|
||
<p>Surely, there must be a way to make it all simpler and more
|
||
efficient?</p>
|
||
<h2>Virtual memory</h2>
|
||
<p>Let’s take a step back and ponder what it means to allocate memory on
|
||
a typical operating system these days. Essentially, we want to get
|
||
access to a region of RAM. That access is controlled by the OS and the
|
||
CPU using a <em>memory management unit</em> (MMU).</p>
|
||
<p>These components logically divide memory into <em>pages</em>. A page
|
||
usually spans
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>kiB
|
||
of memory. To address every byte in such a page we need
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mo>log</mo><mn>2</mn></msub><mn>4096</mn><mo>=</mo><mn>12</mn></mrow><annotation encoding="application/x-tex">\log_{2}4096 = 12</annotation></semantics></math>
|
||
bits, so we can treat the first
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>64</mn><mo>−</mo><mn>12</mn><mo>=</mo><mn>52</mn></mrow><annotation encoding="application/x-tex">64 - 12 = 52</annotation></semantics></math>
|
||
bits as index of the page itself. If we have an address and want to know
|
||
the index of the page holding the byte under that address, we only need
|
||
to perform a logical shift right on the address by 12 bits.</p>
|
||
<p>The operating system manages a <em>page table</em>, which
|
||
conceptually is a hash table from page indices to page indices and some
|
||
minimal metadata, such as permissions. (Due to space constraints on
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>-bit
|
||
systems, on most systems the hash table is actually nested.)</p>
|
||
<p>When a process reads from or writes to memory at an address, the CPU
|
||
fetches the hash table entry for that address, checks whether the
|
||
process has appropriate permissions and accesses the memory with the
|
||
page index replaced with the one stored in the value fetched from the
|
||
page table. If the process doesn’t have the appropriate permissions
|
||
however, the CPU will trigger a hardware page fault, which is going to
|
||
be caught by the OS and redirected to the process as a segfault
|
||
(<code>SIGSEGV</code> on POSIX systems<a href="#fn1"
|
||
class="footnote-ref" id="fnref1"
|
||
role="doc-noteref"><sup>1</sup></a>).</p>
|
||
<p>This arrangement creates two <em>address spaces</em>: virtual and
|
||
physical. The virtual address space consists of addresses the way
|
||
processes see them. The physical address space consists of addresses
|
||
directly referring to physical memory (RAM). Each of them is divided
|
||
into pages. The virtual address space is divided into <em>virtual
|
||
pages</em>, while the physical address space into <em>physical
|
||
pages</em>. The page table maintains a mapping from virtual to physical
|
||
pages. Each process lives in a separate virtual address space.</p>
|
||
<h2>Reserving vs committing memory</h2>
|
||
<p>When we write a program and want to be able to access a piece of
|
||
memory, we need to first ask the OS to update the page table. To create
|
||
a new mapping, we need to call <code>VirtualAlloc()</code> on Windows,
|
||
or <code>mmap()</code> on POSIX. Both of them accept an argument,
|
||
hinting which virtual address the new mapping should start at. If this
|
||
argument is null, the OS picks an address of its own choosing. Those
|
||
functions are what’s used underneath by <code>malloc()</code> from the C
|
||
standard library.</p>
|
||
<p>Looking at all that, maybe our dynamic array could allocate memory
|
||
page after page in contiguity? Each time we want to append a new
|
||
element, if we used up all the previously-allocated space, we’d just
|
||
call <code>VirtualAlloc()</code>/<code>mmap()</code> to give us another
|
||
virtual page directly after our existing allocation and continue
|
||
normally.</p>
|
||
<p>That sounds almost like a good plan, but there is no guarantee that
|
||
the virtual page right after our allocation isn’t already mapped. It
|
||
could be mapped before our process even started execution, or we could
|
||
have mapped it ourselves in a different place in code.</p>
|
||
<p>What we need is a way to tell the OS that a certain region of virtual
|
||
address space shouldn’t be mapped, unless we specifically ask for it
|
||
(using the address and length arguments of
|
||
<code>VirtualAlloc()</code>/<code>mmap()</code>). This way we can ensure
|
||
that when we need another virtual page mapped, it is available to us.
|
||
And when we don’t need it, we don’t use up scarce physical memory.</p>
|
||
<p><code>VirtualAlloc()</code> allows us to do just that. It separates
|
||
<em>reserving</em> memory from <em>committing</em> it. Reserving memory
|
||
is exactly what I described in the last paragraph: telling the OS not to
|
||
map virtual pages in a given address range, unless we specifically ask
|
||
for it. Committing memory is the act of mapping virtual pages to
|
||
physical pages. On Windows committed memory is counted towards the
|
||
<em>Working Set Size</em> (WSS) of a process, which is what’s presented
|
||
to the user in the Task Manager as the amount of memory a process
|
||
consumes.</p>
|
||
<p>While physical memory is scarce, virtual memory on
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>-bit
|
||
systems is abundant. On <code>amd64</code> systems we typically have
|
||
about
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>48</mn><annotation encoding="application/x-tex">48</annotation></semantics></math>
|
||
bits of virtual address space available, which amounts to
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mfrac><mn>1</mn><mn>4</mn></mfrac><annotation encoding="application/x-tex">\frac{1}{4}</annotation></semantics></math>PiB.
|
||
So while my PC has only
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>GiB
|
||
of RAM, I can reserve about
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16384</mn><annotation encoding="application/x-tex">16384</annotation></semantics></math>
|
||
times as much virtual memory.</p>
|
||
<h3>Lazy Overcommit</h3>
|
||
<p>On POSIX systems, such as Mac, FreeBSD and Linux which I’m going to
|
||
be using here, there is no explicit way to differentiate reserving
|
||
memory from committing it. However, those systems in a normal
|
||
configuration use <em>lazy overcommit</em>, i.e. when a process asks for
|
||
memory to be mapped, the operating system doesn’t update the page table
|
||
right away. Instead it tells the process that the mapping succeeded, and
|
||
when the process tries to access one of the virtual pages, which it was
|
||
led to believe is mapped, CPU generates a page fault, the OS catches it,
|
||
updates the page table and resumes execution of the process from the
|
||
instruction which triggered the page fault, as if nothing happened.
|
||
That’s why it’s called <em>lazy</em>.</p>
|
||
<p>In that setup, memory allocations done with <code>mmap()</code>
|
||
almost never fail (which would allow processes to handle the error
|
||
condition), even when the sum of memory requested with
|
||
<code>mmap()</code> is more than is available in the system (that’s why
|
||
it’s called <em>overcommit</em>). Instead the operating system waits
|
||
until after all allocations are made and processes actually try to use
|
||
the allocated memory.</p>
|
||
<p>When it turns out that the processes weren’t joking and they really
|
||
attempt to use all that memory, which is more than the physical memory
|
||
available, the operating system starts an out-of-memory (OOM) killer
|
||
which picks a process according to its own fancy and terminates it,
|
||
thereby sacrificing it on the altar of overcommit. It may not be the
|
||
process responsible for excessive memory consumption. It may be a
|
||
process critical to the security of your system, like your screen
|
||
locker. This is repeated, until the amount of memory that surviving
|
||
processes try to access doesn’t exceed the amount of physical memory
|
||
available. <a href="https://lwn.net/Articles/104185/">This is
|
||
stupid</a>.</p>
|
||
<p>However, in the absence of a proper reserve and commit API, it lets
|
||
us emulate reserve and commit using <code>mprotect()</code> calls,
|
||
preventing us from accessing pages of memory we didn’t explicitly
|
||
“commit” by disabling all permissions on those pages. When we want to
|
||
“commit” pages, we change their permissions to allow us to access them
|
||
and let lazy overcommit take care of the fact that the initial
|
||
<code>mmap()</code> call requested more memory than we may need and
|
||
possibly than is even available in the system.</p>
|
||
<p>As long as the system administrator didn’t disable overcommit. But
|
||
given that overcommit is expected on POSIX, applications in the POSIX
|
||
world in general aren’t written with expectation that memory allocations
|
||
can fail. So when overcommit is disabled, things are going to break
|
||
anyway.</p>
|
||
<h2>The code</h2>
|
||
<p>I’ll go over key parts of the code here, but omit other parts.
|
||
Complete code is available in its own <a
|
||
href="https://git.yakubin.com/reserve-and-commit/">git repository</a>.
|
||
If you find bugs, I do accept patches. <a
|
||
href="https://git.yakubin.com/reserve-and-commit/about/">README</a>
|
||
describes how to send them.</p>
|
||
<p>I’m going to first present the platform-specific parts of code, and
|
||
then follow them with platform-independent code. All platform-specific
|
||
code is in namespace <code>pal</code> (for <em>platform abstraction
|
||
layer</em>).</p>
|
||
<h3>Windows</h3>
|
||
<p>Apparently that’s how you declare the entry-point function on
|
||
Windows:</p>
|
||
<pre><code>#define DECL_MAIN int __cdecl wmain()</code></pre>
|
||
<p>For benchmarks I’ll want to prevent inlining in a couple places to
|
||
prevent the optimiser from knowing the value of a couple arguments
|
||
passed to benchmarking functions, which could influence the results.</p>
|
||
<pre><code>#define NOINLINE __declspec(noinline)</code></pre>
|
||
<p>Theoretically we should fetch page size with
|
||
<code>GetSystemInfo()</code>, but I want to keep the example code
|
||
simple, and on Windows it’s almost always going to be 4096 anyway:</p>
|
||
<pre><code>static constexpr size_t kPageSize = 0x1000;</code></pre>
|
||
<p>Reserving memory:</p>
|
||
<pre><code>inline void* MemReserve(size_t len) {
|
||
void* buf = VirtualAlloc(nullptr, len, MEM_RESERVE, PAGE_NOACCESS);
|
||
if (buf == nullptr) {
|
||
DWORD last_error = GetLastError();
|
||
std::cerr &lt;&lt; &quot;Reserving memory with VirtualAlloc failed. Error code: &quot; &lt;&lt; last_error &lt;&lt; std::endl;
|
||
return nullptr;
|
||
}
|
||
|
||
return buf;
|
||
}</code></pre>
|
||
<p>Committing memory:</p>
|
||
<pre><code>inline bool MemCommit(void* p, size_t len) {
|
||
void* committed = VirtualAlloc(p, len, MEM_COMMIT, PAGE_READWRITE);
|
||
if (committed == nullptr) {
|
||
DWORD last_error = GetLastError();
|
||
std::cerr &lt;&lt; &quot;Committing memory with VirtualAlloc failed. Error code: &quot; &lt;&lt; last_error &lt;&lt; std::endl;
|
||
return false;
|
||
}
|
||
|
||
return true;
|
||
}</code></pre>
|
||
<p>Freeing memory:</p>
|
||
<pre><code>inline void MemFree(void* p, size_t /*len*/) {
|
||
VirtualFree(p, 0, MEM_RELEASE);
|
||
}</code></pre>
|
||
<p>That’s all we need for memory allocation. Now, a couple functions for
|
||
the measurements done in benchmarks. First, peak memory use (working set
|
||
size):</p>
|
||
<pre><code>inline size_t GetPeakMemoryUse() {
|
||
PROCESS_MEMORY_COUNTERS mem;
|
||
bool res = GetProcessMemoryInfo(GetCurrentProcess(), &amp;mem, sizeof mem);
|
||
if (!res) {
|
||
DWORD last_error = GetLastError();
|
||
std::cerr &lt;&lt; &quot;GetProcessMemoryInfo failed. Error code: &quot; &lt;&lt; last_error &lt;&lt; std::endl;
|
||
return 0;
|
||
}
|
||
|
||
return mem.PeakWorkingSetSize;
|
||
}</code></pre>
|
||
<p>And the time the process spent on-CPU, adding time spent in user-mode
|
||
and in kernel-mode, in microseconds:</p>
|
||
<pre><code>inline uint64_t ConvertFiletimeToMicroseconds(FILETIME t) {
|
||
ULARGE_INTEGER li;
|
||
li.LowPart = t.dwLowDateTime;
|
||
li.HighPart = t.dwHighDateTime;
|
||
return static_cast&lt;uint64_t&gt;(li.QuadPart) / 10;
|
||
}
|
||
|
||
inline uint64_t GetCpuTime() {
|
||
FILETIME a, b, c, d;
|
||
if (GetProcessTimes(GetCurrentProcess(), &amp;a, &amp;b, &amp;c, &amp;d) != 0) {
|
||
auto kernel_time = ConvertFiletimeToMicroseconds(c);
|
||
auto user_time = ConvertFiletimeToMicroseconds(d);
|
||
return user_time + kernel_time;
|
||
} else {
|
||
std::cerr &lt;&lt; &quot;failed to get CPU time\n&quot;;
|
||
assert(false);
|
||
return 0;
|
||
}
|
||
}</code></pre>
|
||
<h3>POSIX</h3>
|
||
<p>Most of the code is common to all POSIX platforms with a couple tiny
|
||
differences handled with the preprocessor. Normally, I’d split them into
|
||
separate files, but that felt like too much ceremony than is necessary
|
||
for this little post.</p>
|
||
<p><code>main</code>:</p>
|
||
<pre><code>#define DECL_MAIN int main()</code></pre>
|
||
<p><code>NOINLINE</code>:</p>
|
||
<pre><code>#define NOINLINE __attribute__((noinline))</code></pre>
|
||
<p>I’m going to be working with FreeBSD and Linux on amd64, which use
|
||
4kiB pages, and Mac M1 which uses 16kiB pages (as all ARM-based
|
||
platforms from Apple do):</p>
|
||
<pre><code>static constexpr size_t kPageSize =
|
||
#if defined(__APPLE__) &amp;&amp; defined(__aarch64__)
|
||
0x4000
|
||
#else
|
||
0x1000
|
||
#endif
|
||
;</code></pre>
|
||
<p>Reserving memory. We call <code>mmap()</code> with
|
||
<code>PROT_NONE</code> to disable all permissions and add
|
||
<code>MAP_NORESERVE</code> flag, when it’s available (in practice it
|
||
means Linux), to opt into overcommit, when it’s in heuristic mode:</p>
|
||
<pre><code>inline void* MemReserve(size_t len) {
|
||
int flags = MAP_PRIVATE | MAP_ANONYMOUS;
|
||
|
||
#ifdef MAP_NORESERVE
|
||
// On Linux, guarantee lazy commit even if /proc/sys/vm/overcommit_memory is set to `heuristic` (0).
|
||
flags |= MAP_NORESERVE;
|
||
#endif
|
||
|
||
void* buf = mmap(nullptr, len, PROT_NONE, flags, -1, 0);
|
||
if (buf == MAP_FAILED) {
|
||
int saved_errno = errno;
|
||
std::cerr &lt;&lt; &quot;Reserving memory with mmap failed. Exit code: &quot; &lt;&lt; saved_errno &lt;&lt; std::endl;
|
||
return nullptr;
|
||
}
|
||
|
||
return buf;
|
||
}</code></pre>
|
||
<p>Commit by adding read and write permissions:</p>
|
||
<pre><code>inline bool MemCommit(void* p, size_t len) {
|
||
if (mprotect(p, len, PROT_READ | PROT_WRITE) != 0) {
|
||
int saved_errno = errno;
|
||
std::cerr &lt;&lt; &quot;Committing memory with mprotect failed. Exit code: &quot; &lt;&lt; saved_errno &lt;&lt; std::endl;
|
||
return false;
|
||
}
|
||
|
||
return true;
|
||
}</code></pre>
|
||
<p>Free:</p>
|
||
<pre><code>inline void MemFree(void* p, size_t len) {
|
||
if (munmap(p, len) != 0) {
|
||
int saved_errno = errno;
|
||
std::cerr &lt;&lt; &quot;Failed to unmap memory. Exit code: &quot; &lt;&lt; saved_errno &lt;&lt; std::endl;
|
||
}
|
||
}</code></pre>
|
||
<p>On POSIX platforms <em>Resident Set Size</em> (RSS) is what’s
|
||
interpreted as “memory use”. To measure that, we’re going to use
|
||
<code>getrusage()</code> and here is where POSIX lets us down. Everyone
|
||
has this function, but everyone interprets the meaning of the returned
|
||
<code>ru_maxrss</code> differently. On FreeBSD and Linux it’s in
|
||
kilobytes. On Mac it’s in bytes. And curiously on illumos it’s in pages.
|
||
The similarities are sufficient to lull you into a sense that everything
|
||
is working fine when porting: everything has the same names, everything
|
||
compiles, but then the interpretation of results is completely
|
||
different. The only reason I noticed it is because suddenly results
|
||
differed by several orders of magnitude between Mac and FreeBSD/Linux.
|
||
Others may not be this fortunate. Reading the Linux and FreeBSD man
|
||
pages, it wasn’t clear to me whether by kilobytes they meant
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1024</mn><annotation encoding="application/x-tex">1024</annotation></semantics></math>
|
||
bytes or
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1000</mn><annotation encoding="application/x-tex">1000</annotation></semantics></math>
|
||
bytes. I settled for
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1000</mn><annotation encoding="application/x-tex">1000</annotation></semantics></math>:</p>
|
||
<pre><code>inline size_t GetPeakMemoryUse() {
|
||
rusage r_usage;
|
||
if (getrusage(RUSAGE_SELF, &amp;r_usage) != 0) {
|
||
int saved_errno = errno;
|
||
std::cerr &lt;&lt; &quot;Failed to fetch memory use. Exit code: &quot; &lt;&lt; saved_errno &lt;&lt; std::endl;
|
||
return 0;
|
||
}
|
||
|
||
// On Mac, ru_maxrss is in bytes. On Linux and FreeBSD it&#39;s in kilobytes. So much for POSIX.
|
||
#ifdef __APPLE__
|
||
size_t multiplier = 1;
|
||
#else
|
||
size_t multiplier = 1000;
|
||
#endif
|
||
|
||
return r_usage.ru_maxrss * multiplier;
|
||
}</code></pre>
|
||
<p>Measuring CPU time is done the same way everywhere:</p>
|
||
<pre><code>inline uint64_t ConvertTimevalToMicroseconds(timeval t) {
|
||
return static_cast&lt;uint64_t&gt;(t.tv_sec) * 1000000ULL + static_cast&lt;uint64_t&gt;(t.tv_usec);
|
||
}
|
||
|
||
inline uint64_t GetCpuTime() {
|
||
rusage r_usage;
|
||
if (getrusage(RUSAGE_SELF, &amp;r_usage) != 0) {
|
||
int saved_errno = errno;
|
||
std::cerr &lt;&lt; &quot;Failed to fetch memory use. Exit code: &quot; &lt;&lt; saved_errno &lt;&lt; std::endl;
|
||
return 0;
|
||
}
|
||
|
||
auto user_time = ConvertTimevalToMicroseconds(r_usage.ru_utime);
|
||
auto kernel_time = ConvertTimevalToMicroseconds(r_usage.ru_stime);
|
||
return user_time + kernel_time;
|
||
}</code></pre>
|
||
<h3>Platform-independent part</h3>
|
||
<p>For simplicity, let’s first write a basic arena of bytes, so we don’t
|
||
need to trouble ourselves with templates for now.</p>
|
||
<p>Unlike <code>std::vector</code>, we’re going to grow the allocation
|
||
linearly, not exponentially, which should give us better space
|
||
efficiency. Let’s settle on the amount of pages we’re going to add each
|
||
time we run out of space in our allocation. I say
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
is a pretty good start:</p>
|
||
<pre><code>static constexpr size_t kBytesPerCommit = pal::kPageSize;</code></pre>
|
||
<p>We also need a way to calculate the number of pages needed to hold
|
||
the bytes in our arena, multiplied by number of bytes in a page, since
|
||
<code>VirtualAlloc</code> accepts length in bytes, not pages. We
|
||
calculate it by rounding the number of bytes we need to store up to the
|
||
nearest page boundary. To do that, we perform ceiled division by
|
||
<code>kBytesPerCommit</code>, followed by multiplication by
|
||
<code>kBytesPerCommit</code>:</p>
|
||
<pre><code>size_t GetCommittedBytes(size_t used_bytes) {
|
||
return ((used_bytes + kBytesPerCommit - 1) / kBytesPerCommit) * kBytesPerCommit;
|
||
}</code></pre>
|
||
<p>Now the struct for arena bookkeeping, which should be pretty
|
||
self-explanatory at this point:</p>
|
||
<pre><code>struct Arena {
|
||
char* base = nullptr;
|
||
size_t cap = 0;
|
||
size_t len = 0;
|
||
|
||
// ... methods ...
|
||
};</code></pre>
|
||
<p>RAII boilerplate:</p>
|
||
<pre><code> Arena() = delete;
|
||
Arena(const Arena&amp;) = delete;
|
||
Arena(Arena&amp;&amp; other) {
|
||
base = other.base;
|
||
cap = other.cap;
|
||
len = other.len;
|
||
|
||
other.base = nullptr;
|
||
other.cap = 0;
|
||
other.len = 0;
|
||
}</code></pre>
|
||
<p>Main constructor, followed by the destructor:</p>
|
||
<pre><code> explicit Arena(size_t max_len) {
|
||
assert(max_len != 0);
|
||
|
||
cap = GetCommittedBytes(max_len);
|
||
len = 0;
|
||
|
||
void* buf = pal::MemReserve(cap);
|
||
if (buf == nullptr) {
|
||
throw std::bad_alloc();
|
||
}
|
||
|
||
base = static_cast&lt;char*&gt;(buf);
|
||
}
|
||
|
||
~Arena() {
|
||
if (base != nullptr) {
|
||
pal::MemFree(base, cap);
|
||
}
|
||
}</code></pre>
|
||
<p>I apologise for exceptions. However, I didn’t want to use extra
|
||
templates like <code>std::optional</code> in this POC, which would get
|
||
in the way of demonstration.</p>
|
||
<p>Our constructor reserves the amount of memory requested in its
|
||
argument. It doesn’t commit anything. Destructor frees the whole
|
||
arena.</p>
|
||
<p>Growing logic:</p>
|
||
<pre><code> bool Grow(size_t additional_len) {
|
||
assert(len+additional_len &lt;= cap);
|
||
size_t old_committed = GetCommittedBytes(len);
|
||
size_t new_committed = GetCommittedBytes(len+additional_len);
|
||
size_t delta = new_committed - old_committed;
|
||
if (delta == 0) {
|
||
len += additional_len;
|
||
return true;
|
||
}
|
||
|
||
if (!pal::MemCommit(base + old_committed, delta)) {
|
||
return false;
|
||
}
|
||
|
||
len += additional_len;
|
||
return true;
|
||
}</code></pre>
|
||
<p>If we can fit the additional bytes in current allocation, we only
|
||
update the length and report success. Otherwise, we attempt to commit
|
||
more pages (the minimal amount that’s needed to fit the additional
|
||
bytes).</p>
|
||
<p>Our POC arena is complete. Now let’s move on to the dynamic array of
|
||
elements of type <code>T</code>:</p>
|
||
<pre><code>template &lt;typename T&gt;
|
||
class DynArray {
|
||
Arena arena;
|
||
|
||
public:
|
||
// ... methods ...
|
||
};</code></pre>
|
||
<p>No surprises here. RAII boilerplate:</p>
|
||
<pre><code> // Redundant, but useful as documentation.
|
||
DynArray() = delete;
|
||
DynArray(const DynArray&lt;T&gt;&amp; other) = delete;
|
||
DynArray(DynArray&amp;&amp; other) = default;</code></pre>
|
||
<p>Copy constructor is left as an exercise for the reader.</p>
|
||
<p>Main constructor just forwards a scaled argument to the arena. For
|
||
more robust code, we should add a check for arithmetic overflow, but for
|
||
simplicity of examples let’s leave it out:</p>
|
||
<pre><code> explicit DynArray(size_t max_len)
|
||
: arena(max_len * sizeof(T)) {}</code></pre>
|
||
<p>Support for range loops:</p>
|
||
<pre><code> T* begin() {
|
||
return reinterpret_cast&lt;T*&gt;(arena.base);
|
||
}
|
||
|
||
T* end() {
|
||
return reinterpret_cast&lt;T*&gt;(arena.base + arena.len);
|
||
}</code></pre>
|
||
<p>Methods for querying the length and indexing with square brackets
|
||
would also be nice:</p>
|
||
<pre><code> size_t Len() const {
|
||
return arena.len / sizeof(T);
|
||
}
|
||
|
||
T&amp; operator[](size_t i) {
|
||
assert(i &lt; Len());
|
||
return begin()[i];
|
||
}</code></pre>
|
||
<p>And the meat of the structure:</p>
|
||
<pre><code> bool Append(T v) {
|
||
auto* dst = end();
|
||
|
||
if (!arena.Grow(sizeof(T))) {
|
||
return false;
|
||
}
|
||
|
||
*dst = std::move(v);
|
||
return true;
|
||
}</code></pre>
|
||
<p>Should be pretty obvious.</p>
|
||
<p>Theoretically, we should make sure that we put <code>T</code> at
|
||
addresses aligned according to the alignment requirements of
|
||
<code>T</code>. However, the base address of the arena, which is
|
||
returned by <code>VirtualAlloc()</code>, will always be aligned to a
|
||
page boundary. Alignment needs to be a power of 2. Additionally, in
|
||
practice I don’t think there are any types with alignment bigger than
|
||
page size<a href="#fn2" class="footnote-ref" id="fnref2"
|
||
role="doc-noteref"><sup>2</sup></a>, which is also a power of 2. It
|
||
follows that alignment always divides page size equally, therefore we
|
||
satisfy alignment requirements with no additional effort.</p>
|
||
<h4>Demonstrative tests</h4>
|
||
<p>Now for some rudimentary tests. First, the arena:</p>
|
||
<pre><code> // Reserving 16GiB.
|
||
auto a = Arena(16ULL * 1024ULL * 1024ULL * 1024ULL);
|
||
|
||
// Committing 1MiB to make space for 4 bytes (with some headroom).
|
||
bool committed = a.Grow(4);
|
||
assert(committed);
|
||
|
||
a.base[0] = &#39;a&#39;;
|
||
a.base[1] = &#39;b&#39;;
|
||
a.base[2] = &#39;c&#39;;
|
||
a.base[4] = &#39;\0&#39;;
|
||
|
||
std::cout &lt;&lt; a.base &lt;&lt; std::endl;
|
||
|
||
// Past the declared length, but still in committed memory.
|
||
// No segfault, but in real code it&#39;s probably a bug.
|
||
a.base[5] = &#39;x&#39;;
|
||
a.base[kBytesPerCommit-1] = &#39;y&#39;;
|
||
|
||
// Reserved, but not committed memory. Segfault.
|
||
// a.base[kBytesPerCommit] = &#39;x&#39;;</code></pre>
|
||
<p>That code should print “abc” and exit without crashing. We can see
|
||
that unfortunately we can access elements beyond the stated length of
|
||
the arena, in this case elements with indices
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
and
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝚔</mi><mi>𝙱</mi><mi>𝚢</mi><mi>𝚝</mi><mi>𝚎</mi><mi>𝚜</mi><mi>𝙿</mi><mi>𝚎</mi><mi>𝚛</mi><mi>𝙲</mi><mi>𝚘</mi><mi>𝚖</mi><mi>𝚖</mi><mi>𝚒</mi><mi>𝚝</mi></mrow><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\mathtt{kBytesPerCommit}-1</annotation></semantics></math>,
|
||
because they’re placed on the same page of memory which is used to store
|
||
valid elements. However, we cannot reach beyond this page, which is
|
||
demonstrated with the last line. After uncommenting it and running the
|
||
program, it’s going to crash due to a segfault. The uncommitted pages at
|
||
the end serve as natural guard pages, providing a margin of safety, even
|
||
in situations where for some reason it’s been decided that
|
||
bounds-checking should be disabled (which is most C++ shops).</p>
|
||
<p>And the dynamic array:</p>
|
||
<pre><code> static constexpr size_t N = 100000;
|
||
auto a = DynArray&lt;int&gt;(N);
|
||
|
||
for (size_t i = 0; i &lt; 16; i++) {
|
||
assert(a.Append(static_cast&lt;int&gt;(i)));
|
||
}
|
||
|
||
for (size_t i = 0; i &lt; 12; i++) {
|
||
std::cout &lt;&lt; a[i] &lt;&lt; &quot;\n&quot;;
|
||
}
|
||
|
||
for (size_t i = 16; i &lt; N; i++) {
|
||
a.Append(static_cast&lt;int&gt;(i));
|
||
}
|
||
|
||
size_t real_cap = GetCommittedBytes(N * sizeof(int)) / sizeof(int);
|
||
|
||
for (size_t i = N; i &lt; real_cap; i++) {
|
||
a.Append(static_cast&lt;int&gt;(i));
|
||
}
|
||
|
||
// Exceeded capacity. Assertion failure.
|
||
// a.Append(0);</code></pre>
|
||
<p>That should print:</p>
|
||
<pre><code>0
|
||
1
|
||
2
|
||
3
|
||
4
|
||
5
|
||
6
|
||
7
|
||
8
|
||
9
|
||
10
|
||
11</code></pre>
|
||
<p>Uncommenting the last line would cause an assertion failure, this
|
||
time because we run out of reserved space (due to deliberately smaller
|
||
capacity declared in the beginning).</p>
|
||
<h4>Performance cost</h4>
|
||
<p>When <code>DynArray</code> has
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
elements, <code>Append()</code> takes
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(1)</annotation></semantics></math>
|
||
time and doesn’t have any temporary spikes in space use, meaning that
|
||
the amount of space used during <code>Append()</code> never exceeds the
|
||
amount of space used after it.</p>
|
||
<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>-element
|
||
<code>DynArray</code> uses
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">⌈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo stretchy="false" form="postfix">⌉</mo><mo>×</mo><mn>4096</mn></mrow><annotation encoding="application/x-tex">\lceil\frac{n\times M}{4096}\rceil\times 4096</annotation></semantics></math>
|
||
bytes for the buffer plus the constant amount of space for length,
|
||
capacity and pointer to buffer. This amounts to
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mo stretchy="false" form="prefix">⌈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo stretchy="false" form="postfix">⌉</mo><mo>×</mo><mn>4096</mn></mrow></mfrac><mo>≈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo>×</mo><mn>4096</mn></mrow></mfrac><mo>=</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow></mfrac><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\frac{n\times M}{\lceil\frac{n\times M}{4096}\rceil\times 4096} \approx \frac{n\times M}{\frac{n\times M}{4096}\times 4096} = \frac{n\times M}{n\times M} = 1</annotation></semantics></math>
|
||
space utilisation.</p>
|
||
<p>Pretty good. As
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
|
||
grows, we’re approaching perfect space utilisation, and non-utilised
|
||
space never exceeds
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4095</mn><annotation encoding="application/x-tex">4095</annotation></semantics></math>
|
||
bytes, whereas in the case of <code>std::vector</code> it grows
|
||
exponentially.</p>
|
||
<h4>Benchmarks</h4>
|
||
<p>I’ve run all Windows, FreeBSD and Linux tests on the exact same
|
||
machine. It’s a PC with an AMD Ryzen 7 2700X CPU and 16 GB of DDR4 RAM.
|
||
For Mac tests I used my 2020 Mac Mini M1 with 16GB RAM. It wasn’t my
|
||
objective to compare which compiler is better than another compiler, so
|
||
to keep things shorter I used only one compiler on each platform, the
|
||
one that was closest to the <em>official</em> one. Software
|
||
versions:</p>
|
||
<ol type="1">
|
||
<li>Windows 10 Pro with MSVC <code>19.32.31332</code> running from
|
||
<code>x64 Native Tools Command Prompt for VS 2022</code>. Compilation
|
||
script: <code>build.bat</code>.</li>
|
||
<li>MacOS Monterey <code>12.6.2</code> with
|
||
<code>Apple clang version 13.0.0</code>
|
||
(<code>clang-1300.0.29.30</code>), the version shipped with Xcode
|
||
<code>13.2.1</code>. Compilation script:
|
||
<code>build-clang.sh</code>.</li>
|
||
<li>FreeBSD <code>13.1-p3</code> (with <code>13.1-p5</code> userland)
|
||
with Clang <code>13.0.0</code>
|
||
(<code>FreeBSD clang version 13.0.0</code>), which is shipped with the
|
||
base system. Compilation script: <code>build-clang.sh</code>.</li>
|
||
<li>Debian <code>11.6</code>
|
||
(<code>5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux</code>)
|
||
with GCC (<code>g++ (Debian 10.2.1-6) 10.2.1 20210110</code>) installed
|
||
with APT through the <code>g++</code> package. Compilation script:
|
||
<code>build-gcc.sh</code>.</li>
|
||
</ol>
|
||
<h5>Windows</h5>
|
||
<h6>Memory</h6>
|
||
<p>First we’ll measure peak memory use, when constructing arrays of
|
||
sizes
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>,
|
||
and
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>.
|
||
For details, see <code>mem_dynarray.cpp</code> and
|
||
<code>mem_stdvec.cpp</code> in the repo.</p>
|
||
<p>Reminder: I don’t call <code>std::vector::reserve()</code>, because
|
||
that method doesn’t <em>reserve</em> memory according to the Windows
|
||
(and our) nomenclature, it actually <em>commits</em> memory, and the
|
||
whole motivation for this page is finding a memory management strategy
|
||
for situations when I don’t have accurate <em>and</em> precise
|
||
predictions for how much memory I’m going to need. Besides, if I had
|
||
them, instead of <code>std::vector</code>, I’d use a structure which
|
||
allocates only once, and doesn’t have all that resizing logic.</p>
|
||
<table>
|
||
<tr>
|
||
<th rowspan="2">
|
||
Array Size
|
||
</th>
|
||
<th colspan="2">
|
||
Peak WSS (bytes)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>088</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">3\,088\,384</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>551</mn><mspace width="0.167em"></mspace><mn>808</mn></mrow><annotation encoding="application/x-tex">2\,551\,808</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>086</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">7\,086\,080</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>190</mn><mspace width="0.167em"></mspace><mn>848</mn></mrow><annotation encoding="application/x-tex">10\,190\,848</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>002</mn><mspace width="0.167em"></mspace><mn>926</mn><mspace width="0.167em"></mspace><mn>592</mn></mrow><annotation encoding="application/x-tex">4\,002\,926\,592</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>521</mn><mspace width="0.167em"></mspace><mn>395</mn><mspace width="0.167em"></mspace><mn>712</mn></mrow><annotation encoding="application/x-tex">5\,521\,395\,712</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>859</mn><mspace width="0.167em"></mspace><mn>588</mn><mspace width="0.167em"></mspace><mn>608</mn></mrow><annotation encoding="application/x-tex">12\,859\,588\,608</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p><code>DynArray</code> uses more memory when the whole array can fit
|
||
in space smaller than a single memory page, but for bigger arrays it
|
||
uses less space, because it grows linearly, not exponentially as
|
||
<code>std::vector</code> does. In fact, as the last row demonstrates,
|
||
<code>std::vector</code> failed to scale to
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
elements on my machine, reporting a memory allocation error, whereas
|
||
<code>DynArray</code> continued working.</p>
|
||
<h6>Throughput</h6>
|
||
<p>Now let’s see how many elements we’re able to append in a given time
|
||
period. We take the total time it takes to construct the whole array and
|
||
then divide it by the number of elements. Each benchmark is repeated for
|
||
different sizes of the resulting dynamic array. Results are included for
|
||
builds with different levels of optimisation: no optimisation,
|
||
<code>/O1</code> and <code>/O2</code>.</p>
|
||
<p>Aside from ints, we also use <code>std::unique_ptr</code>s to
|
||
demonstrate how those dynamic arrays scale when their elements have
|
||
non-trivial (but still almost-trivial) move constructors. For details,
|
||
see <code>bench.cpp</code> in the repo.</p>
|
||
<table>
|
||
<tr>
|
||
<th colspan="5">
|
||
No optimisation
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">32\,000\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.078</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">0.078\,125</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>800</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">12\,800\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.140</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.140\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>111</mn><mspace width="0.167em"></mspace><mn>111</mn></mrow><annotation encoding="application/x-tex">7\,111\,111</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14.828</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">14.828\,125</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>67</mn><mspace width="0.167em"></mspace><mn>439</mn><mspace width="0.167em"></mspace><mn>409</mn></mrow><annotation encoding="application/x-tex">67\,439\,409</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>23.078</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">23.078\,125</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>331</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">43\,331\,076</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>84.656</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">84.656\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>812</mn><mspace width="0.167em"></mspace><mn>476</mn></mrow><annotation encoding="application/x-tex">11\,812\,476</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>297.937</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">297.937\,500</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>356</mn><mspace width="0.167em"></mspace><mn>408</mn></mrow><annotation encoding="application/x-tex">3\,356\,408</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>174.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">174.093\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>57</mn><mspace width="0.167em"></mspace><mn>440</mn><mspace width="0.167em"></mspace><mn>315</mn></mrow><annotation encoding="application/x-tex">57\,440\,315</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>/O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">32\,000\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.328</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">4.328\,125</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>231</mn><mspace width="0.167em"></mspace><mn>046</mn><mspace width="0.167em"></mspace><mn>931</mn></mrow><annotation encoding="application/x-tex">231\,046\,931</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.828</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">2.828\,125</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>353</mn><mspace width="0.167em"></mspace><mn>591</mn><mspace width="0.167em"></mspace><mn>160</mn></mrow><annotation encoding="application/x-tex">353\,591\,160</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>62.359</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">62.359\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>036</mn><mspace width="0.167em"></mspace><mn>081</mn></mrow><annotation encoding="application/x-tex">16\,036\,081</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>213.609</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">213.609\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>681</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">4\,681\,442</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>59.812</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">59.812\,500</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>167</mn><mspace width="0.167em"></mspace><mn>189</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">167\,189\,132</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>/O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64000</mn><annotation encoding="application/x-tex">64000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.406</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">4.406\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>950</mn><mspace width="0.167em"></mspace><mn>354</mn></mrow><annotation encoding="application/x-tex">226\,950\,354</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.765</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">2.765\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>361</mn><mspace width="0.167em"></mspace><mn>581</mn><mspace width="0.167em"></mspace><mn>920</mn></mrow><annotation encoding="application/x-tex">361\,581\,920</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49.187</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">49.187\,500</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>330</mn><mspace width="0.167em"></mspace><mn>368</mn></mrow><annotation encoding="application/x-tex">20\,330\,368</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>203.906</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">203.906\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>904</mn><mspace width="0.167em"></mspace><mn>214</mn></mrow><annotation encoding="application/x-tex">4\,904\,214</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>56.687</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">56.687\,500</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>176</mn><mspace width="0.167em"></mspace><mn>405</mn><mspace width="0.167em"></mspace><mn>733</mn></mrow><annotation encoding="application/x-tex">176\,405\,733</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p>With no optimisations enabled, <code>DynArray</code> has consistently
|
||
higher throughput than <code>std::vector</code>, across all controlled
|
||
parameters. With <code>/O1</code> and <code>/O2</code>,
|
||
<code>std::vector</code> has higher throughput for smaller arrays and
|
||
for big arrays with trivial move constructors; but for large arrays with
|
||
non-trivial move constructors <code>DynArray</code> has the upper hand.
|
||
Extrapolating, the time it takes to construct the whole array, relative
|
||
to its end length, grows much slower in the case of
|
||
<code>DynArray</code> than in the case of <code>std::vector</code>.</p>
|
||
<h6>Latency</h6>
|
||
<p>In case of latency, we measure the time taken by each append call,
|
||
save the minimum and maximum values, and aggregate all times into a
|
||
linear histogram organised into buckets of
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><mn>0</mn><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[0, 10^{-6})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-6}, 10^{-5})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-5}, 10^{-4})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-4}, 10^{-3})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-3}, 10^{-2})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-2}, 10^{-1})</annotation></semantics></math>,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><mo>,</mo><mi>∞</mi><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-1}, \infty)</annotation></semantics></math>
|
||
seconds. Bucket columns are labeled with the upper bounds. For details,
|
||
see <code>bench.cpp</code> in the repo.</p>
|
||
<table>
|
||
<tr>
|
||
<th colspan="14">
|
||
No optimisation
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>999</mn><annotation encoding="application/x-tex">999</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.062</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">0.062\,500</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>979</mn></mrow><annotation encoding="application/x-tex">999\,979</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>21</mn><annotation encoding="application/x-tex">21</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>977</mn></mrow><annotation encoding="application/x-tex">999\,977</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>23</mn><annotation encoding="application/x-tex">23</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>307</mn></mrow><annotation encoding="application/x-tex">999\,987\,307</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>693</mn></mrow><annotation encoding="application/x-tex">12\,693</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.468</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.468\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>325</mn></mrow><annotation encoding="application/x-tex">999\,987\,325</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>671</mn></mrow><annotation encoding="application/x-tex">12\,671</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.796</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">1.796\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>965</mn><mspace width="0.167em"></mspace><mn>127</mn></mrow><annotation encoding="application/x-tex">999\,965\,127</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>870</mn></mrow><annotation encoding="application/x-tex">34\,870</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>29.484</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">29.484\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>982</mn><mspace width="0.167em"></mspace><mn>339</mn></mrow><annotation encoding="application/x-tex">999\,982\,339</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>17</mn><mspace width="0.167em"></mspace><mn>646</mn></mrow><annotation encoding="application/x-tex">17\,646</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.515</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.515\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>869</mn><mspace width="0.167em"></mspace><mn>443</mn></mrow><annotation encoding="application/x-tex">9\,999\,869\,443</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>556</mn></mrow><annotation encoding="application/x-tex">130\,556</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>/O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>993</mn></mrow><annotation encoding="application/x-tex">999\,993</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">999\,990</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>10</mn><annotation encoding="application/x-tex">10</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn></mrow><annotation encoding="application/x-tex">999\,988</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn><mspace width="0.167em"></mspace><mn>885</mn></mrow><annotation encoding="application/x-tex">999\,988\,885</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>115</mn></mrow><annotation encoding="application/x-tex">11\,115</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.484</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">0.484\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>989</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">999\,989\,172</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>824</mn></mrow><annotation encoding="application/x-tex">10\,824</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>975</mn><mspace width="0.167em"></mspace><mn>686</mn></mrow><annotation encoding="application/x-tex">999\,975\,686</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>314</mn></mrow><annotation encoding="application/x-tex">24\,314</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14.109</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">14.109\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>986</mn><mspace width="0.167em"></mspace><mn>756</mn></mrow><annotation encoding="application/x-tex">999\,986\,756</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13</mn><mspace width="0.167em"></mspace><mn>236</mn></mrow><annotation encoding="application/x-tex">13\,236</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.468</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.468\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>887</mn><mspace width="0.167em"></mspace><mn>755</mn></mrow><annotation encoding="application/x-tex">9\,999\,887\,755</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>112</mn><mspace width="0.167em"></mspace><mn>244</mn></mrow><annotation encoding="application/x-tex">112\,244</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>/O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn></mrow><annotation encoding="application/x-tex">999\,987</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>13</mn><annotation encoding="application/x-tex">13</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>985</mn></mrow><annotation encoding="application/x-tex">999\,985</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>986</mn></mrow><annotation encoding="application/x-tex">999\,986</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>14</mn><annotation encoding="application/x-tex">14</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn></mrow><annotation encoding="application/x-tex">999\,988</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn><mspace width="0.167em"></mspace><mn>917</mn></mrow><annotation encoding="application/x-tex">999\,988\,917</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>083</mn></mrow><annotation encoding="application/x-tex">11\,083</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.500</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">0.500\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>989</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">999\,989\,054</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>942</mn></mrow><annotation encoding="application/x-tex">10\,942</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.390</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.390\,625</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>973</mn><mspace width="0.167em"></mspace><mn>866</mn></mrow><annotation encoding="application/x-tex">999\,973\,866</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>26</mn><mspace width="0.167em"></mspace><mn>133</mn></mrow><annotation encoding="application/x-tex">26\,133</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13.109</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">13.109\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>984</mn><mspace width="0.167em"></mspace><mn>610</mn></mrow><annotation encoding="application/x-tex">999\,984\,610</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>381</mn></mrow><annotation encoding="application/x-tex">15\,381</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>888</mn><mspace width="0.167em"></mspace><mn>781</mn></mrow><annotation encoding="application/x-tex">9\,999\,888\,781</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>111</mn><mspace width="0.167em"></mspace><mn>219</mn></mrow><annotation encoding="application/x-tex">111\,219</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p>Except the one flake in the unoptimised benchmark for arrays of
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
elements, the maximum latency of <code>DynArray</code> always stayed
|
||
below the latency of <code>std::vector</code>. In fact, usually it was a
|
||
couple times lower, and for big arrays it was orders of magnitude lower,
|
||
where, if you care about latency at all, performance of
|
||
<code>std::vector</code> wasn’t acceptable by any standards.</p>
|
||
<p>All latency measurements demonstrate a bimodal distribution. In the
|
||
case of <code>std::vector</code> it’s no surprise – that’s what we
|
||
should expect when we have two paths, one the common case of no resize,
|
||
one the odd case of resize. However, in the case of
|
||
<code>DynArray</code>, the bimodal distribution surprised me, as I
|
||
didn’t see any cause for it in any of the code that I wrote: on the one
|
||
hand, <code>VirtualAlloc()</code> isn’t called in every
|
||
<code>Append()</code>, but on the other hand the number of calls to one
|
||
is linearly proportional to the other, and the numbers do not reflect
|
||
that, so I decided to dig into it.</p>
|
||
<p>I tried to collect hardware performance counters (PMC), but Intel
|
||
VTune failed to gather any for my AMD CPU. AMD μProf didn’t seem to even
|
||
have any place to display them. Microsoft’s <code>tracelog.exe</code>
|
||
also failed to collect anything. The ETL file contained no PMC data.
|
||
That’s quite a let-down compared to the ease of collecting this data on
|
||
Linux with <code>perf</code>.</p>
|
||
<p>Luckily, DTrace was ported to Windows, so I decided to use that.
|
||
First I tried to measure how much time <code>VirtualAlloc()</code> takes
|
||
in my tests, so I wrote the following script, using the
|
||
<code>syscall</code> DTrace provider:</p>
|
||
<pre><code>syscall::NtAllocateVirtualMemory:entry
|
||
/execname == &quot;bench2.exe&quot;/
|
||
{
|
||
self-&gt;ts = timestamp;
|
||
}
|
||
|
||
syscall::NtAllocateVirtualMemory:return
|
||
/execname == &quot;bench2.exe&quot;/
|
||
{
|
||
@alloc[execname] = quantize((timestamp - self-&gt;ts) / 1000);
|
||
}</code></pre>
|
||
<p>That collects running times (in microseconds) of the
|
||
<code>NtAllocateVirtualMemory()</code> syscall into a histogram. I run
|
||
<code>bench2.exe</code> in one terminal, while in the Administrator’s
|
||
<code>cmd.exe</code> in another window I typed:</p>
|
||
<pre><code>&quot;C:\Program Files\DTrace\dtrace.exe&quot; -s virtualallochist.d</code></pre>
|
||
<p>That printed:</p>
|
||
<pre><code> bench2.exe
|
||
value ------------- Distribution ------------- count
|
||
0 | 0
|
||
1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 25497083
|
||
2 |@ 765607
|
||
4 | 42939
|
||
8 | 7796
|
||
16 | 2619
|
||
32 | 233
|
||
64 | 20
|
||
128 | 41
|
||
256 | 89
|
||
512 | 90
|
||
1024 | 46
|
||
2048 | 4
|
||
4096 | 12
|
||
8192 | 6
|
||
16384 | 4
|
||
32768 | 0</code></pre>
|
||
<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">16\,384</annotation></semantics></math>
|
||
microseconds
|
||
(<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">0.016\,384</annotation></semantics></math>
|
||
seconds) isn’t near anything explaining the times from my benchmarks,
|
||
where append once took as much as
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0.390</mn><annotation encoding="application/x-tex">0.390</annotation></semantics></math>
|
||
seconds. I had to dig deeper.</p>
|
||
<p>At that point I thought: I’m not calling
|
||
<code>NtAllocateVirtualMemory()</code> directly, I’m calling
|
||
<code>VirtualAlloc()</code>. I should measure that. That’s a bit harder,
|
||
but still doable. <code>VirtualAlloc()</code> is not a syscall of the NT
|
||
kernel, but a normal function defined in one of DLLs distributed with
|
||
Windows, so I can’t trace it with the <code>syscall</code> DTrace
|
||
provider.</p>
|
||
<p>However, I can use the <code>pid</code> provider. For tracing with
|
||
that provider, I needed to know the PID of the executable to trace, not
|
||
just the <code>execname</code>. One way to get it is to use the
|
||
<code>-c &lt;cmd&gt;</code> option to <code>dtrace.exe</code>, which
|
||
starts the <code>&lt;cmd&gt;</code> command and passes its PID to the
|
||
DTrace script as <code>$target</code>. However, that approach caused
|
||
DTrace to run out of memory very fast, so I needed to find another
|
||
way.</p>
|
||
<p>I decided to fetch the PID with Powershell and pass it as a
|
||
positional argument to my DTrace script, which measured
|
||
<code>VirtualAlloc()</code> and a couple of my own functions to
|
||
compare:</p>
|
||
<pre><code>pid$1::VirtualAlloc:entry
|
||
{
|
||
self-&gt;ts[probefunc] = timestamp;
|
||
}
|
||
|
||
pid$1::VirtualAlloc:return
|
||
{
|
||
@[execname,probefunc] = quantize((timestamp - self-&gt;ts[probefunc]) / 1000);
|
||
}
|
||
|
||
pid$1::GetProcessTimes:entry
|
||
{
|
||
self-&gt;ts[probefunc] = timestamp;
|
||
}
|
||
|
||
pid$1::GetProcessTimes:return
|
||
{
|
||
@[execname,probefunc] = quantize((timestamp - self-&gt;ts[probefunc]) / 1000);
|
||
}
|
||
|
||
pid$1::&quot;DynArray&lt;std::unique_ptr&lt;int,std::default_delete&lt;int&gt; &gt; &gt;::Append&quot;:entry
|
||
{
|
||
self-&gt;ts[probefunc] = timestamp;
|
||
}
|
||
|
||
pid$1::&quot;DynArray&lt;std::unique_ptr&lt;int,std::default_delete&lt;int&gt; &gt; &gt;::Append&quot;:return
|
||
{
|
||
@[execname,probefunc] = quantize((timestamp - self-&gt;ts[probefunc]) / 1000);
|
||
}
|
||
|
||
pid$1::&quot;DynArray&lt;int&gt;::Append&quot;:entry
|
||
{
|
||
self-&gt;ts[probefunc] = timestamp;
|
||
}
|
||
|
||
pid$1::&quot;DynArray&lt;int&gt;::Append&quot;:return
|
||
{
|
||
@[execname,probefunc] = quantize((timestamp - self-&gt;ts[probefunc]) / 1000);
|
||
}</code></pre>
|
||
<p>When optimisations are enabled, some of those <code>DynArray</code>
|
||
methods are inlined and eliminated from the executable. So I needed to
|
||
use <code>bench0.exe</code>, the unoptimised version of the benchmark.
|
||
After starting <code>bench0.exe</code> in one terminal, I typed the
|
||
following in Administrator’s Powershell:</p>
|
||
<pre><code>&amp; &quot;C:\Program Files\DTrace\dtrace.exe&quot; -s virtualallochist.d (Get-Process -Name &quot;bench0&quot;).Id</code></pre>
|
||
<p>That made the benchmark run several times longer than normally (~2.5
|
||
days compared to ~2 hours) in wall clock time, but CPU time seemed to be
|
||
completely unaffected. (Actually, during first attempt Windows Update
|
||
rebooted my computer after 1.5 days without asking me for
|
||
permission.)</p>
|
||
<p>The results were as follows:</p>
|
||
<pre><code> bench0.exe VirtualAlloc
|
||
value ------------- Distribution ------------- count
|
||
1 | 0
|
||
2 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 25247233
|
||
4 | 100680
|
||
8 | 7843
|
||
16 | 509
|
||
32 | 16
|
||
64 | 5
|
||
128 | 21
|
||
256 | 71
|
||
512 | 4
|
||
1024 | 2
|
||
2048 | 0
|
||
4096 | 0
|
||
8192 | 1
|
||
16384 | 0
|
||
32768 | 1
|
||
65536 | 0
|
||
131072 | 1
|
||
262144 | 1
|
||
524288 | 0
|
||
|
||
bench0.exe DynArray&lt;std::unique_ptr&lt;int,std::default_delete&lt;int&gt; &gt; &gt;::Append
|
||
value ------------- Distribution ------------- count
|
||
1 | 0
|
||
2 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1995992981
|
||
4 | 641329
|
||
8 | 4288545
|
||
16 | 65842
|
||
32 | 380
|
||
64 | 361
|
||
128 | 3862
|
||
256 | 6963
|
||
512 | 670
|
||
1024 | 31
|
||
2048 | 8
|
||
4096 | 27
|
||
8192 | 0
|
||
16384 | 0
|
||
32768 | 1
|
||
65536 | 0
|
||
|
||
bench0.exe DynArray&lt;int&gt;::Append
|
||
value ------------- Distribution ------------- count
|
||
0 | 0
|
||
1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 21782293396
|
||
2 | 155237404
|
||
4 | 15543570
|
||
8 | 9630471
|
||
16 | 117290
|
||
32 | 3117
|
||
64 | 1737
|
||
128 | 26619
|
||
256 | 38741
|
||
512 | 12741
|
||
1024 | 15708
|
||
2048 | 6991
|
||
4096 | 77
|
||
8192 | 24
|
||
16384 | 40
|
||
32768 | 3
|
||
65536 | 0
|
||
131072 | 1
|
||
262144 | 1
|
||
524288 | 0
|
||
|
||
bench0.exe GetProcessTimes
|
||
value ------------- Distribution ------------- count
|
||
0 | 0
|
||
1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 27825184719
|
||
2 | 177795208
|
||
4 | 1094430
|
||
8 | 3752032
|
||
16 | 127442
|
||
32 | 3074
|
||
64 | 1284
|
||
128 | 13774
|
||
256 | 35437
|
||
512 | 606
|
||
1024 | 2
|
||
2048 | 1
|
||
4096 | 0</code></pre>
|
||
<p>Here we can see that the outliers of <code>VirtualAlloc()</code>
|
||
practically perfectly correspond to the outliers of
|
||
<code>DynArray&lt;int&gt;::Append()</code>.
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>262</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">262\,144</annotation></semantics></math>
|
||
microseconds for
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>262</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">262\,144</annotation></semantics></math>
|
||
microseconds.
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">131\,072</annotation></semantics></math>
|
||
microseconds for
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">131\,072</annotation></semantics></math>
|
||
microseconds. The rest of numbers don’t correspond as perfectly, but
|
||
generally are in the right ballpark, after dividing the amounts by 3
|
||
orders of magnitude (<code>VirtualAlloc()</code> isn’t called in every
|
||
<code>Append()</code>). That to me was sufficient evidence that
|
||
<code>DynArray::Append()</code> latency really was determined by the
|
||
latency of <code>VirtualAlloc()</code> and not by something extra that I
|
||
did.</p>
|
||
<p>For the other platforms, I’m only going to comment the numbers, when
|
||
I see something unexpected in them.</p>
|
||
<h5>Mac</h5>
|
||
<h6>Memory</h6>
|
||
<table>
|
||
<tr>
|
||
<th rowspan="2">
|
||
Array Size
|
||
</th>
|
||
<th colspan="2">
|
||
Peak RSS (bytes)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>490</mn><mspace width="0.167em"></mspace><mn>944</mn></mrow><annotation encoding="application/x-tex">1\,490\,944</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>474</mn><mspace width="0.167em"></mspace><mn>560</mn></mrow><annotation encoding="application/x-tex">1\,474\,560</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>521</mn><mspace width="0.167em"></mspace><mn>408</mn></mrow><annotation encoding="application/x-tex">5\,521\,408</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>715</mn><mspace width="0.167em"></mspace><mn>712</mn></mrow><annotation encoding="application/x-tex">9\,715\,712</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>001</mn><mspace width="0.167em"></mspace><mn>513</mn><mspace width="0.167em"></mspace><mn>472</mn></mrow><annotation encoding="application/x-tex">4\,001\,513\,472</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>564</mn><mspace width="0.167em"></mspace><mn>942</mn><mspace width="0.167em"></mspace><mn>848</mn></mrow><annotation encoding="application/x-tex">4\,564\,942\,848</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>247</mn><mspace width="0.167em"></mspace><mn>536</mn><mspace width="0.167em"></mspace><mn>640</mn></mrow><annotation encoding="application/x-tex">10\,247\,536\,640</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>684</mn><mspace width="0.167em"></mspace><mn>904</mn><mspace width="0.167em"></mspace><mn>960</mn></mrow><annotation encoding="application/x-tex">11\,684\,904\,960</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h6>Throughput</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="5">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>260</mn></mrow><annotation encoding="application/x-tex">0.000\,260</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>846</mn><mspace width="0.167em"></mspace><mn>153</mn></mrow><annotation encoding="application/x-tex">3\,846\,153</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>089</mn></mrow><annotation encoding="application/x-tex">0.000\,089</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>235</mn><mspace width="0.167em"></mspace><mn>955</mn></mrow><annotation encoding="application/x-tex">11\,235\,955</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>462</mn></mrow><annotation encoding="application/x-tex">0.000\,462</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>164</mn><mspace width="0.167em"></mspace><mn>502</mn></mrow><annotation encoding="application/x-tex">2\,164\,502</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>372</mn></mrow><annotation encoding="application/x-tex">0.000\,372</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>688</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">2\,688\,172</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.023</mn><mspace width="0.167em"></mspace><mn>056</mn></mrow><annotation encoding="application/x-tex">0.023\,056</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>372</mn><mspace width="0.167em"></mspace><mn>657</mn></mrow><annotation encoding="application/x-tex">43\,372\,657</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.036</mn><mspace width="0.167em"></mspace><mn>736</mn></mrow><annotation encoding="application/x-tex">0.036\,736</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>27</mn><mspace width="0.167em"></mspace><mn>221</mn><mspace width="0.167em"></mspace><mn>254</mn></mrow><annotation encoding="application/x-tex">27\,221\,254</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.051</mn><mspace width="0.167em"></mspace><mn>803</mn></mrow><annotation encoding="application/x-tex">0.051\,803</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>303</mn><mspace width="0.167em"></mspace><mn>901</mn></mrow><annotation encoding="application/x-tex">19\,303\,901</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>763</mn></mrow><annotation encoding="application/x-tex">0.093\,763</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>665</mn><mspace width="0.167em"></mspace><mn>187</mn></mrow><annotation encoding="application/x-tex">10\,665\,187</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7.423</mn><mspace width="0.167em"></mspace><mn>329</mn></mrow><annotation encoding="application/x-tex">7.423\,329</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>134</mn><mspace width="0.167em"></mspace><mn>710</mn><mspace width="0.167em"></mspace><mn>451</mn></mrow><annotation encoding="application/x-tex">134\,710\,451</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.339</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">19.339\,444</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>707</mn><mspace width="0.167em"></mspace><mn>794</mn></mrow><annotation encoding="application/x-tex">51\,707\,794</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>77.600</mn><mspace width="0.167em"></mspace><mn>856</mn></mrow><annotation encoding="application/x-tex">77.600\,856</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>886</mn><mspace width="0.167em"></mspace><mn>455</mn></mrow><annotation encoding="application/x-tex">12\,886\,455</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>98.452</mn><mspace width="0.167em"></mspace><mn>377</mn></mrow><annotation encoding="application/x-tex">98.452\,377</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>157</mn><mspace width="0.167em"></mspace><mn>195</mn></mrow><annotation encoding="application/x-tex">10\,157\,195</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76.536</mn><mspace width="0.167em"></mspace><mn>928</mn></mrow><annotation encoding="application/x-tex">76.536\,928</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>655</mn><mspace width="0.167em"></mspace><mn>884</mn></mrow><annotation encoding="application/x-tex">130\,655\,884</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>245.702</mn><mspace width="0.167em"></mspace><mn>541</mn></mrow><annotation encoding="application/x-tex">245.702\,541</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>699</mn><mspace width="0.167em"></mspace><mn>619</mn></mrow><annotation encoding="application/x-tex">40\,699\,619</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>317</mn></mrow><annotation encoding="application/x-tex">0.000\,317</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>154</mn><mspace width="0.167em"></mspace><mn>574</mn></mrow><annotation encoding="application/x-tex">3\,154\,574</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>021</mn></mrow><annotation encoding="application/x-tex">0.000\,021</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>619</mn><mspace width="0.167em"></mspace><mn>047</mn></mrow><annotation encoding="application/x-tex">47\,619\,047</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>388</mn></mrow><annotation encoding="application/x-tex">0.000\,388</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>577</mn><mspace width="0.167em"></mspace><mn>319</mn></mrow><annotation encoding="application/x-tex">2\,577\,319</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>100</mn></mrow><annotation encoding="application/x-tex">0.000\,100</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">10\,000\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.013</mn><mspace width="0.167em"></mspace><mn>400</mn></mrow><annotation encoding="application/x-tex">0.013\,400</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>74</mn><mspace width="0.167em"></mspace><mn>626</mn><mspace width="0.167em"></mspace><mn>865</mn></mrow><annotation encoding="application/x-tex">74\,626\,865</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.020</mn><mspace width="0.167em"></mspace><mn>791</mn></mrow><annotation encoding="application/x-tex">0.020\,791</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>097</mn><mspace width="0.167em"></mspace><mn>734</mn></mrow><annotation encoding="application/x-tex">48\,097\,734</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>920</mn></mrow><annotation encoding="application/x-tex">0.046\,920</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>312</mn><mspace width="0.167em"></mspace><mn>872</mn></mrow><annotation encoding="application/x-tex">21\,312\,872</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.045</mn><mspace width="0.167em"></mspace><mn>331</mn></mrow><annotation encoding="application/x-tex">0.045\,331</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>059</mn><mspace width="0.167em"></mspace><mn>958</mn></mrow><annotation encoding="application/x-tex">22\,059\,958</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.411</mn><mspace width="0.167em"></mspace><mn>640</mn></mrow><annotation encoding="application/x-tex">4.411\,640</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>673</mn><mspace width="0.167em"></mspace><mn>073</mn></mrow><annotation encoding="application/x-tex">226\,673\,073</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8.280</mn><mspace width="0.167em"></mspace><mn>048</mn></mrow><annotation encoding="application/x-tex">8.280\,048</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>120</mn><mspace width="0.167em"></mspace><mn>772</mn><mspace width="0.167em"></mspace><mn>246</mn></mrow><annotation encoding="application/x-tex">120\,772\,246</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61.713</mn><mspace width="0.167em"></mspace><mn>235</mn></mrow><annotation encoding="application/x-tex">61.713\,235</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>203</mn><mspace width="0.167em"></mspace><mn>979</mn></mrow><annotation encoding="application/x-tex">16\,203\,979</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49.259</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">49.259\,080</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>300</mn><mspace width="0.167em"></mspace><mn>825</mn></mrow><annotation encoding="application/x-tex">20\,300\,825</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45.927</mn><mspace width="0.167em"></mspace><mn>810</mn></mrow><annotation encoding="application/x-tex">45.927\,810</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>217</mn><mspace width="0.167em"></mspace><mn>733</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">217\,733\,003</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>107.315</mn><mspace width="0.167em"></mspace><mn>495</mn></mrow><annotation encoding="application/x-tex">107.315\,495</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>93183188</mn><annotation encoding="application/x-tex">93183188</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>313</mn></mrow><annotation encoding="application/x-tex">0.000\,313</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>194</mn><mspace width="0.167em"></mspace><mn>888</mn></mrow><annotation encoding="application/x-tex">3\,194\,888</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>166</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">166\,666\,666</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>374</mn></mrow><annotation encoding="application/x-tex">0.000\,374</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>673</mn><mspace width="0.167em"></mspace><mn>796</mn></mrow><annotation encoding="application/x-tex">2\,673\,796</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>542</mn></mrow><annotation encoding="application/x-tex">0.006\,542</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>152</mn><mspace width="0.167em"></mspace><mn>858</mn><mspace width="0.167em"></mspace><mn>453</mn></mrow><annotation encoding="application/x-tex">152\,858\,453</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.003</mn><mspace width="0.167em"></mspace><mn>067</mn></mrow><annotation encoding="application/x-tex">0.003\,067</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>326</mn><mspace width="0.167em"></mspace><mn>051</mn><mspace width="0.167em"></mspace><mn>516</mn></mrow><annotation encoding="application/x-tex">326\,051\,516</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.033</mn><mspace width="0.167em"></mspace><mn>893</mn></mrow><annotation encoding="application/x-tex">0.033\,893</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>29</mn><mspace width="0.167em"></mspace><mn>504</mn><mspace width="0.167em"></mspace><mn>617</mn></mrow><annotation encoding="application/x-tex">29\,504\,617</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.018</mn><mspace width="0.167em"></mspace><mn>518</mn></mrow><annotation encoding="application/x-tex">0.018\,518</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>54</mn><mspace width="0.167em"></mspace><mn>001</mn><mspace width="0.167em"></mspace><mn>512</mn></mrow><annotation encoding="application/x-tex">54\,001\,512</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.581</mn><mspace width="0.167em"></mspace><mn>145</mn></mrow><annotation encoding="application/x-tex">2.581\,145</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>387</mn><mspace width="0.167em"></mspace><mn>424</mn><mspace width="0.167em"></mspace><mn>960</mn></mrow><annotation encoding="application/x-tex">387\,424\,960</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.024</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">1.024\,011</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>976</mn><mspace width="0.167em"></mspace><mn>552</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">976\,552\,009</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47.618</mn><mspace width="0.167em"></mspace><mn>644</mn></mrow><annotation encoding="application/x-tex">47.618\,644</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>177</mn></mrow><annotation encoding="application/x-tex">21\,000\,177</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.480</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">19.480\,989</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>332</mn><mspace width="0.167em"></mspace><mn>096</mn></mrow><annotation encoding="application/x-tex">51\,332\,096</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>28.125</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">28.125\,049</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>355</mn><mspace width="0.167em"></mspace><mn>554</mn><mspace width="0.167em"></mspace><mn>936</mn></mrow><annotation encoding="application/x-tex">355\,554\,936</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34.616</mn><mspace width="0.167em"></mspace><mn>087</mn></mrow><annotation encoding="application/x-tex">34.616\,087</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>288</mn><mspace width="0.167em"></mspace><mn>883</mn><mspace width="0.167em"></mspace><mn>027</mn></mrow><annotation encoding="application/x-tex">288\,883\,027</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h6>Latency</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="14">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">0.000\,023</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>736</mn><annotation encoding="application/x-tex">736</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>042</mn></mrow><annotation encoding="application/x-tex">0.000\,042</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>726</mn><annotation encoding="application/x-tex">726</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>271</mn><annotation encoding="application/x-tex">271</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>004</mn></mrow><annotation encoding="application/x-tex">0.000\,004</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>735</mn><annotation encoding="application/x-tex">735</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>265</mn><annotation encoding="application/x-tex">265</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>018</mn></mrow><annotation encoding="application/x-tex">0.000\,018</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>700</mn><annotation encoding="application/x-tex">700</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>299</mn><annotation encoding="application/x-tex">299</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">0.000\,011</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>766</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">766\,875</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>233</mn><mspace width="0.167em"></mspace><mn>123</mn></mrow><annotation encoding="application/x-tex">233\,123</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>437</mn></mrow><annotation encoding="application/x-tex">0.002\,437</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>769</mn><mspace width="0.167em"></mspace><mn>699</mn></mrow><annotation encoding="application/x-tex">769\,699</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>230</mn><mspace width="0.167em"></mspace><mn>290</mn></mrow><annotation encoding="application/x-tex">230\,290</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>077</mn></mrow><annotation encoding="application/x-tex">0.000\,077</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>746</mn><mspace width="0.167em"></mspace><mn>335</mn></mrow><annotation encoding="application/x-tex">746\,335</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>649</mn></mrow><annotation encoding="application/x-tex">253\,649</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>903</mn></mrow><annotation encoding="application/x-tex">0.016\,903</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>739</mn><mspace width="0.167em"></mspace><mn>203</mn></mrow><annotation encoding="application/x-tex">739\,203</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>260</mn><mspace width="0.167em"></mspace><mn>770</mn></mrow><annotation encoding="application/x-tex">260\,770</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>19</mn><annotation encoding="application/x-tex">19</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>119</mn></mrow><annotation encoding="application/x-tex">0.000\,119</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>778</mn><mspace width="0.167em"></mspace><mn>041</mn><mspace width="0.167em"></mspace><mn>048</mn></mrow><annotation encoding="application/x-tex">778\,041\,048</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>221</mn><mspace width="0.167em"></mspace><mn>953</mn><mspace width="0.167em"></mspace><mn>956</mn></mrow><annotation encoding="application/x-tex">221\,953\,956</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>995</mn></mrow><annotation encoding="application/x-tex">4\,995</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.372</mn><mspace width="0.167em"></mspace><mn>019</mn></mrow><annotation encoding="application/x-tex">2.372\,019</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>773</mn><mspace width="0.167em"></mspace><mn>599</mn><mspace width="0.167em"></mspace><mn>499</mn></mrow><annotation encoding="application/x-tex">773\,599\,499</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>394</mn><mspace width="0.167em"></mspace><mn>128</mn></mrow><annotation encoding="application/x-tex">226\,394\,128</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>358</mn></mrow><annotation encoding="application/x-tex">6\,358</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.004</mn><mspace width="0.167em"></mspace><mn>569</mn></mrow><annotation encoding="application/x-tex">0.004\,569</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>746</mn><mspace width="0.167em"></mspace><mn>486</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">746\,486\,003</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>494</mn><mspace width="0.167em"></mspace><mn>790</mn></mrow><annotation encoding="application/x-tex">253\,494\,790</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>085</mn></mrow><annotation encoding="application/x-tex">19\,085</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>106</mn><annotation encoding="application/x-tex">106</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>18.939</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">18.939\,011</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>741</mn><mspace width="0.167em"></mspace><mn>265</mn><mspace width="0.167em"></mspace><mn>650</mn></mrow><annotation encoding="application/x-tex">741\,265\,650</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>258</mn><mspace width="0.167em"></mspace><mn>717</mn><mspace width="0.167em"></mspace><mn>702</mn></mrow><annotation encoding="application/x-tex">258\,717\,702</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>547</mn></mrow><annotation encoding="application/x-tex">16\,547</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>85</mn><annotation encoding="application/x-tex">85</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>128</mn></mrow><annotation encoding="application/x-tex">0.000\,128</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>781</mn><mspace width="0.167em"></mspace><mn>041</mn><mspace width="0.167em"></mspace><mn>097</mn></mrow><annotation encoding="application/x-tex">7\,781\,041\,097</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>218</mn><mspace width="0.167em"></mspace><mn>900</mn><mspace width="0.167em"></mspace><mn>231</mn></mrow><annotation encoding="application/x-tex">2\,218\,900\,231</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>58</mn><mspace width="0.167em"></mspace><mn>622</mn></mrow><annotation encoding="application/x-tex">58\,622</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>50</mn><annotation encoding="application/x-tex">50</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51.349</mn><mspace width="0.167em"></mspace><mn>387</mn></mrow><annotation encoding="application/x-tex">51.349\,387</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>738</mn><mspace width="0.167em"></mspace><mn>549</mn><mspace width="0.167em"></mspace><mn>626</mn></mrow><annotation encoding="application/x-tex">7\,738\,549\,626</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>261</mn><mspace width="0.167em"></mspace><mn>396</mn><mspace width="0.167em"></mspace><mn>549</mn></mrow><annotation encoding="application/x-tex">2\,261\,396\,549</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>53</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">53\,792</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>779</mn><annotation encoding="application/x-tex">779</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>220</mn><annotation encoding="application/x-tex">220</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>737</mn><annotation encoding="application/x-tex">737</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>260</mn><annotation encoding="application/x-tex">260</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>742</mn><annotation encoding="application/x-tex">742</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>258</mn><annotation encoding="application/x-tex">258</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>737</mn><annotation encoding="application/x-tex">737</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">0.000\,011</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>870</mn></mrow><annotation encoding="application/x-tex">758\,870</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>126</mn></mrow><annotation encoding="application/x-tex">241\,126</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>177</mn></mrow><annotation encoding="application/x-tex">0.000\,177</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>529</mn></mrow><annotation encoding="application/x-tex">758\,529</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>453</mn></mrow><annotation encoding="application/x-tex">241\,453</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>052</mn></mrow><annotation encoding="application/x-tex">0.000\,052</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>740</mn><mspace width="0.167em"></mspace><mn>348</mn></mrow><annotation encoding="application/x-tex">740\,348</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>259</mn><mspace width="0.167em"></mspace><mn>644</mn></mrow><annotation encoding="application/x-tex">259\,644</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>409</mn></mrow><annotation encoding="application/x-tex">0.006\,409</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>641</mn></mrow><annotation encoding="application/x-tex">745\,641</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>334</mn></mrow><annotation encoding="application/x-tex">254\,334</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>19</mn><annotation encoding="application/x-tex">19</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>042</mn></mrow><annotation encoding="application/x-tex">0.000\,042</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>772</mn><mspace width="0.167em"></mspace><mn>114</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">772\,114\,172</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>227</mn><mspace width="0.167em"></mspace><mn>881</mn><mspace width="0.167em"></mspace><mn>241</mn></mrow><annotation encoding="application/x-tex">227\,881\,241</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>587</mn></mrow><annotation encoding="application/x-tex">4\,587</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.204</mn><mspace width="0.167em"></mspace><mn>094</mn></mrow><annotation encoding="application/x-tex">0.204\,094</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>767</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>634</mn></mrow><annotation encoding="application/x-tex">767\,987\,634</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>232</mn><mspace width="0.167em"></mspace><mn>007</mn><mspace width="0.167em"></mspace><mn>898</mn></mrow><annotation encoding="application/x-tex">232\,007\,898</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>457</mn></mrow><annotation encoding="application/x-tex">4\,457</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>871</mn></mrow><annotation encoding="application/x-tex">0.002\,871</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>748</mn><mspace width="0.167em"></mspace><mn>034</mn><mspace width="0.167em"></mspace><mn>858</mn></mrow><annotation encoding="application/x-tex">748\,034\,858</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>251</mn><mspace width="0.167em"></mspace><mn>951</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">251\,951\,964</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13</mn><mspace width="0.167em"></mspace><mn>154</mn></mrow><annotation encoding="application/x-tex">13\,154</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8.329</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">8.329\,990</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>391</mn><mspace width="0.167em"></mspace><mn>293</mn></mrow><annotation encoding="application/x-tex">745\,391\,293</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>599</mn><mspace width="0.167em"></mspace><mn>112</mn></mrow><annotation encoding="application/x-tex">254\,599\,112</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>572</mn></mrow><annotation encoding="application/x-tex">9\,572</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">0.000\,072</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>720</mn><mspace width="0.167em"></mspace><mn>702</mn><mspace width="0.167em"></mspace><mn>598</mn></mrow><annotation encoding="application/x-tex">7\,720\,702\,598</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>279</mn><mspace width="0.167em"></mspace><mn>248</mn><mspace width="0.167em"></mspace><mn>850</mn></mrow><annotation encoding="application/x-tex">2\,279\,248\,850</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>552</mn></mrow><annotation encoding="application/x-tex">48\,552</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.388</mn><mspace width="0.167em"></mspace><mn>545</mn></mrow><annotation encoding="application/x-tex">16.388\,545</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>679</mn><mspace width="0.167em"></mspace><mn>523</mn><mspace width="0.167em"></mspace><mn>460</mn></mrow><annotation encoding="application/x-tex">7\,679\,523\,460</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>320</mn><mspace width="0.167em"></mspace><mn>428</mn><mspace width="0.167em"></mspace><mn>793</mn></mrow><annotation encoding="application/x-tex">2\,320\,428\,793</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>726</mn></mrow><annotation encoding="application/x-tex">47\,726</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>008</mn></mrow><annotation encoding="application/x-tex">0.000\,008</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>768</mn><annotation encoding="application/x-tex">768</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>232</mn><annotation encoding="application/x-tex">232</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">0.000\,054</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>758</mn><annotation encoding="application/x-tex">758</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>237</mn><annotation encoding="application/x-tex">237</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>748</mn><annotation encoding="application/x-tex">748</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>252</mn><annotation encoding="application/x-tex">252</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>741</mn><annotation encoding="application/x-tex">741</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>259</mn><annotation encoding="application/x-tex">259</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>763</mn><mspace width="0.167em"></mspace><mn>508</mn></mrow><annotation encoding="application/x-tex">763\,508</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>236</mn><mspace width="0.167em"></mspace><mn>491</mn></mrow><annotation encoding="application/x-tex">236\,491</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>185</mn></mrow><annotation encoding="application/x-tex">0.000\,185</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>765</mn><mspace width="0.167em"></mspace><mn>899</mn></mrow><annotation encoding="application/x-tex">765\,899</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>234</mn><mspace width="0.167em"></mspace><mn>092</mn></mrow><annotation encoding="application/x-tex">234\,092</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>074</mn></mrow><annotation encoding="application/x-tex">0.000\,074</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>131</mn></mrow><annotation encoding="application/x-tex">745\,131</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>864</mn></mrow><annotation encoding="application/x-tex">254\,864</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>895</mn></mrow><annotation encoding="application/x-tex">0.000\,895</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>750</mn><mspace width="0.167em"></mspace><mn>934</mn></mrow><annotation encoding="application/x-tex">750\,934</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>249</mn><mspace width="0.167em"></mspace><mn>047</mn></mrow><annotation encoding="application/x-tex">249\,047</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">0.000\,054</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>769</mn><mspace width="0.167em"></mspace><mn>831</mn><mspace width="0.167em"></mspace><mn>147</mn></mrow><annotation encoding="application/x-tex">769\,831\,147</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>230</mn><mspace width="0.167em"></mspace><mn>164</mn><mspace width="0.167em"></mspace><mn>413</mn></mrow><annotation encoding="application/x-tex">230\,164\,413</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>440</mn></mrow><annotation encoding="application/x-tex">4\,440</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.210</mn><mspace width="0.167em"></mspace><mn>026</mn></mrow><annotation encoding="application/x-tex">0.210\,026</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>770</mn><mspace width="0.167em"></mspace><mn>968</mn><mspace width="0.167em"></mspace><mn>775</mn></mrow><annotation encoding="application/x-tex">770\,968\,775</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>229</mn><mspace width="0.167em"></mspace><mn>027</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">229\,027\,009</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>204</mn></mrow><annotation encoding="application/x-tex">4\,204</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>377</mn></mrow><annotation encoding="application/x-tex">0.006\,377</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>753</mn><mspace width="0.167em"></mspace><mn>974</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">753\,974\,964</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>246</mn><mspace width="0.167em"></mspace><mn>013</mn><mspace width="0.167em"></mspace><mn>774</mn></mrow><annotation encoding="application/x-tex">246\,013\,774</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">11\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.935</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">2.935\,007</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>752</mn><mspace width="0.167em"></mspace><mn>346</mn><mspace width="0.167em"></mspace><mn>656</mn></mrow><annotation encoding="application/x-tex">752\,346\,656</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>247</mn><mspace width="0.167em"></mspace><mn>643</mn><mspace width="0.167em"></mspace><mn>704</mn></mrow><annotation encoding="application/x-tex">247\,643\,704</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>616</mn></mrow><annotation encoding="application/x-tex">9\,616</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">0.000\,132</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>699</mn><mspace width="0.167em"></mspace><mn>417</mn><mspace width="0.167em"></mspace><mn>275</mn></mrow><annotation encoding="application/x-tex">7\,699\,417\,275</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>300</mn><mspace width="0.167em"></mspace><mn>534</mn><mspace width="0.167em"></mspace><mn>425</mn></mrow><annotation encoding="application/x-tex">2\,300\,534\,425</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>299</mn></mrow><annotation encoding="application/x-tex">48\,299</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.338</mn><mspace width="0.167em"></mspace><mn>763</mn></mrow><annotation encoding="application/x-tex">16.338\,763</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>689</mn><mspace width="0.167em"></mspace><mn>689</mn><mspace width="0.167em"></mspace><mn>639</mn></mrow><annotation encoding="application/x-tex">7\,689\,689\,639</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>310</mn><mspace width="0.167em"></mspace><mn>264</mn><mspace width="0.167em"></mspace><mn>815</mn></mrow><annotation encoding="application/x-tex">2\,310\,264\,815</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">45\,530</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h5>FreeBSD</h5>
|
||
<h6>Memory</h6>
|
||
<table>
|
||
<tr>
|
||
<th rowspan="2">
|
||
Array Size
|
||
</th>
|
||
<th colspan="2">
|
||
Peak RSS (bytes)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>792</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,792\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>548</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">4\,548\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>913</mn><mspace width="0.167em"></mspace><mn>836</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,913\,836\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8</mn><mspace width="0.167em"></mspace><mn>093</mn><mspace width="0.167em"></mspace><mn>936</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">8\,093\,936\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
<td style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p>The first row is a bit surprising. It turns out that if I execute
|
||
<code>mem_dynarray1000</code> in an infinite loop,
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>90</mn><mi>%</mi></mrow><annotation encoding="application/x-tex">90\%</annotation></semantics></math>
|
||
of the time it prints
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>,
|
||
and other times it prints numbers which differ by several orders of
|
||
magnitude between each other. It looks like a bug. Results on Mac and
|
||
Linux are stable between runs. It’s safe to assume numbers in this table
|
||
are underreported.</p>
|
||
<p>When it comes to the OOM killer, the first time I run the test it
|
||
killed not only the process running the benchmark, but also my SSH
|
||
session. Case in point for my rant about overcommit and OOM killer
|
||
earlier.</p>
|
||
<h6>Throughput</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="5">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>017</mn></mrow><annotation encoding="application/x-tex">0.000\,017</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>58</mn><mspace width="0.167em"></mspace><mn>823</mn><mspace width="0.167em"></mspace><mn>529</mn></mrow><annotation encoding="application/x-tex">58\,823\,529</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>061</mn></mrow><annotation encoding="application/x-tex">0.000\,061</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>393</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">16\,393\,442</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>069</mn></mrow><annotation encoding="application/x-tex">0.000\,069</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14</mn><mspace width="0.167em"></mspace><mn>492</mn><mspace width="0.167em"></mspace><mn>753</mn></mrow><annotation encoding="application/x-tex">14\,492\,753</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>145</mn></mrow><annotation encoding="application/x-tex">0.000\,145</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>896</mn><mspace width="0.167em"></mspace><mn>551</mn></mrow><annotation encoding="application/x-tex">6\,896\,551</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.014</mn><mspace width="0.167em"></mspace><mn>053</mn></mrow><annotation encoding="application/x-tex">0.014\,053</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>159</mn><mspace width="0.167em"></mspace><mn>183</mn></mrow><annotation encoding="application/x-tex">71\,159\,183</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.030</mn><mspace width="0.167em"></mspace><mn>769</mn></mrow><annotation encoding="application/x-tex">0.030\,769</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>500</mn><mspace width="0.167em"></mspace><mn>243</mn></mrow><annotation encoding="application/x-tex">32\,500\,243</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.064</mn><mspace width="0.167em"></mspace><mn>249</mn></mrow><annotation encoding="application/x-tex">0.064\,249</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>564</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">15\,564\,444</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.127</mn><mspace width="0.167em"></mspace><mn>867</mn></mrow><annotation encoding="application/x-tex">0.127\,867</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>820</mn><mspace width="0.167em"></mspace><mn>626</mn></mrow><annotation encoding="application/x-tex">7\,820\,626</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12.720</mn><mspace width="0.167em"></mspace><mn>856</mn></mrow><annotation encoding="application/x-tex">12.720\,856</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>78</mn><mspace width="0.167em"></mspace><mn>611</mn><mspace width="0.167em"></mspace><mn>062</mn></mrow><annotation encoding="application/x-tex">78\,611\,062</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33.253</mn><mspace width="0.167em"></mspace><mn>775</mn></mrow><annotation encoding="application/x-tex">33.253\,775</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>30</mn><mspace width="0.167em"></mspace><mn>071</mn><mspace width="0.167em"></mspace><mn>773</mn></mrow><annotation encoding="application/x-tex">30\,071\,773</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66.044</mn><mspace width="0.167em"></mspace><mn>360</mn></mrow><annotation encoding="application/x-tex">66.044\,360</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>141</mn><mspace width="0.167em"></mspace><mn>338</mn></mrow><annotation encoding="application/x-tex">15\,141\,338</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>134.103</mn><mspace width="0.167em"></mspace><mn>236</mn></mrow><annotation encoding="application/x-tex">134.103\,236</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>456</mn><mspace width="0.167em"></mspace><mn>941</mn></mrow><annotation encoding="application/x-tex">7\,456\,941</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>83</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">83\,333\,333</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>043</mn></mrow><annotation encoding="application/x-tex">0.000\,043</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>23</mn><mspace width="0.167em"></mspace><mn>255</mn><mspace width="0.167em"></mspace><mn>813</mn></mrow><annotation encoding="application/x-tex">23\,255\,813</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>029</mn></mrow><annotation encoding="application/x-tex">0.000\,029</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>482</mn><mspace width="0.167em"></mspace><mn>758</mn></mrow><annotation encoding="application/x-tex">34\,482\,758</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>030</mn></mrow><annotation encoding="application/x-tex">0.000\,030</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">33\,333\,333</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.008</mn><mspace width="0.167em"></mspace><mn>916</mn></mrow><annotation encoding="application/x-tex">0.008\,916</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>112</mn><mspace width="0.167em"></mspace><mn>157</mn><mspace width="0.167em"></mspace><mn>918</mn></mrow><annotation encoding="application/x-tex">112\,157\,918</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>711</mn></mrow><annotation encoding="application/x-tex">0.005\,711</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>175</mn><mspace width="0.167em"></mspace><mn>100</mn><mspace width="0.167em"></mspace><mn>682</mn></mrow><annotation encoding="application/x-tex">175\,100\,682</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.024</mn><mspace width="0.167em"></mspace><mn>446</mn></mrow><annotation encoding="application/x-tex">0.024\,446</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>906</mn><mspace width="0.167em"></mspace><mn>487</mn></mrow><annotation encoding="application/x-tex">40\,906\,487</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.020</mn><mspace width="0.167em"></mspace><mn>466</mn></mrow><annotation encoding="application/x-tex">0.020\,466</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>861</mn><mspace width="0.167em"></mspace><mn>526</mn></mrow><annotation encoding="application/x-tex">48\,861\,526</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.729</mn><mspace width="0.167em"></mspace><mn>038</mn></mrow><annotation encoding="application/x-tex">3.729\,038</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>268</mn><mspace width="0.167em"></mspace><mn>165</mn><mspace width="0.167em"></mspace><mn>677</mn></mrow><annotation encoding="application/x-tex">268\,165\,677</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.950</mn><mspace width="0.167em"></mspace><mn>968</mn></mrow><annotation encoding="application/x-tex">3.950\,968</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>102</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">253\,102\,530</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.577</mn><mspace width="0.167em"></mspace><mn>674</mn></mrow><annotation encoding="application/x-tex">16.577\,674</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>60</mn><mspace width="0.167em"></mspace><mn>322</mn><mspace width="0.167em"></mspace><mn>093</mn></mrow><annotation encoding="application/x-tex">60\,322\,093</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.598</mn><mspace width="0.167em"></mspace><mn>912</mn></mrow><annotation encoding="application/x-tex">19.598\,912</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>023</mn><mspace width="0.167em"></mspace><mn>240</mn></mrow><annotation encoding="application/x-tex">51\,023\,240</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">0.000\,007</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>142</mn><mspace width="0.167em"></mspace><mn>857</mn><mspace width="0.167em"></mspace><mn>142</mn></mrow><annotation encoding="application/x-tex">142\,857\,142</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>022</mn></mrow><annotation encoding="application/x-tex">0.000\,022</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>454</mn><mspace width="0.167em"></mspace><mn>545</mn></mrow><annotation encoding="application/x-tex">45\,454\,545</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">66\,666\,666</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">66\,666\,666</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.003</mn><mspace width="0.167em"></mspace><mn>832</mn></mrow><annotation encoding="application/x-tex">0.003\,832</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>260</mn><mspace width="0.167em"></mspace><mn>960</mn><mspace width="0.167em"></mspace><mn>334</mn></mrow><annotation encoding="application/x-tex">260\,960\,334</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>374</mn></mrow><annotation encoding="application/x-tex">0.002\,374</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>421</mn><mspace width="0.167em"></mspace><mn>229</mn><mspace width="0.167em"></mspace><mn>991</mn></mrow><annotation encoding="application/x-tex">421\,229\,991</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.014</mn><mspace width="0.167em"></mspace><mn>070</mn></mrow><annotation encoding="application/x-tex">0.014\,070</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>073</mn><mspace width="0.167em"></mspace><mn>205</mn></mrow><annotation encoding="application/x-tex">71\,073\,205</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.011</mn><mspace width="0.167em"></mspace><mn>030</mn></mrow><annotation encoding="application/x-tex">0.011\,030</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>90</mn><mspace width="0.167em"></mspace><mn>661</mn><mspace width="0.167em"></mspace><mn>831</mn></mrow><annotation encoding="application/x-tex">90\,661\,831</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.948</mn><mspace width="0.167em"></mspace><mn>549</mn></mrow><annotation encoding="application/x-tex">3.948\,549</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>257</mn><mspace width="0.167em"></mspace><mn>589</mn></mrow><annotation encoding="application/x-tex">253\,257\,589</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.587</mn><mspace width="0.167em"></mspace><mn>411</mn></mrow><annotation encoding="application/x-tex">2.587\,411</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>386</mn><mspace width="0.167em"></mspace><mn>486</mn><mspace width="0.167em"></mspace><mn>723</mn></mrow><annotation encoding="application/x-tex">386\,486\,723</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.367</mn><mspace width="0.167em"></mspace><mn>930</mn></mrow><annotation encoding="application/x-tex">16.367\,930</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61</mn><mspace width="0.167em"></mspace><mn>095</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">61\,095\,080</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.173</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">19.173\,182</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>52</mn><mspace width="0.167em"></mspace><mn>156</mn><mspace width="0.167em"></mspace><mn>183</mn></mrow><annotation encoding="application/x-tex">52\,156\,183</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h6>Latency</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="14">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>840</mn><annotation encoding="application/x-tex">840</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>159</mn><annotation encoding="application/x-tex">159</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>229</mn></mrow><annotation encoding="application/x-tex">0.000\,229</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>794</mn><annotation encoding="application/x-tex">794</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>205</mn><annotation encoding="application/x-tex">205</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>727</mn><annotation encoding="application/x-tex">727</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>273</mn><annotation encoding="application/x-tex">273</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.048</mn><mspace width="0.167em"></mspace><mn>135</mn></mrow><annotation encoding="application/x-tex">0.048\,135</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>721</mn><annotation encoding="application/x-tex">721</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>277</mn><annotation encoding="application/x-tex">277</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>504</mn></mrow><annotation encoding="application/x-tex">0.007\,504</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>957</mn><mspace width="0.167em"></mspace><mn>349</mn></mrow><annotation encoding="application/x-tex">957\,349</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>42</mn><mspace width="0.167em"></mspace><mn>619</mn></mrow><annotation encoding="application/x-tex">42\,619</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>10</mn><annotation encoding="application/x-tex">10</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>21</mn><annotation encoding="application/x-tex">21</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>498</mn></mrow><annotation encoding="application/x-tex">0.007\,498</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>954</mn><mspace width="0.167em"></mspace><mn>260</mn></mrow><annotation encoding="application/x-tex">954\,260</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>710</mn></mrow><annotation encoding="application/x-tex">45\,710</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>491</mn></mrow><annotation encoding="application/x-tex">0.007\,491</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>252</mn></mrow><annotation encoding="application/x-tex">952\,252</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>717</mn></mrow><annotation encoding="application/x-tex">47\,717</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.025</mn><mspace width="0.167em"></mspace><mn>308</mn></mrow><annotation encoding="application/x-tex">0.025\,308</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>910</mn><mspace width="0.167em"></mspace><mn>396</mn></mrow><annotation encoding="application/x-tex">910\,396</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>89</mn><mspace width="0.167em"></mspace><mn>553</mn></mrow><annotation encoding="application/x-tex">89\,553</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>14</mn><annotation encoding="application/x-tex">14</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>26</mn><annotation encoding="application/x-tex">26</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>476</mn></mrow><annotation encoding="application/x-tex">0.007\,476</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>935</mn><mspace width="0.167em"></mspace><mn>647</mn><mspace width="0.167em"></mspace><mn>184</mn></mrow><annotation encoding="application/x-tex">935\,647\,184</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>64</mn><mspace width="0.167em"></mspace><mn>329</mn><mspace width="0.167em"></mspace><mn>993</mn></mrow><annotation encoding="application/x-tex">64\,329\,993</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>495</mn><annotation encoding="application/x-tex">495</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>22264</mn><annotation encoding="application/x-tex">22264</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.924</mn><mspace width="0.167em"></mspace><mn>694</mn></mrow><annotation encoding="application/x-tex">4.924\,694</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>904</mn><mspace width="0.167em"></mspace><mn>947</mn><mspace width="0.167em"></mspace><mn>744</mn></mrow><annotation encoding="application/x-tex">904\,947\,744</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>95</mn><mspace width="0.167em"></mspace><mn>027</mn><mspace width="0.167em"></mspace><mn>736</mn></mrow><annotation encoding="application/x-tex">95\,027\,736</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>120</mn><annotation encoding="application/x-tex">120</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>388</mn></mrow><annotation encoding="application/x-tex">24\,388</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.004</mn><mspace width="0.167em"></mspace><mn>695</mn></mrow><annotation encoding="application/x-tex">0.004\,695</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>863</mn><mspace width="0.167em"></mspace><mn>930</mn><mspace width="0.167em"></mspace><mn>190</mn></mrow><annotation encoding="application/x-tex">863\,930\,190</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>136</mn><mspace width="0.167em"></mspace><mn>034</mn><mspace width="0.167em"></mspace><mn>658</mn></mrow><annotation encoding="application/x-tex">136\,034\,658</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>684</mn></mrow><annotation encoding="application/x-tex">3\,684</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>361</mn><annotation encoding="application/x-tex">361</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31</mn><mspace width="0.167em"></mspace><mn>107</mn></mrow><annotation encoding="application/x-tex">31\,107</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>28.367</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">28.367\,182</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>869</mn><mspace width="0.167em"></mspace><mn>894</mn><mspace width="0.167em"></mspace><mn>094</mn></mrow><annotation encoding="application/x-tex">869\,894\,094</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>069</mn><mspace width="0.167em"></mspace><mn>513</mn></mrow><annotation encoding="application/x-tex">130\,069\,513</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">3\,530</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>226</mn><annotation encoding="application/x-tex">226</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>623</mn></mrow><annotation encoding="application/x-tex">32\,623</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>817</mn><annotation encoding="application/x-tex">817</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>183</mn><annotation encoding="application/x-tex">183</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>597</mn></mrow><annotation encoding="application/x-tex">0.000\,597</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>790</mn><annotation encoding="application/x-tex">790</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>209</mn><annotation encoding="application/x-tex">209</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>799</mn><annotation encoding="application/x-tex">799</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>201</mn><annotation encoding="application/x-tex">201</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.054</mn><mspace width="0.167em"></mspace><mn>681</mn></mrow><annotation encoding="application/x-tex">0.054\,681</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>857</mn><annotation encoding="application/x-tex">857</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>142</mn><annotation encoding="application/x-tex">142</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>055</mn></mrow><annotation encoding="application/x-tex">0.006\,055</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>943</mn><mspace width="0.167em"></mspace><mn>746</mn></mrow><annotation encoding="application/x-tex">943\,746</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>56</mn><mspace width="0.167em"></mspace><mn>238</mn></mrow><annotation encoding="application/x-tex">56\,238</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>036</mn></mrow><annotation encoding="application/x-tex">0.006\,036</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>068</mn></mrow><annotation encoding="application/x-tex">952\,068</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>904</mn></mrow><annotation encoding="application/x-tex">47\,904</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>24</mn><annotation encoding="application/x-tex">24</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.006\,013</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>934</mn><mspace width="0.167em"></mspace><mn>911</mn></mrow><annotation encoding="application/x-tex">934\,911</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>65</mn><mspace width="0.167em"></mspace><mn>061</mn></mrow><annotation encoding="application/x-tex">65\,061</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>28</mn><annotation encoding="application/x-tex">28</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>994</mn></mrow><annotation encoding="application/x-tex">0.005\,994</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>937</mn><mspace width="0.167em"></mspace><mn>884</mn></mrow><annotation encoding="application/x-tex">937\,884</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>62</mn><mspace width="0.167em"></mspace><mn>084</mn></mrow><annotation encoding="application/x-tex">62\,084</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>043</mn></mrow><annotation encoding="application/x-tex">0.006\,043</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>892</mn><mspace width="0.167em"></mspace><mn>789</mn><mspace width="0.167em"></mspace><mn>630</mn></mrow><annotation encoding="application/x-tex">892\,789\,630</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>107</mn><mspace width="0.167em"></mspace><mn>189</mn><mspace width="0.167em"></mspace><mn>456</mn></mrow><annotation encoding="application/x-tex">107\,189\,456</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>92</mn><annotation encoding="application/x-tex">92</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>820</mn></mrow><annotation encoding="application/x-tex">20\,820</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.079</mn><mspace width="0.167em"></mspace><mn>716</mn></mrow><annotation encoding="application/x-tex">1.079\,716</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>868</mn><mspace width="0.167em"></mspace><mn>199</mn><mspace width="0.167em"></mspace><mn>213</mn></mrow><annotation encoding="application/x-tex">868\,199\,213</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>779</mn><mspace width="0.167em"></mspace><mn>846</mn></mrow><annotation encoding="application/x-tex">131\,779\,846</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>92</mn><annotation encoding="application/x-tex">92</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>837</mn></mrow><annotation encoding="application/x-tex">20\,837</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>322</mn></mrow><annotation encoding="application/x-tex">0.007\,322</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>867</mn><mspace width="0.167em"></mspace><mn>898</mn><mspace width="0.167em"></mspace><mn>304</mn></mrow><annotation encoding="application/x-tex">867\,898\,304</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>132</mn><mspace width="0.167em"></mspace><mn>073</mn><mspace width="0.167em"></mspace><mn>111</mn></mrow><annotation encoding="application/x-tex">132\,073\,111</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>900</mn></mrow><annotation encoding="application/x-tex">4\,900</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>886</mn><annotation encoding="application/x-tex">886</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>799</mn></mrow><annotation encoding="application/x-tex">22\,799</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.992</mn><mspace width="0.167em"></mspace><mn>284</mn></mrow><annotation encoding="application/x-tex">2.992\,284</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>851</mn><mspace width="0.167em"></mspace><mn>345</mn><mspace width="0.167em"></mspace><mn>064</mn></mrow><annotation encoding="application/x-tex">851\,345\,064</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>148</mn><mspace width="0.167em"></mspace><mn>627</mn><mspace width="0.167em"></mspace><mn>732</mn></mrow><annotation encoding="application/x-tex">148\,627\,732</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>090</mn></mrow><annotation encoding="application/x-tex">4\,090</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>680</mn><annotation encoding="application/x-tex">680</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>424</mn></mrow><annotation encoding="application/x-tex">22\,424</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>008</mn></mrow><annotation encoding="application/x-tex">0.000\,008</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>818</mn><annotation encoding="application/x-tex">818</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>182</mn><annotation encoding="application/x-tex">182</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>358</mn></mrow><annotation encoding="application/x-tex">0.000\,358</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>804</mn><annotation encoding="application/x-tex">804</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>195</mn><annotation encoding="application/x-tex">195</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>793</mn><annotation encoding="application/x-tex">793</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>207</mn><annotation encoding="application/x-tex">207</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.057</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">0.057\,792</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>847</mn><annotation encoding="application/x-tex">847</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>152</mn><annotation encoding="application/x-tex">152</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">0.005\,989</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>351</mn></mrow><annotation encoding="application/x-tex">952\,351</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>624</mn></mrow><annotation encoding="application/x-tex">47\,624</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>962</mn></mrow><annotation encoding="application/x-tex">0.005\,962</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>944</mn><mspace width="0.167em"></mspace><mn>598</mn></mrow><annotation encoding="application/x-tex">944\,598</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>55</mn><mspace width="0.167em"></mspace><mn>372</mn></mrow><annotation encoding="application/x-tex">55\,372</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>23</mn><annotation encoding="application/x-tex">23</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>943</mn></mrow><annotation encoding="application/x-tex">0.005\,943</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>940</mn><mspace width="0.167em"></mspace><mn>700</mn></mrow><annotation encoding="application/x-tex">940\,700</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>59</mn><mspace width="0.167em"></mspace><mn>272</mn></mrow><annotation encoding="application/x-tex">59\,272</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>367</mn></mrow><annotation encoding="application/x-tex">0.006\,367</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>950</mn><mspace width="0.167em"></mspace><mn>479</mn></mrow><annotation encoding="application/x-tex">950\,479</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49</mn><mspace width="0.167em"></mspace><mn>492</mn></mrow><annotation encoding="application/x-tex">49\,492</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>22</mn><annotation encoding="application/x-tex">22</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>070</mn></mrow><annotation encoding="application/x-tex">0.006\,070</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>889</mn><mspace width="0.167em"></mspace><mn>075</mn><mspace width="0.167em"></mspace><mn>210</mn></mrow><annotation encoding="application/x-tex">889\,075\,210</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>110</mn><mspace width="0.167em"></mspace><mn>903</mn><mspace width="0.167em"></mspace><mn>827</mn></mrow><annotation encoding="application/x-tex">110\,903\,827</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>94</mn><annotation encoding="application/x-tex">94</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>867</mn></mrow><annotation encoding="application/x-tex">20\,867</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.102</mn><mspace width="0.167em"></mspace><mn>612</mn></mrow><annotation encoding="application/x-tex">1.102\,612</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>867</mn><mspace width="0.167em"></mspace><mn>475</mn><mspace width="0.167em"></mspace><mn>739</mn></mrow><annotation encoding="application/x-tex">867\,475\,739</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>132</mn><mspace width="0.167em"></mspace><mn>503</mn><mspace width="0.167em"></mspace><mn>564</mn></mrow><annotation encoding="application/x-tex">132\,503\,564</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>103</mn><annotation encoding="application/x-tex">103</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>583</mn></mrow><annotation encoding="application/x-tex">20\,583</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>244</mn></mrow><annotation encoding="application/x-tex">0.007\,244</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>876</mn><mspace width="0.167em"></mspace><mn>357</mn><mspace width="0.167em"></mspace><mn>385</mn></mrow><annotation encoding="application/x-tex">876\,357\,385</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>123</mn><mspace width="0.167em"></mspace><mn>614</mn><mspace width="0.167em"></mspace><mn>252</mn></mrow><annotation encoding="application/x-tex">123\,614\,252</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>383</mn></mrow><annotation encoding="application/x-tex">4\,383</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>138</mn></mrow><annotation encoding="application/x-tex">1\,138</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>842</mn></mrow><annotation encoding="application/x-tex">22\,842</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.004</mn><mspace width="0.167em"></mspace><mn>393</mn></mrow><annotation encoding="application/x-tex">3.004\,393</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>843</mn><mspace width="0.167em"></mspace><mn>681</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">843\,681\,442</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>156</mn><mspace width="0.167em"></mspace><mn>290</mn><mspace width="0.167em"></mspace><mn>107</mn></mrow><annotation encoding="application/x-tex">156\,290\,107</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>391</mn></mrow><annotation encoding="application/x-tex">5\,391</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>635</mn><annotation encoding="application/x-tex">635</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>415</mn></mrow><annotation encoding="application/x-tex">22\,415</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h5>Linux</h5>
|
||
<h6>Memory</h6>
|
||
<table>
|
||
<tr>
|
||
<th rowspan="2">
|
||
Array Size
|
||
</th>
|
||
<th colspan="2">
|
||
Peak RSS (bytes)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>912</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">2\,912\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>856</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">2\,856\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>700</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">6\,700\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>124</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">7\,124\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>909</mn><mspace width="0.167em"></mspace><mn>288</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,909\,288\,000</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>198</mn><mspace width="0.167em"></mspace><mn>016</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">4\,198\,016\,000</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<td style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
<td style="text-align: center">
|
||
<code>std::bad_alloc</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p>Interestingly, here <code>std::vector</code> threw
|
||
<code>std::bad_alloc</code> and the benchmark wasn’t killed by the OOM
|
||
killer. However, in later benchmarks of throughput and latency it didn’t
|
||
happen and instead the OOM killer killed the process as usual.</p>
|
||
<h6>Throughput</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="5">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>029</mn></mrow><annotation encoding="application/x-tex">0.000\,029</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>482</mn><mspace width="0.167em"></mspace><mn>758</mn></mrow><annotation encoding="application/x-tex">34\,482\,758</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>046</mn></mrow><annotation encoding="application/x-tex">0.000\,046</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>739</mn><mspace width="0.167em"></mspace><mn>130</mn></mrow><annotation encoding="application/x-tex">21\,739\,130</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>151</mn></mrow><annotation encoding="application/x-tex">0.000\,151</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>622</mn><mspace width="0.167em"></mspace><mn>516</mn></mrow><annotation encoding="application/x-tex">6\,622\,516</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>277</mn></mrow><annotation encoding="application/x-tex">0.000\,277</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>610</mn><mspace width="0.167em"></mspace><mn>108</mn></mrow><annotation encoding="application/x-tex">3\,610\,108</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>614</mn></mrow><annotation encoding="application/x-tex">0.016\,614</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>60</mn><mspace width="0.167em"></mspace><mn>190</mn><mspace width="0.167em"></mspace><mn>201</mn></mrow><annotation encoding="application/x-tex">60\,190\,201</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.029</mn><mspace width="0.167em"></mspace><mn>401</mn></mrow><annotation encoding="application/x-tex">0.029\,401</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>012</mn><mspace width="0.167em"></mspace><mn>448</mn></mrow><annotation encoding="application/x-tex">34\,012\,448</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.111</mn><mspace width="0.167em"></mspace><mn>757</mn></mrow><annotation encoding="application/x-tex">0.111\,757</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8</mn><mspace width="0.167em"></mspace><mn>947</mn><mspace width="0.167em"></mspace><mn>985</mn></mrow><annotation encoding="application/x-tex">8\,947\,985</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.204</mn><mspace width="0.167em"></mspace><mn>039</mn></mrow><annotation encoding="application/x-tex">0.204\,039</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>901</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">4\,901\,023</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.356</mn><mspace width="0.167em"></mspace><mn>449</mn></mrow><annotation encoding="application/x-tex">16.356\,449</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61</mn><mspace width="0.167em"></mspace><mn>137</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">61\,137\,964</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31.854</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">31.854\,182</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31</mn><mspace width="0.167em"></mspace><mn>393</mn><mspace width="0.167em"></mspace><mn>052</mn></mrow><annotation encoding="application/x-tex">31\,393\,052</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>014</mn></mrow><annotation encoding="application/x-tex">0.000\,014</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>428</mn><mspace width="0.167em"></mspace><mn>571</mn></mrow><annotation encoding="application/x-tex">71\,428\,571</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>051</mn></mrow><annotation encoding="application/x-tex">0.000\,051</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>607</mn><mspace width="0.167em"></mspace><mn>843</mn></mrow><annotation encoding="application/x-tex">19\,607\,843</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>999</mn></mrow><annotation encoding="application/x-tex">0.005\,999</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>166</mn><mspace width="0.167em"></mspace><mn>694</mn><mspace width="0.167em"></mspace><mn>449</mn></mrow><annotation encoding="application/x-tex">166\,694\,449</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>483</mn></mrow><annotation encoding="application/x-tex">0.006\,483</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>154</mn><mspace width="0.167em"></mspace><mn>249</mn><mspace width="0.167em"></mspace><mn>575</mn></mrow><annotation encoding="application/x-tex">154\,249\,575</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.041</mn><mspace width="0.167em"></mspace><mn>418</mn></mrow><annotation encoding="application/x-tex">0.041\,418</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>144</mn><mspace width="0.167em"></mspace><mn>091</mn></mrow><annotation encoding="application/x-tex">24\,144\,091</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.024</mn><mspace width="0.167em"></mspace><mn>917</mn></mrow><annotation encoding="application/x-tex">0.024\,917</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>133</mn><mspace width="0.167em"></mspace><mn>242</mn></mrow><annotation encoding="application/x-tex">40\,133\,242</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.298</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">3.298\,444</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>303</mn><mspace width="0.167em"></mspace><mn>173</mn><mspace width="0.167em"></mspace><mn>253</mn></mrow><annotation encoding="application/x-tex">303\,173\,253</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.674</mn><mspace width="0.167em"></mspace><mn>902</mn></mrow><annotation encoding="application/x-tex">4.674\,902</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>213</mn><mspace width="0.167em"></mspace><mn>908</mn><mspace width="0.167em"></mspace><mn>227</mn></mrow><annotation encoding="application/x-tex">213\,908\,227</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="5">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Total time (seconds)
|
||
</th>
|
||
<th>
|
||
Throughput (Hz)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>041</mn></mrow><annotation encoding="application/x-tex">0.000\,041</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>390</mn><mspace width="0.167em"></mspace><mn>243</mn></mrow><annotation encoding="application/x-tex">24\,390\,243</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>905</mn></mrow><annotation encoding="application/x-tex">0.005\,905</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>169</mn><mspace width="0.167em"></mspace><mn>348</mn><mspace width="0.167em"></mspace><mn>010</mn></mrow><annotation encoding="application/x-tex">169\,348\,010</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>156</mn></mrow><annotation encoding="application/x-tex">0.006\,156</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>162</mn><mspace width="0.167em"></mspace><mn>443</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">162\,443\,144</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.040</mn><mspace width="0.167em"></mspace><mn>347</mn></mrow><annotation encoding="application/x-tex">0.040\,347</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>784</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">24\,784\,990</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.022</mn><mspace width="0.167em"></mspace><mn>915</mn></mrow><annotation encoding="application/x-tex">0.022\,915</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>639</mn><mspace width="0.167em"></mspace><mn>537</mn></mrow><annotation encoding="application/x-tex">43\,639\,537</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.295</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">3.295\,792</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>303</mn><mspace width="0.167em"></mspace><mn>417</mn><mspace width="0.167em"></mspace><mn>205</mn></mrow><annotation encoding="application/x-tex">303\,417\,205</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2.972950</mn><annotation encoding="application/x-tex">2.972950</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>336</mn><mspace width="0.167em"></mspace><mn>366</mn><mspace width="0.167em"></mspace><mn>235</mn></mrow><annotation encoding="application/x-tex">336\,366\,235</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="2" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h6>Latency</h6>
|
||
<table>
|
||
<tr>
|
||
<th colspan="14">
|
||
No optimisation (<code>-O0</code>)
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>736</mn><annotation encoding="application/x-tex">736</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>712</mn><annotation encoding="application/x-tex">712</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>288</mn><annotation encoding="application/x-tex">288</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>656</mn><annotation encoding="application/x-tex">656</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>344</mn><annotation encoding="application/x-tex">344</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>040</mn></mrow><annotation encoding="application/x-tex">0.000\,040</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>648</mn><annotation encoding="application/x-tex">648</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>349</mn><annotation encoding="application/x-tex">349</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>802</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">802\,250</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>197</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">197\,750</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>559</mn></mrow><annotation encoding="application/x-tex">0.000\,559</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>752</mn><mspace width="0.167em"></mspace><mn>663</mn></mrow><annotation encoding="application/x-tex">752\,663</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>247</mn><mspace width="0.167em"></mspace><mn>331</mn></mrow><annotation encoding="application/x-tex">247\,331</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>640</mn><mspace width="0.167em"></mspace><mn>887</mn></mrow><annotation encoding="application/x-tex">640\,887</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>359</mn><mspace width="0.167em"></mspace><mn>113</mn></mrow><annotation encoding="application/x-tex">359\,113</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.040</mn><mspace width="0.167em"></mspace><mn>269</mn></mrow><annotation encoding="application/x-tex">0.040\,269</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>629</mn><mspace width="0.167em"></mspace><mn>382</mn></mrow><annotation encoding="application/x-tex">629\,382</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>370</mn><mspace width="0.167em"></mspace><mn>605</mn></mrow><annotation encoding="application/x-tex">370\,605</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">0.000\,375</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>828</mn><mspace width="0.167em"></mspace><mn>756</mn><mspace width="0.167em"></mspace><mn>776</mn></mrow><annotation encoding="application/x-tex">828\,756\,776</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>171</mn><mspace width="0.167em"></mspace><mn>243</mn><mspace width="0.167em"></mspace><mn>207</mn></mrow><annotation encoding="application/x-tex">171\,243\,207</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.322</mn><mspace width="0.167em"></mspace><mn>032</mn></mrow><annotation encoding="application/x-tex">0.322\,032</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>744</mn><mspace width="0.167em"></mspace><mn>429</mn><mspace width="0.167em"></mspace><mn>501</mn></mrow><annotation encoding="application/x-tex">744\,429\,501</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>255</mn><mspace width="0.167em"></mspace><mn>568</mn><mspace width="0.167em"></mspace><mn>581</mn></mrow><annotation encoding="application/x-tex">255\,568\,581</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>899</mn></mrow><annotation encoding="application/x-tex">1\,899</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O1</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>018</mn></mrow><annotation encoding="application/x-tex">0.000\,018</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>853</mn><annotation encoding="application/x-tex">853</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>146</mn><annotation encoding="application/x-tex">146</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>871</mn><annotation encoding="application/x-tex">871</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>128</mn><annotation encoding="application/x-tex">128</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>005</mn></mrow><annotation encoding="application/x-tex">0.000\,005</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>780</mn><annotation encoding="application/x-tex">780</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>220</mn><annotation encoding="application/x-tex">220</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>763</mn><annotation encoding="application/x-tex">763</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>237</mn><annotation encoding="application/x-tex">237</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">0.000\,007</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>437</mn></mrow><annotation encoding="application/x-tex">758\,437</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>563</mn></mrow><annotation encoding="application/x-tex">241\,563</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>414</mn></mrow><annotation encoding="application/x-tex">0.000\,414</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>768</mn><mspace width="0.167em"></mspace><mn>969</mn></mrow><annotation encoding="application/x-tex">768\,969</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>231</mn><mspace width="0.167em"></mspace><mn>025</mn></mrow><annotation encoding="application/x-tex">231\,025</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>719</mn><mspace width="0.167em"></mspace><mn>386</mn></mrow><annotation encoding="application/x-tex">719\,386</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>280</mn><mspace width="0.167em"></mspace><mn>613</mn></mrow><annotation encoding="application/x-tex">280\,613</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">0.006\,132</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>718</mn><mspace width="0.167em"></mspace><mn>193</mn></mrow><annotation encoding="application/x-tex">718\,193</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>281</mn><mspace width="0.167em"></mspace><mn>800</mn></mrow><annotation encoding="application/x-tex">281\,800</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>351</mn></mrow><annotation encoding="application/x-tex">0.000\,351</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>766</mn><mspace width="0.167em"></mspace><mn>618</mn><mspace width="0.167em"></mspace><mn>933</mn></mrow><annotation encoding="application/x-tex">766\,618\,933</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>233</mn><mspace width="0.167em"></mspace><mn>381</mn><mspace width="0.167em"></mspace><mn>026</mn></mrow><annotation encoding="application/x-tex">233\,381\,026</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>36</mn><annotation encoding="application/x-tex">36</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.321</mn><mspace width="0.167em"></mspace><mn>729</mn></mrow><annotation encoding="application/x-tex">0.321\,729</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>760</mn><mspace width="0.167em"></mspace><mn>193</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">760\,193\,989</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>239</mn><mspace width="0.167em"></mspace><mn>804</mn><mspace width="0.167em"></mspace><mn>071</mn></mrow><annotation encoding="application/x-tex">239\,804\,071</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>31</mn><annotation encoding="application/x-tex">31</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1900</mn><annotation encoding="application/x-tex">1900</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="14">
|
||
Optimisation <code>-O2</code>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
Length
|
||
</th>
|
||
<th>
|
||
Element
|
||
</th>
|
||
<th>
|
||
Array
|
||
</th>
|
||
<th>
|
||
Min
|
||
</th>
|
||
<th>
|
||
Max
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
|
||
</th>
|
||
<th>
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>019</mn></mrow><annotation encoding="application/x-tex">0.000\,019</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>767</mn><annotation encoding="application/x-tex">767</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>230</mn><annotation encoding="application/x-tex">230</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">0.000\,023</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>769</mn><annotation encoding="application/x-tex">769</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>230</mn><annotation encoding="application/x-tex">230</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>004</mn></mrow><annotation encoding="application/x-tex">0.000\,004</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>735</mn><annotation encoding="application/x-tex">735</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>265</mn><annotation encoding="application/x-tex">265</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>005</mn></mrow><annotation encoding="application/x-tex">0.000\,005</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>732</mn><annotation encoding="application/x-tex">732</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>268</mn><annotation encoding="application/x-tex">268</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>764</mn><mspace width="0.167em"></mspace><mn>199</mn></mrow><annotation encoding="application/x-tex">764\,199</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>235</mn><mspace width="0.167em"></mspace><mn>801</mn></mrow><annotation encoding="application/x-tex">235\,801</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>611</mn></mrow><annotation encoding="application/x-tex">0.000\,611</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>761</mn><mspace width="0.167em"></mspace><mn>404</mn></mrow><annotation encoding="application/x-tex">761\,404</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>238</mn><mspace width="0.167em"></mspace><mn>590</mn></mrow><annotation encoding="application/x-tex">238\,590</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>702</mn><mspace width="0.167em"></mspace><mn>667</mn></mrow><annotation encoding="application/x-tex">702\,667</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>297</mn><mspace width="0.167em"></mspace><mn>332</mn></mrow><annotation encoding="application/x-tex">297\,332</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>420</mn></mrow><annotation encoding="application/x-tex">0.006\,420</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>715</mn><mspace width="0.167em"></mspace><mn>711</mn></mrow><annotation encoding="application/x-tex">715\,711</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>284</mn><mspace width="0.167em"></mspace><mn>282</mn></mrow><annotation encoding="application/x-tex">284\,282</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>416</mn></mrow><annotation encoding="application/x-tex">0.000\,416</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>759</mn><mspace width="0.167em"></mspace><mn>662</mn><mspace width="0.167em"></mspace><mn>742</mn></mrow><annotation encoding="application/x-tex">759\,662\,742</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>240</mn><mspace width="0.167em"></mspace><mn>337</mn><mspace width="0.167em"></mspace><mn>214</mn></mrow><annotation encoding="application/x-tex">240\,337\,214</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>38</mn><annotation encoding="application/x-tex">38</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.322</mn><mspace width="0.167em"></mspace><mn>445</mn></mrow><annotation encoding="application/x-tex">0.322\,445</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>760</mn><mspace width="0.167em"></mspace><mn>329</mn><mspace width="0.167em"></mspace><mn>293</mn></mrow><annotation encoding="application/x-tex">760\,329\,293</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>239</mn><mspace width="0.167em"></mspace><mn>668</mn><mspace width="0.167em"></mspace><mn>772</mn></mrow><annotation encoding="application/x-tex">239\,668\,772</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>26</mn><annotation encoding="application/x-tex">26</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>900</mn></mrow><annotation encoding="application/x-tex">1\,900</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="4">
|
||
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
|
||
</th>
|
||
<th rowspan="2">
|
||
<code>int</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="2">
|
||
<code>std::unique_ptr</code>
|
||
</th>
|
||
<th>
|
||
<code>DynArray</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
<code>std::vector</code>
|
||
</th>
|
||
<td colspan="9" style="text-align: center">
|
||
<code>killed by OOM killer</code>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<h2>What about <code>mremap()</code>?</h2>
|
||
<ol type="1">
|
||
<li>As far as I know, there is no equivalent to it on Windows.</li>
|
||
<li>It relocates objects in virtual space, so you can’t use that as a
|
||
basis for an arena, which needs to keep pointers valid without modifying
|
||
them.</li>
|
||
</ol>
|
||
<h2>What about shrinking?</h2>
|
||
<p>I’ve only shown how to increase the length of <code>DynArray</code>.
|
||
If you need shrinking as well, on Windows you call
|
||
<code>VirtualFree()</code> with <code>MEM_DECOMMIT</code> instead of
|
||
<code>MEM_RELEASE</code>, on POSIX you call <code>mprotect()</code> with
|
||
<code>PROT_NONE</code> and <code>madvise()</code> with
|
||
<code>MADV_FREE</code> or <code>MADV_DONTNEED</code> (whichever constant
|
||
is available).</p>
|
||
<p>Personally, I’ve never needed to do that, so I’m not going to bother
|
||
implementing it. It seems that in my style of programming I either throw
|
||
out whole data structures or keep them, but I never delete single
|
||
elements. Judging from the <a
|
||
href="https://www.youtube.com/watch?v=ncHmEUmJZf4">Swiss Tables CppCon
|
||
talk</a>, I’m not alone in that.</p>
|
||
<h2>Closing words</h2>
|
||
<p>So that’s what I’m doing now in my side project. If you have anything
|
||
to add, you may write me an email at <a href="mailto:jakub@yakubin.com"
|
||
class="email">jakub@yakubin.com</a>.</p>
|
||
<p>I dedicate this post to Windows Update.</p>
|
||
<section id="footnotes" class="footnotes footnotes-end-of-document"
|
||
role="doc-endnotes">
|
||
<hr />
|
||
<ol>
|
||
<li id="fn1"><p>Weirdly, it’s called <code>EXC_BAD_ACCESS</code> on
|
||
Mac.<a href="#fnref1" class="footnote-back"
|
||
role="doc-backlink">↩︎</a></p></li>
|
||
<li id="fn2"><p>Unless someone manually sets the alignment of a
|
||
structure with special compiler or linker directives to something
|
||
bigger. But then it’s their problem.<a href="#fnref2"
|
||
class="footnote-back" role="doc-backlink">↩︎</a></p></li>
|
||
</ol>
|
||
</section>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
<entry>
|
||
<title>Safe port forwarding with iptables and WireGuard</title>
|
||
<link href="/notes/port-forwarding.html"/>
|
||
<id>urn:uuid:5a3c3df4-b810-4701-879f-2a81ab9ed7ec</id>
|
||
|
||
<published>2022-11-16T00:00:00Z</published>
|
||
|
||
<updated>2022-11-16T00:00:00Z</updated>
|
||
|
||
|
||
<content type="html"><p><img src="/notes/port-forwarding.svg" alt="port forwarding network topology" /></p>
|
||
<p>You have a problem: there is a computer (C) you want to log into
|
||
remotely from your computer (A), but C is behind a firewall, a NAT or in
|
||
a private network, not directly exposed to the broader Internet. There
|
||
is another computer (B), which can connect to C and is accessible from
|
||
the Internet. So you use <code>ssh</code> to connect to B and establish
|
||
an SSH tunnel to C:</p>
|
||
<pre><code>ssh -L 8888:&lt;IP-ADDRESS-OF-C&gt;:22 &lt;IP-ADDRESS-OF-B&gt;</code></pre>
|
||
<p>In another terminal you connect to C by connecting to the local port
|
||
created by the SSH tunnel:</p>
|
||
<pre><code>ssh -p 8888 127.0.0.1</code></pre>
|
||
<p>This works pretty well most of the time.</p>
|
||
<p>However, there are several issues here:</p>
|
||
<ol type="1">
|
||
<li>You need to keep a terminal session open as long as you want to
|
||
maintain the SSH tunnel, be it in a real terminal or a <code>tmux</code>
|
||
session.</li>
|
||
<li>If the SSH tunnel ever drops, because your ISP has an outage for a
|
||
couple minutes/hours, or due to any other network issues, you need to
|
||
reestablish the SSH tunnel, instead of caring only about your connection
|
||
to computer C.</li>
|
||
</ol>
|
||
<p>The problem is that we’re trying to use TCP for tunneling, and TCP is
|
||
a connection-oriented protocol, which forces us to maintain the
|
||
connection for the tunnel and reestablish it after downtime. What we
|
||
need instead is a connectionless protocol, like IP or UDP.</p>
|
||
<h2>Port forwarding with iptables</h2>
|
||
<p>Let’s see how we can solve this problem at the routing layer. On
|
||
computer B as <code>root</code>:</p>
|
||
<pre><code># Enable forwarding of IP packets.
|
||
echo 1 &gt; /proc/sys/net/ipv4/ip_forward
|
||
|
||
# Redirect packets incoming at port 8888 to &lt;IP-ADDRESS-OF-C&gt; at port 22.
|
||
iptables -t nat -A PREROUTING -p tcp --dport 8888 -j DNAT --to-destination &lt;IP-ADDRESS-OF-C&gt;:22
|
||
|
||
# For outgoing TCP packets going to destination port 22, change the source IP
|
||
# address to the IP address of this computer (B), and the source port to a
|
||
# free port (let&#39;s call it P) on this computer.
|
||
#
|
||
# For incoming TCP packets going to destination IP address of B, and the
|
||
# destination port P, change destination IP address to the original source IP
|
||
# address A (before the change to B) and destination port to the original
|
||
# source port (before the change to P).
|
||
iptables -t nat -A POSTROUTING -p tcp --dport 22 -j MASQUERADE
|
||
|
||
# The following is needed when Docker is installed. Otherwise iptables will
|
||
# drop all forwarded packets.
|
||
iptables -A FORWARD -j ACCEPT</code></pre>
|
||
<p>Now you can ssh to C from A with:</p>
|
||
<pre><code>ssh -p 8888 &lt;IP-ADDRESS-OF-B&gt;</code></pre>
|
||
<p>This solution has a caveat: you need root access on the intermediate
|
||
machine (B). But when you have it, it works beautifully:</p>
|
||
<ol type="1">
|
||
<li>No terminal session to keep around.</li>
|
||
<li>When there is a network outage, or you lose connectivity to computer
|
||
B for whatever reason, after things go back to normal, you don’t need to
|
||
go through any ceremony to establish the forwarding again. You just
|
||
reconnect to C with the same <code>ssh</code> command as if nothing ever
|
||
happened.</li>
|
||
</ol>
|
||
<p>There is one risk here though: a malevolent party can now try to
|
||
attack computer C via traffic going to it on port 22, masking itself by
|
||
sending packets to computer B on port 8888 instead, thereby disguising
|
||
the traffic going to computer C as something sent by computer B.</p>
|
||
<p>You can limit the risk by dropping all packets coming to B at port
|
||
8888, which do not originate from a selected trusted IP address (in this
|
||
case computer A). Attacker will still be able to send packets to
|
||
computer C by spoofing the IP address in packets sent to computer B, but
|
||
they will not be able to receive responses to those packets (since those
|
||
will be sent to the trusted IP address of computer A), unless they can
|
||
intercept traffic going between computers A and B, because e.g.:</p>
|
||
<ul>
|
||
<li>computer A is using WiFi with WPA2 for communication with B, while
|
||
the attacker is within WiFi radio range and they captured the 4-way
|
||
handshake between computer A and WiFi router (they don’t need to be
|
||
connected to that WiFi network);</li>
|
||
<li>a router (either the edge router or any router/switch on the path
|
||
between computers A and B) is compromised by the attacker.</li>
|
||
</ul>
|
||
<p>Without the ability to receive packets from C, the attacker is
|
||
severely handicapped in their ability to compromise C; but they can
|
||
still prevent computer A from connecting to C, if <code>fail2ban</code>,
|
||
or anything else of the sort, is enabled on computer C.</p>
|
||
<p>When we got rid of SSH, we lost the much needed authentication. If
|
||
you have total control over what is happening on the network used for
|
||
communication between A and B, then everything’s fine. You may use
|
||
iptables as is without sweating over those risks. If you’d like
|
||
something more secure though, read on.</p>
|
||
<p>How can we add authentication at the routing layer? There’s been some
|
||
hype around WireGuard for a while now. It allows you to set up
|
||
authenticated, encrypted UDP-backed tunnels for IP packets.</p>
|
||
<h2>Authenticating forwarded packets with WireGuard</h2>
|
||
<p>First, we need to generate the private and public keys on computers A
|
||
and B:</p>
|
||
<pre><code>cd /tmp
|
||
umask 077
|
||
wg genkey | tee wireguard.priv | wg pubkey &gt; wireguard.pub</code></pre>
|
||
<p>We’ll create a virtual WireGuard network, where B has the IP address
|
||
<code>192.168.2.1</code> and A has the IP address
|
||
<code>192.168.2.2</code>. Let’s say that B’s public key
|
||
(<code>/tmp/wireguard.pub</code>) is:</p>
|
||
<pre><code>eKykV2v7ryzmr/n+Ok+J8XPsEKAZYqhTQTh4yK/4eTg=</code></pre>
|
||
<p>and A’s public key is:</p>
|
||
<pre><code>uqGxfggNgE41Q/o9muAiqr4YwD0lIgourMlT31xVkig=</code></pre>
|
||
<p>Then on B we should run the following as root:</p>
|
||
<pre><code>ip link add dev wg0 type wireguard
|
||
ip address add dev wg0 192.168.2.1 peer 192.168.2.2
|
||
wg set wg0 listen-port 51820 private-key /tmp/wireguard.priv peer uqGxfggNgE41Q/o9muAiqr4YwD0lIgourMlT31xVkig= allowed-ips 192.168.2.2 endpoint &lt;IP-ADDRESS-OF-A&gt;:8172
|
||
ip link set up wg0</code></pre>
|
||
<p>On A:</p>
|
||
<pre><code>ip link add dev wg0 type wireguard
|
||
ip address add dev wg0 192.168.2.2 peer 192.168.2.1
|
||
wg set wg0 listen-port 8172 private-key /tmp/wireguard.priv peer eKykV2v7ryzmr/n+Ok+J8XPsEKAZYqhTQTh4yK/4eTg= allowed-ips 192.168.2.1 endpoint &lt;IP-ADDRESS-OF-B&gt;:51820
|
||
ip link set up wg0</code></pre>
|
||
<p>That will:</p>
|
||
<ol type="1">
|
||
<li>create a new network interface <code>wg0</code> managed by WireGuard
|
||
using the private keys stored in <code>/tmp/wireguard.priv</code>;</li>
|
||
<li>set the IP addresses as planned (<code>192.168.2.1</code> for B,
|
||
<code>192.168.2.2</code> for A);</li>
|
||
<li>inform each of them which real address (<code>endpoint</code>) to
|
||
find the other one at;</li>
|
||
<li>authorise each of them to use their virtual addresses
|
||
(<code>allowed-ips</code>), when using given key to communicate with the
|
||
other;</li>
|
||
<li>set WireGuard to use the 51820 UDP port on B and the 8172 UDP port
|
||
on A for the tunnel.</li>
|
||
</ol>
|
||
<p>At that point, querying the state of the <code>wg0</code> network
|
||
interface gives some weird results. It’s not <code>UP</code>, nor
|
||
<code>DOWN</code>; it’s just <code>UNKNOWN</code>:</p>
|
||
<pre><code>$ ip -br l | grep wg0
|
||
wg0 UNKNOWN &lt;POINTOPOINT,NOARP,UP,LOWER_UP&gt;</code></pre>
|
||
<p>Nonetheless, it works and we can ping A from B and vice versa using
|
||
their virtual addresses (<code>192.168.2.1</code> and
|
||
<code>192.168.2.2</code>).</p>
|
||
<p>Now let’s modify the iptables commands so that only the packets
|
||
coming from the tunnel, or the ones coming from C from TCP port 22
|
||
(<code>ssh</code>) are forwarded by B. On B:</p>
|
||
<pre><code># The PREROUTING rule, redirecting packets addressed for this computer(B) port
|
||
# 8888 to C port 22, is modified to apply only when they come from the wg0
|
||
# network interface (the WireGuard tunnel). Otherwise, no change.
|
||
echo 1 &gt; /proc/sys/net/ipv4/ip_forward
|
||
iptables -t nat -A PREROUTING -p tcp -i wg0 --dport 8888 -j DNAT --to-destination &lt;IP-ADDRESS-OF-C&gt;:22
|
||
iptables -t nat -A POSTROUTING -p tcp --dport 22 -j MASQUERADE
|
||
|
||
# By default, drop forwarded packets (i.e. those which are not addressed for
|
||
# this computer).
|
||
iptables -P FORWARD DROP
|
||
|
||
# But forward (accept) packets which come from the wg0 network interface
|
||
# (the WireGuard tunnel).
|
||
iptables -A FORWARD -i wg0 -j ACCEPT
|
||
|
||
# Also forward TCP packets coming from C port 22 which are in an
|
||
# already-established TCP connection (connection was started from the other
|
||
# side, and those are the responses).
|
||
iptables -A FORWARD -p tcp -s &lt;IP-ADDRESS-OF-C&gt; --sport 22 -m state --state ESTABLISHED -j ACCEPT</code></pre>
|
||
<p>Now on A you can ssh to C by:</p>
|
||
<pre><code>ssh -p 8888 192.168.2.1</code></pre>
|
||
<p>If network is out, you just repeat that same command when it’s up
|
||
again. And if someone wants to attack C, they’ll have to find another
|
||
way than through port forwarding done by B.</p>
|
||
</content>
|
||
|
||
</entry>
|
||
|
||
</feed>
|