This is bold text.
")) + } + + func testHeadingFormatting() throws { + let markdown = "# Main Heading\n## Sub Heading" + let html = RSMarkdown.markdownToHTML(markdown) + + XCTAssertTrue(html.contains("Main Heading
")) + XCTAssertTrue(html.contains("Sub Heading
")) + } + + func testLinkFormatting() throws { + let markdown = "Visit [Apple](https://apple.com) for more info." + let html = RSMarkdown.markdownToHTML(markdown) + + XCTAssertTrue(html.contains("Apple")) + XCTAssertTrue(html.contains("Visit Apple for more info.
")) + } + + func testMarkdownParsingPerformance() throws { + let markdown = try loadMarkdownFile(named: "why-netnewswire-is-not-web-app") + + measure { + let html = RSMarkdown.markdownToHTML(markdown) + + // Verify the output is valid HTML (inside measure block to ensure correctness) + XCTAssertFalse(html.isEmpty) + XCTAssertTrue(html.contains("<")) + XCTAssertTrue(html.contains(">")) + } + } + + // MARK: - Essential Markdown Features + + func testInlineCode() throws { + let markdown = "This is `inline code` in text." + let html = RSMarkdown.markdownToHTML(markdown) + + XCTAssertTrue(html.contains("inline code"))
+ }
+
+ func testCodeBlocks() throws {
+ let markdown = """
+ ```swift
+ let hello = "world"
+ ```
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("Item 1
"))
+ XCTAssertTrue(html.contains("Item 2
"))
+ XCTAssertTrue(html.contains(""))
+ }
+
+ func testOrderedList() throws {
+ let markdown = """
+ 1. First item
+ 2. Second item
+ 3. Third item
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("First item
"))
+ XCTAssertTrue(html.contains("Second item
"))
+ XCTAssertTrue(html.contains("
"))
+ }
+
+ func testNestedFormatting() throws {
+ let markdown = "Visit [**Apple**](https://apple.com) for *really* good stuff."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Apple"))
+ XCTAssertTrue(html.contains("really"))
+ }
+
+ func testLineBreaksAndParagraphs() throws {
+ let markdown = """
+ First paragraph.
+
+ Second paragraph with
+ line break.
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("First paragraph.
"))
+ XCTAssertTrue(html.contains("Second paragraph"))
+ }
+
+ func testSpecialCharactersAndEscaping() throws {
+ let markdown = "Use < and > symbols, plus 5 < 10 comparison."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ // Note: swift-markdown currently doesn't escape < and > in text content
+ // This test verifies the current behavior, though ideally they would be escaped
+ XCTAssertTrue(html.contains("
Use < and > symbols"))
+ XCTAssertTrue(html.contains("5 < 10 comparison"))
+ XCTAssertTrue(html.contains("
"))
+ }
+
+ // MARK: - Edge Cases
+
+ func testEmptyString() throws {
+ let markdown = ""
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssert(html.isEmpty || html.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
+ }
+
+ func testPlainText() throws {
+ let markdown = "This is just plain text with no markdown formatting."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("This is just plain text with no markdown formatting.
"))
+ XCTAssertTrue(!html.contains(""))
+ XCTAssertTrue(!html.contains(""))
+ }
+
+ func testMalformedMarkdown() throws {
+ let markdown = "This has **unclosed bold and [incomplete link"
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ // Should not crash and should produce some reasonable output
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("unclosed bold"))
+ }
+
+ func testVeryLargeContent() throws {
+ // Create a large markdown string
+ let baseMarkdown = "# Large Header\n\nThis is a paragraph with **bold** and *italic* text. "
+ let largeMarkdown = String(repeating: baseMarkdown, count: 1000)
+
+ let html = RSMarkdown.markdownToHTML(largeMarkdown)
+
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("Large Header
"))
+ XCTAssertTrue(html.contains("bold"))
+ }
+
+ // MARK: - Real-world Scenarios
+
+ func testMixedMarkdownAndHTML() throws {
+ let markdown = "This is **markdown** with some HTML mixed in."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("markdown"))
+ XCTAssertTrue(html.contains("some HTML"))
+ }
+
+ func testUnicodeAndEmoji() throws {
+ let markdown = "Unicode: café, naïve, résumé. Emoji: 🚀 🎉 ✨"
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("café"))
+ XCTAssertTrue(html.contains("🚀"))
+ XCTAssertTrue(html.contains("🎉"))
+ }
+
+ func testComplexNestedStructures() throws {
+ let markdown = """
+ # Main Header
+
+ ## Sub Header
+
+ Here's a list with **bold** items:
+
+ 1. First item with [a link](https://example.com)
+ 2. Second item with `inline code`
+ 3. Third item with *emphasis*
+
+ And a code block:
+
+ ```
+ function test() {
+ return "hello";
+ }
+ ```
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Main Header
"))
+ XCTAssertTrue(html.contains("Sub Header
"))
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("a link"))
+ XCTAssertTrue(html.contains("inline code"))
+ XCTAssertTrue(html.contains(""))
+ }
+
+ // MARK: - Performance/Robustness
+
+ func testRepeatedParsing() throws {
+ let markdown = "# Test Header\n\nThis is a **test** with *emphasis* and [links](https://example.com)."
+
+ // Parse the same content multiple times
+ for _ in 0..<100 {
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Test Header
"))
+ XCTAssertTrue(html.contains("test"))
+ }
+ }
+
+ func testMemoryUsageWithLargeFile() throws {
+ // Create a very large markdown document
+ let section = """
+ ## Section Header
+
+ This is a paragraph with **bold**, *italic*, and `code` formatting.
+
+ - List item 1
+ - List item 2 with [link](https://example.com)
+
+ ```swift
+ let code = "example"
+ print(code)
+ ```
+
+ """
+
+ let largeMarkdown = String(repeating: section, count: 500)
+
+ let startTime = CFAbsoluteTimeGetCurrent()
+ let html = RSMarkdown.markdownToHTML(largeMarkdown)
+ let endTime = CFAbsoluteTimeGetCurrent()
+
+ // Should complete within reasonable time even for large content
+ XCTAssertLessThan(endTime - startTime, 1.0)
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("Section Header
"))
+ }
+}
diff --git a/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown b/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown
new file mode 100644
index 000000000..96d4cd33a
--- /dev/null
+++ b/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown
@@ -0,0 +1,57 @@
+# Why NetNewsWire Is Not a Web App
+
+[Tim Bray writes](https://indieweb.social/@timbray@cosocial.ca/115311601617081367), on Mastodon, I think correctly:
+
+> The canceling of ICEBlock is more evidence, were any needed, that the Web is the platform of the future, the only platform without a controlling vendor. Anything controversial should be available through a pure browser interface.
+
+This is not the first time I’ve had reason to think about this — I think about issues of tech freedom every day, and I still bristle, after all these years (now more than ever), at having to publish NetNewsWire for iOS through the App Store. (The Mac version has no such requirement — it’s available via the [website](https://netnewswire.com/), and I have no plans to ever offer it via the Mac App Store.)
+
+But what if I wanted to do a web app, in addition to or instead of a native app?
+
+I can picture a future, as I bet you can, where RSS readers aren’t allowed on any app store, and we’re essentially required to use billionaire-owned social media and platform-owned news apps.
+
+But there are issues with making NetNewsWire a web app.
+
+### Money
+
+I [explain in this post](https://inessential.com/2023/02/20/on_not_taking_money_for_netnewswire.html) that NetNewsWire has almost no expenses at all. The biggest expense is my Apple developer membership, and I pay just a little bit to host some websites. It adds up to a couple hundred bucks a year.
+
+If it were a web app instead, I could drop the developer membership, but I’d have to pay way more money for web and database hosting. Probably need a CDN too, and who knows what else. (I don’t have recent web app experience, so I don’t even know what my requirements would be, but I’m sure they’d cost substantially more than a couple hundred bucks a year.)
+
+I could charge for NetNewsWire, but that would go against my political goal of making sure there’s a good and *free* RSS reader available to everyone.
+
+I could take donations instead, but that’s never going to add up to enough to cover the costs.
+
+And in either case I’d have to create a way to take money and start up some kind of entity and then do bookkeeping and report money things to the right places — all stuff I don’t have to waste time on right now. I can just work on the app.
+
+Alternately I could create a web app that people would self-host — but there’s no way I could handle the constant support requests for installation issues. There are free self-hosted RSS readers already anyway, and NetNewsWire would be just another one. This also wouldn’t further my goal of making a free RSS reader available to everyone, since only people with the skills and willingness to self-host would do it.
+
+### Protecting Users
+
+Second issue. Right now, if law enforcement comes to me and demands I turn over a given user’s subscriptions list, I can’t. Literally can’t. I don’t have an encrypted version, even — I have nothing at all. The list lives on their machine (iOS or macOS). If they use a syncing system, it lives there too — but I don’t run a syncing system. I don’t have that info and can’t get it.
+
+If that happened, I’d have to pay a lawyer to see if the demand is legit and possibly help me fight it. That’s yet more money and time.
+
+(Could I encrypt the subscription lists on the server? Yes, but the server would have to be able to decrypt it, or else the app couldn’t possibly work. Which means I could decrypt the lists and turn them over.)
+
+### Another type of freedom
+
+Not an issue, exactly, but a thing.
+
+I was 12 years old when I got my first computer, an Apple II Plus, and I’ve never stopped loving the freedom of having my own computer and being able to run whatever the hell I want to.
+
+My computer is *not* a terminal. It’s a world I get to control, and I can use — and, especially, *make* — whatever I want. I’m not stuck using just what’s provided to me on some other machines elsewhere: I’m not dialing into a mainframe or doing the modern equivalent of using only websites that other people control.
+
+A world where everything is on the web and nothing is on the machines that we own is a sad world where we’ve lost a core freedom.
+
+I want to preserve that freedom. I like making apps that show the value of that freedom.
+
+What I want to see happen is for Apple to allow iPhone and iPad users to load — not *sideload*, a term I detest, because it assumes Apple’s side of things — whatever apps they want to. Because those devices are computers.
+
+I get it. It’s not looking good. And even with the much greater freedom for Mac apps there is still always the possibility of being shut down by Apple (by revoking developer memberships, refusing to notarize, or other technical means).
+
+Still, though, I keep at it, because this freedom matters.
+
+But, again…
+
+Apple keeps doing things that make us all feel sick. Removing ICEBlock is just the latest and it won’t be the last. So I am sympathetic to the idea of making web apps, and my brain goes there more often. And if I could solve the problems of money and of protecting users, I’d be way more inclined.
diff --git a/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 1555d3641..768b3fd32 100644
--- a/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -1,34 +1,50 @@
{
- "object": {
- "pins": [
- {
- "package": "PLCrashReporter",
- "repositoryURL": "https://github.com/microsoft/plcrashreporter.git",
- "state": {
- "branch": null,
- "revision": "b1a342da19ed9b3af61ea2efa7656c2af30aeb7c",
- "version": "1.11.0"
- }
- },
- {
- "package": "RSSparkle",
- "repositoryURL": "https://github.com/Ranchero-Software/Sparkle-Binary.git",
- "state": {
- "branch": null,
- "revision": "d1a8b3c98d96c601453f2e4230f1dd65b60d0581",
- "version": "2.0.1"
- }
- },
- {
- "package": "Zip",
- "repositoryURL": "https://github.com/marmelroy/Zip.git",
- "state": {
- "branch": null,
- "revision": "059e7346082d02de16220cd79df7db18ddeba8c3",
- "version": null
- }
+ "originHash" : "d126877be4ee0ff77baa0e72041e3148c97eca9e4a56e41f57c18ae4a25e6ac2",
+ "pins" : [
+ {
+ "identity" : "plcrashreporter",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/microsoft/plcrashreporter.git",
+ "state" : {
+ "revision" : "b1a342da19ed9b3af61ea2efa7656c2af30aeb7c",
+ "version" : "1.11.0"
}
- ]
- },
- "version": 1
+ },
+ {
+ "identity" : "sparkle-binary",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/Ranchero-Software/Sparkle-Binary.git",
+ "state" : {
+ "revision" : "d1a8b3c98d96c601453f2e4230f1dd65b60d0581",
+ "version" : "2.0.1"
+ }
+ },
+ {
+ "identity" : "swift-cmark",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/swiftlang/swift-cmark.git",
+ "state" : {
+ "revision" : "b97d09472e847a416629f026eceae0e2afcfad65",
+ "version" : "0.7.0"
+ }
+ },
+ {
+ "identity" : "swift-markdown",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/apple/swift-markdown.git",
+ "state" : {
+ "revision" : "d8cf111c276ed18cff82d3cad563d2ca5903b982",
+ "version" : "0.7.1"
+ }
+ },
+ {
+ "identity" : "zip",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/marmelroy/Zip.git",
+ "state" : {
+ "revision" : "059e7346082d02de16220cd79df7db18ddeba8c3"
+ }
+ }
+ ],
+ "version" : 3
}
diff --git a/NetNewsWire.xctestplan b/NetNewsWire.xctestplan
index dc3dcd7ba..c441b0bbd 100644
--- a/NetNewsWire.xctestplan
+++ b/NetNewsWire.xctestplan
@@ -19,16 +19,23 @@
"testTargets" : [
{
"target" : {
- "containerPath" : "container:Modules\/RSWeb",
- "identifier" : "RSWebTests",
- "name" : "RSWebTests"
+ "containerPath" : "container:Modules\/RSParser",
+ "identifier" : "RSParserTests",
+ "name" : "RSParserTests"
}
},
{
"target" : {
- "containerPath" : "container:Modules\/Account",
- "identifier" : "AccountTests",
- "name" : "AccountTests"
+ "containerPath" : "container:Modules\/RSMarkdown",
+ "identifier" : "RSMarkdownTests",
+ "name" : "RSMarkdownTests"
+ }
+ },
+ {
+ "target" : {
+ "containerPath" : "container:Modules\/RSCore",
+ "identifier" : "RSCoreTests",
+ "name" : "RSCoreTests"
}
},
{
@@ -38,6 +45,13 @@
"name" : "NetNewsWireTests"
}
},
+ {
+ "target" : {
+ "containerPath" : "container:Modules\/Account",
+ "identifier" : "AccountTests",
+ "name" : "AccountTests"
+ }
+ },
{
"target" : {
"containerPath" : "container:Modules\/RSDatabase",
@@ -47,16 +61,9 @@
},
{
"target" : {
- "containerPath" : "container:Modules\/RSParser",
- "identifier" : "RSParserTests",
- "name" : "RSParserTests"
- }
- },
- {
- "target" : {
- "containerPath" : "container:Modules\/RSCore",
- "identifier" : "RSCoreTests",
- "name" : "RSCoreTests"
+ "containerPath" : "container:Modules\/RSWeb",
+ "identifier" : "RSWebTests",
+ "name" : "RSWebTests"
}
}
],
From b23148ab60edb0d192bc25455a9f6877025aed08 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 09:44:43 -0700
Subject: [PATCH 161/239] Give Claude permission for some Git and GitHub
things.
---
.claude/settings.local.json | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index b9cc17630..f0906cdb2 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -10,8 +10,11 @@
"Bash(gh issue view:*)",
"Bash(xcodebuild:*)",
"Bash(swift test:*)",
- "WebFetch(domain:swiftlang.github.io)"
+ "WebFetch(domain:swiftlang.github.io)",
+ "Bash(git log:*)",
+ "Bash(gh pr list:*)",
+ "Bash(gh issue list:*)"
],
"deny": []
}
-}
\ No newline at end of file
+}
From ea771e9b27a9f98192be20da68f231165a588283 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 11:23:37 -0700
Subject: [PATCH 162/239] Add code and tests to parse relative home page URLs
in Atom feeds.
---
Modules/RSParser/Sources/ObjC/RSAtomParser.m | 72 +-
Modules/RSParser/Sources/ObjC/RSParsedFeed.h | 4 +-
Modules/RSParser/Sources/ObjC/RSParsedFeed.m | 6 +-
Modules/RSParser/Sources/ObjC/RSRSSParser.m | 12 +-
.../Feeds/XML/RSParsedFeedTransformer.swift | 2 +-
.../Tests/RSParserTests/AtomParserTests.swift | 25 +-
.../Resources/neverworkintheory.atom | 969 ++
.../Tests/RSParserTests/Resources/qemu.atom | 302 +
.../RSParserTests/Resources/yakubin.atom | 11436 ++++++++++++++++
9 files changed, 12806 insertions(+), 22 deletions(-)
create mode 100644 Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom
create mode 100644 Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom
create mode 100644 Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom
diff --git a/Modules/RSParser/Sources/ObjC/RSAtomParser.m b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
index 07e0f2e28..26131549e 100755
--- a/Modules/RSParser/Sources/ObjC/RSAtomParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
@@ -16,6 +16,7 @@
#import "ParserData.h"
#import "RSParsedEnclosure.h"
#import "RSParsedAuthor.h"
+#import "RSParserInternal.h"
#import
@@ -32,6 +33,7 @@
@property (nonatomic, readonly) NSDictionary *currentAttributes;
@property (nonatomic) NSMutableString *xhtmlString;
@property (nonatomic) NSString *link;
+@property (nonatomic) NSString *homepageURLString;
@property (nonatomic) NSString *title;
@property (nonatomic) NSMutableArray *articles;
@property (nonatomic) NSDate *dateParsed;
@@ -81,7 +83,7 @@
[self parse];
- RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title link:self.link language:self.language articles:self.articles];
+ RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title homepageURLString:self.homepageURLString language:self.language articles:self.articles];
return parsedFeed;
}
@@ -256,15 +258,24 @@ static const NSInteger kLengthLength = 7;
}
-- (void)addFeedLink {
+- (void)addHomePageLink {
- if (self.link && self.link.length > 0) {
+ if (!RSParserStringIsEmpty(self.homepageURLString)) {
return;
}
- NSString *related = self.currentAttributes[kRelKey];
- if (related == kAlternateValue) {
- self.link = self.currentAttributes[kHrefKey];
+ NSString *rawLink = self.currentAttributes[kHrefKey];
+ if (RSParserStringIsEmpty(rawLink)) {
+ return;
+ }
+
+ NSString *rel = self.currentAttributes[kRelKey];
+
+ // rel="alternate" == home page URL
+ // Also: spec says "alternate" is default value if not present
+ //
+ if (!rel || [rel isEqualToString:kAlternateValue]) {
+ self.homepageURLString = [self resolvedURLString:rawLink];
}
}
@@ -339,6 +350,53 @@ static const NSInteger kLengthLength = 7;
}
}
+- (NSString *)resolvedURLString:(NSString *)s {
+
+ // Resolve against home page URL (if available) or feed URL.
+ // Important: returns nil if the result does not begin with @"http://" or @"https://"
+ // This is because we don’t want relative paths that might get interpreted
+ // as file paths when displayed in the app.
+
+ // Already a full URL? No need to resolve?
+ if ([self isValidURLString:s]) {
+ return s;
+ }
+
+ NSString *baseURLString = self.homepageURLString;
+ if (RSParserStringIsEmpty(baseURLString)) {
+ baseURLString = self.urlString;
+ }
+ if (RSParserStringIsEmpty(baseURLString)) {
+ return nil; // Nothing to resolve against.
+ }
+
+ NSURL *baseURL = [NSURL URLWithString:baseURLString];
+ if (!baseURL) {
+ return nil; // Must have non-nil NSURL in order to resolve.
+ }
+
+ NSURL *resolvedURL = [NSURL URLWithString:s relativeToURL:baseURL];
+ NSString *urlString = resolvedURL.absoluteString;
+ if (!RSParserStringIsEmpty(urlString) && [self isValidURLString:urlString]) {
+ return urlString; // Must be valid, resolved URL
+ }
+
+ return nil;
+}
+
+- (BOOL)isValidURLString:(NSString *)s {
+
+ NSString *lowercaseString = [s lowercaseString];
+
+ if ([lowercaseString hasPrefix:@"https://"]) {
+ return YES;
+ }
+ if ([lowercaseString hasPrefix:@"http://"]) {
+ return YES;
+ }
+
+ return NO;
+}
- (NSString *)currentString {
@@ -480,7 +538,7 @@ static const NSInteger kLengthLength = 7;
}
if (!self.parsingArticle && RSSAXEqualTags(localName, kLink, kLinkLength)) {
- [self addFeedLink];
+ [self addHomePageLink];
return;
}
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedFeed.h b/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
index 80be90fed..61de4e853 100755
--- a/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
+++ b/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
@@ -12,11 +12,11 @@
@interface RSParsedFeed : NSObject
-- (nonnull instancetype)initWithURLString:(NSString * _Nonnull)urlString title:(NSString * _Nullable)title link:(NSString * _Nullable)link language:(NSString * _Nullable)language articles:(NSArray * _Nonnull)articles;
+- (nonnull instancetype)initWithURLString:(NSString * _Nonnull)urlString title:(NSString * _Nullable)title homepageURLString:(NSString * _Nullable)homepageURLString language:(NSString * _Nullable)language articles:(NSArray * _Nonnull)articles;
@property (nonatomic, readonly, nonnull) NSString *urlString;
@property (nonatomic, readonly, nullable) NSString *title;
-@property (nonatomic, readonly, nullable) NSString *link;
+@property (nonatomic, readonly, nullable) NSString *homepageURLString;
@property (nonatomic, readonly, nullable) NSString *language;
@property (nonatomic, readonly, nonnull) NSSet *articles;
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedFeed.m b/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
index ef0c42e76..9035c1862 100755
--- a/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
+++ b/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
@@ -12,8 +12,8 @@
@implementation RSParsedFeed
-- (instancetype)initWithURLString:(NSString *)urlString title:(NSString *)title link:(NSString *)link language:(NSString *)language articles:(NSSet *)articles {
-
+- (instancetype)initWithURLString:(NSString *)urlString title:(NSString *)title homepageURLString:(NSString *)homepageURLString language:(NSString *)language articles:(NSSet *)articles {
+
self = [super init];
if (!self) {
return nil;
@@ -21,7 +21,7 @@
_urlString = urlString;
_title = title;
- _link = link;
+ _homepageURLString = homepageURLString;
_language = language;
_articles = articles;
diff --git a/Modules/RSParser/Sources/ObjC/RSRSSParser.m b/Modules/RSParser/Sources/ObjC/RSRSSParser.m
index 3600896e7..0ef259ebb 100755
--- a/Modules/RSParser/Sources/ObjC/RSRSSParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSRSSParser.m
@@ -35,7 +35,7 @@
@property (nonatomic) BOOL parsingChannelImage;
@property (nonatomic, readonly) NSDate *currentDate;
@property (nonatomic) BOOL endRSSFound;
-@property (nonatomic) NSString *link;
+@property (nonatomic) NSString *homepageURLString;
@property (nonatomic) NSString *title;
@property (nonatomic) NSDate *dateParsed;
@property (nonatomic) BOOL isRDF;
@@ -77,7 +77,7 @@
[self parse];
- RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title link:self.link language:self.language articles:self.articles];
+ RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title homepageURLString:self.homepageURLString language:self.language articles:self.articles];
return parsedFeed;
}
@@ -206,8 +206,8 @@ static const NSInteger kLanguageLength = 9;
}
if (RSSAXEqualTags(localName, kLink, kLinkLength)) {
- if (!self.link) {
- self.link = [self currentString];
+ if (RSParserStringIsEmpty(self.homepageURLString)) {
+ self.homepageURLString = [self currentString];
}
}
@@ -304,12 +304,12 @@ static const NSInteger kLanguageLength = 9;
return s;
}
- if (!self.link) {
+ if (!self.homepageURLString) {
//TODO: get feed URL and use that to resolve URL.*/
return s;
}
- NSURL *baseURL = [NSURL URLWithString:self.link];
+ NSURL *baseURL = [NSURL URLWithString:self.homepageURLString];
if (!baseURL) {
return s;
}
diff --git a/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift b/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
index 4d680acff..d735b8749 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
@@ -21,7 +21,7 @@ struct RSParsedFeedTransformer {
static func parsedFeed(_ rsParsedFeed: RSParsedFeed) -> ParsedFeed {
let items = parsedItems(rsParsedFeed.articles)
- return ParsedFeed(type: .rss, title: rsParsedFeed.title, homePageURL: rsParsedFeed.link, feedURL: rsParsedFeed.urlString, language: rsParsedFeed.language, feedDescription: nil, nextURL: nil, iconURL: nil, faviconURL: nil, authors: nil, expired: false, hubs: nil, items: items)
+ return ParsedFeed(type: .rss, title: rsParsedFeed.title, homePageURL: rsParsedFeed.homepageURLString, feedURL: rsParsedFeed.urlString, language: rsParsedFeed.language, feedDescription: nil, nextURL: nil, iconURL: nil, faviconURL: nil, authors: nil, expired: false, hubs: nil, items: items)
}
}
diff --git a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
index b248251af..ab68ce2ae 100644
--- a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
@@ -31,10 +31,29 @@ final class AtomParserTests: XCTestCase {
func testGettingHomePageLink() {
- let d = parserData("allthis", "atom", "http://leancrew.com/all-this")
- let parsedFeed = try! FeedParser.parse(d)!
-
+ var d = parserData("allthis", "atom", "http://leancrew.com/all-this")
+ var parsedFeed = try! FeedParser.parse(d)!
XCTAssertTrue(parsedFeed.homePageURL == "http://leancrew.com/all-this")
+
+ d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://www.qemu.org/")
+
+ d = parserData("yakubin", "atom", "https://yakubin.com/notes/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://yakubin.com/notes")
+
+ d = parserData("4fsodonline", "atom", "http://4fsodonline.blogspot.com/feeds/posts/default")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "http://4fsodonline.blogspot.com/")
+
+ d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://daringfireball.net/")
+
+ d = parserData("neverworkintheory", "atom", "https://neverworkintheory.org/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://neverworkintheory.org/")
}
func testDaringFireball() {
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom b/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom
new file mode 100644
index 000000000..65f12c4e6
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom
@@ -0,0 +1,969 @@
+
+
+ It Will Never Work in Theory
+
+
+ 2024-03-21T22:48:52+00:00
+ https://neverworkintheory.org
+
+ Greg Wilson
+ gvwilson@third-bit.com
+
+
+
+ Retrospective
+
+ 2024-03-21T00:00:00+00:00
+ https://neverworkintheory.org/2024/03/21/retrospective
+ <p>
+ <em>IEEE Software</em> is publishing a short retrospective on this project in 2024.
+ A preprint is available on
+ <a href="https://www.computer.org/csdl/magazine/so/5555/01/10424425/1Ulj1Qa8tJ6">the magazine's site</a>,
+ or you can <a href="https://www.computer.org/csdl/api/v1/periodical/mags/so/5555/01/10424425/1Ulj1Qa8tJ6/download-article/pdf">download a PDF</a> directly.
+</p>
+
+<pre>
+@article{nwit2024,
+ author = {Greg Wilson and Jorge Aranda and Michael Hoye and Brittany Johnson},
+ title = {It Will Never Work in Theory},
+ journal = {IEEE Software},
+ year = {2024},
+ doi = {10.1109/MS.2024.3362649},
+ link = {https://www.computer.org/csdl/magazine/so/5555/01/10424425/1Ulj1Qa8tJ6}
+}
+</pre>
+
+
+
+
+ Shurui Zhou on Sustainability of Open Source Scientific Software
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/zhou-shurui
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/zhou-shurui.png" width="80%" alt="Shurui Zhou"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.eecg.utoronto.ca/~shuruiz/" class="person">Shurui Zhou</a>
+ <br>
+ "Understanding the sustainability challenges for building open-source scientific software."
+ </p>
+ <p>
+ <em>
+ Shurui is an Assistant Professor in Electrical and Computer Engineering at the University of Toronto in Canada.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/zhou-shurui.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/zhou-shurui-en.txt">English</a>
+
+
+<a href="/static/2023-04/zhou-shurui-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/24BdlgcK2mE"></iframe>
+
+
+
+
+
+ Andreas Zeller on Creating Nasty Test Inputs
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/zeller-andreas
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/zeller-andreas.jpg" width="80%" alt="Andreas Zeller"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://andreas-zeller.info/" class="person">Andreas Zeller</a>
+ <br>
+ "How to create the nastiest test inputs ever."
+ </p>
+ <p>
+ <em>
+ Andreas is faculty at the CISPA Helmholtz Center for Information Security and Professor of Software Engineering at Saarland University in Saarbrücken, Germany.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/zeller-andreas.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/zeller-andreas-en.txt">English</a>
+
+
+<a href="/static/2023-04/zeller-andreas-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/GCy8bYJ_G0I"></iframe>
+
+
+
+
+
+ Ethel Tshukudu on Conceptual Transfer in Students Learning New Programming Languages
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/tshukudu-ethel
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/tshukudu-ethel.jpg" width="80%" alt="Ethel Tshukudu"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.csedbotswana.org/" class="person">Ethel Tshukudu</a>
+ <br>
+ "Understanding conceptual transfer in students learning new programming languages."
+ </p>
+ <p>
+ <em>
+ Ethel is a Lecturer at the University of Botswana and a Founder and Director of CSEdBotswana.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/tshukudu-ethel.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/tshukudu-ethel-en.txt">English</a>
+
+
+<a href="/static/2023-04/tshukudu-ethel-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/MHwSnjLx-64"></iframe>
+
+
+
+
+
+ Allison Sullivan on the Benefits of Unit Tests for Software Models
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/sullivan-allison
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/sullivan-allison.jpg" width="80%" alt="Allison Sullivan"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://allisonius.github.io/" class="person">Allison Sullivan</a>
+ <br>
+ "Proofreading the proofreader: the benefits of unit tests for software models."
+ </p>
+ <p>
+ <em>
+ Allison is an Assistant Professor at the University of Texas at Arlington.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/sullivan-allison.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/sullivan-allison-en.txt">English</a>
+
+
+<a href="/static/2023-04/sullivan-allison-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/H6vyMSoVN5s"></iframe>
+
+
+
+
+
+ Alexander Serebrenik on Employability and Experiences of Older Developers
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/serebrenik-alexander
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/serebrenik-alexander.jpg" width="80%" alt="Alexander Serebrenik"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.win.tue.nl/~aserebre/" class="person">Alexander Serebrenik</a>
+ <br>
+ "Getting old: employability and experiences of veteran software developers."
+ </p>
+ <p>
+ <em>
+ Alexander is a Full Professor of Social Software Engineering at Eindhoven University of Technology in the Netherlands.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/serebrenik-alexander.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/serebrenik-alexander-en.txt">English</a>
+
+
+<a href="/static/2023-04/serebrenik-alexander-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/vofY6oeAaBQ"></iframe>
+
+
+
+
+
+ Kai Presler-Marshall on Teaching Collaborative Skills to Undergrads
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/presler-marshall-kai
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/presler-marshall-kai.jpg" width="80%" alt="Kai Presler-Marshall"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://kpresler.github.io/" class="person">Kai Presler-Marshall</a>
+ <br>
+ "Teaching collaborative skills to undergraduate software engineering students."
+ </p>
+ <p>
+ <em>
+ Kai completed his PhD at North Carolina State University and now teaches computer science at Bowdoin College in Maine.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/presler-marshall-kai.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/presler-marshall-kai-en.txt">English</a>
+
+
+<a href="/static/2023-04/presler-marshall-kai-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/CvwHg9N7gWo"></iframe>
+
+
+
+
+
+ Gustavo Pinto on Cognitive-Driven Development
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/pinto-gustavo
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/pinto-gustavo.jpg" width="80%" alt="Gustavo Pinto"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://gustavopinto.org/" class="person">Gustavo Pinto</a>
+ <br>
+ "Cognitive-driven development helps software teams to keep code units under the limit."
+ </p>
+ <p>
+ <em>
+ Gustavo is Head of Research at Zup Innovation and Assistant Professor at Federal University of Pará in Brazil.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/pinto-gustavo.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/pinto-gustavo-en.txt">English</a>
+
+
+<a href="/static/2023-04/pinto-gustavo-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/g_ht_LDm5Hw"></iframe>
+
+
+
+
+
+ Christian Newman on Crafting Strong Identifier Naming Practices
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/newman-christian
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/newman-christian.png" width="80%" alt="Christian Newman"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.scanl.org/" class="person">Christian Newman</a>
+ <br>
+ "Crafting strong identifier naming practices."
+ </p>
+ <p>
+ <em>
+ Christian is assistant faculty in the Software Engineering Department at Rochester Institute of Technology.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/newman-christian.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/newman-christian-en.txt">English</a>
+
+
+<a href="/static/2023-04/newman-christian-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/Q85GhN7871c"></iframe>
+
+
+
+
+
+ Ariana Mirian on Enterprise Vulnerability Remediation
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/mirian-ariana
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/mirian-ariana.jpg" width="80%" alt="Ariana Mirian"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://arianamirian.com/" class="person">Ariana Mirian</a>
+ <br>
+ "The theory and practice of enterprise vulnerability remediation."
+ </p>
+ <p>
+ <em>
+ Ariana is a security researcher at the University of California San Diego in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/mirian-ariana.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/mirian-ariana-en.txt">English</a>
+
+
+<a href="/static/2023-04/mirian-ariana-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/ceuNc5cy1UA"></iframe>
+
+
+
+
+
+ Lauren Margulieux on Things Software Developers Should Know About Learning
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/margulieux-lauren
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/margulieux-lauren.jpg" width="80%" alt="Lauren Margulieux"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://laurenmarg.com/" class="person">Lauren Margulieux</a>
+ <br>
+ "Things software developers should learn about learning."
+ </p>
+ <p>
+ <em>
+ Lauren is an Associate Professor of Learning Sciences at Georgia State University.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/margulieux-lauren.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/margulieux-lauren-en.txt">English</a>
+
+
+<a href="/static/2023-04/margulieux-lauren-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/XGF8ljfL4ZA"></iframe>
+
+
+
+
+
+ Sherlock Licorish on Using Genetic Improvement to Enhance Code Snippets
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/licorish-sherlock
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/licorish-sherlock.jpg" width="80%" alt="Sherlock Licorish"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.otago.ac.nz/info-science/people/staff/sherlock-licorish.html" class="person">Sherlock Licorish</a>
+ <br>
+ "Can genetic improvement enhance online code snippets?"
+ </p>
+ <p>
+ <em>
+ Sherlock is an Associate Professor in the Department of Information Science at the University of Otago.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/licorish-sherlock.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/licorish-sherlock-en.txt">English</a>
+
+
+<a href="/static/2023-04/licorish-sherlock-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/ylREDaqKWEk"></iframe>
+
+
+
+
+
+ Carol Lee on Developer Thriving
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/lee-carol
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/lee-carol.jpg" width="80%" alt="Carol Lee"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.carol-s-lee-phd.com/" class="person">Carol Lee</a>
+ <br>
+ "Developer thriving: why developers deserve more than satisfaction."
+ </p>
+ <p>
+ <em>
+ Carol is a senior research scientist at Pluralsight Flow's Developer Success Lab in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/lee-carol.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/lee-carol-en.txt">English</a>
+
+
+<a href="/static/2023-04/lee-carol-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/8gfTqazvejI"></iframe>
+
+
+
+
+
+ Thomas LaToza on Programming Strategically
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/latoza-thomas
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/latoza-thomas.jpg" width="80%" alt="Thomas LaToza"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://cs.gmu.edu/~tlatoza/" class="person">Thomas LaToza</a>
+ <br>
+ "Programming strategically."
+ </p>
+ <p>
+ <em>
+ Thomas is an Associate Professor of Computer Science at George Mason University in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/latoza-thomas.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/latoza-thomas-en.txt">English</a>
+
+
+<a href="/static/2023-04/latoza-thomas-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/Dyo7WpndWog"></iframe>
+
+
+
+
+
+ Raula Kula on What We Know About Libraries and Their Dependencies
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/kula-raula
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/kula-raula.jpg" width="80%" alt="Raula Kula"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://raux.github.io/" class="person">Raula Kula</a>
+ <br>
+ "What do we know about libraries and their dependencies?"
+ </p>
+ <p>
+ <em>
+ Raula is an Assistant Professor at the Nara Institute of Science and Technology (NAIST) in Japan.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/kula-raula.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/kula-raula-en.txt">English</a>
+
+
+<a href="/static/2023-04/kula-raula-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/O-PZX7d7YWo"></iframe>
+
+
+
+
+
+ Elvan Kula on Understanding and Predicting Delays in Software Development
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/kula-elvan
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/kula-elvan.png" width="80%" alt="Elvan Kula"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://serg.ewi.tudelft.nl/members/elvan-kula/" class="person">Elvan Kula</a>
+ <br>
+ "Understanding and predicting delays in large-scale software development."
+ </p>
+ <p>
+ <em>
+ Elvan is chapter lead of Analytics and AI Research at ING and a doctoral candidate at TU Delft.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/kula-elvan.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/kula-elvan-en.txt">English</a>
+
+
+<a href="/static/2023-04/kula-elvan-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/g3b8JfkV5jQ"></iframe>
+
+
+
+
+
+ Rashina Hoda on Making Sense of User Feedback
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/hoda-rashina
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/hoda-rashina.jpg" width="80%" alt="Rashina Hoda"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://rashina.com/" class="person">Rashina Hoda</a>
+ <br>
+ "You asked for it: making sense of user feedback."
+ </p>
+ <p>
+ <em>
+ Rashina is an Associate Professor of Software Engineering and Deputy Director of the HumaniSE lab at Monash University in Australia.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/hoda-rashina.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/hoda-rashina-en.txt">English</a>
+
+
+<a href="/static/2023-04/hoda-rashina-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/O03LRJMgOf0"></iframe>
+
+
+
+
+
+ Prem Devanbu on Leveraging the Bimodality of Software
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/devanbu-prem
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/devanbu-prem.jpg" width="80%" alt="Prem Devanbu"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://web.cs.ucdavis.edu/~devanbu/" class="person">Prem Devanbu</a>
+ <br>
+ "Leveraging the bimodality of software."
+ </p>
+ <p>
+ <em>
+ Prem is a Distinguished Professor (Emeritus) of Computer Science at the University of California Davis in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/devanbu-prem.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/devanbu-prem-en.txt">English</a>
+
+
+<a href="/static/2023-04/devanbu-prem-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/LQ43KdojuTI"></iframe>
+
+
+
+
+
+ Zadia Codabux on Technical Debt in R Packages
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/codabux-zadia
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/codabux-zadia.jpg" width="80%" alt="Zadia Codabux"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.cs.usask.ca/faculty/zadiacodabux/" class="person">Zadia Codabux</a>
+ <br>
+ "Technical debt in R packages."
+ </p>
+ <p>
+ <em>
+ Zadia is an Assistance Professor at the University of Saskatchewan in Canada.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/codabux-zadia.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/codabux-zadia-en.txt">English</a>
+
+
+<a href="/static/2023-04/codabux-zadia-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/-T0vuUkQCFg"></iframe>
+
+
+
+
+
+ Preetha Chatterjee on Emotion Awareness in Software Engineering
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/chatterjee-preetha
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/chatterjee-preetha.jpg" width="80%" alt="Preetha Chatterjee"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://preethac.github.io/" class="person">Preetha Chatterjee</a>
+ <br>
+ "Emotion awareness in software engineering."
+ </p>
+ <p>
+ <em>
+ Preetha is an Assistant Professor at Drexel University in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/chatterjee-preetha.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/chatterjee-preetha-en.txt">English</a>
+
+
+<a href="/static/2023-04/chatterjee-preetha-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/lkatTyerkwg"></iframe>
+
+
+
+
+
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom b/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom
new file mode 100644
index 000000000..5c8641964
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom
@@ -0,0 +1,302 @@
+Jekyll 2025-10-08T23:46:50+00:00 /feed.xml QEMU QEMU is a FAST! processor emulator
+ QEMU version 10.1.0 released 2025-08-26T23:25:00+00:00 2025-08-26T23:25:00+00:00 /2025/08/26/qemu-10-1-0 We’d like to announce the availability of the QEMU 10.1.0 release. This release contains 2700+ commits from 226 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - VFIO: Initial support for accessing/mapping memory for confidential guests when guest_memfd is being utilized, allowing passthrough support for virtual machines running under SEV-SNP/TDX
+ - Live migration: support for utilizing multifd to accelerate post-copy migration, optimizations for pre-copy migration, and RDMA migration support for ipv6
+ - QEMU guest agent: support for querying load of virtual machines running Windows via new ‘guest-get-load’ command
+ - ARM: support for CPU features FEAT_SME2, FEAT_SME2p1, FEAT_SME_B16B16, FEAT_SME_F16F16, FEAT_SVE_B16B16, and FEAT_SVE2p1
+ - ARM: support for new board/machine models ‘max78000fthr’, ‘ast2700fc’, ‘catalina-bmc’, ‘gb200-bmc’, and ‘ast2700a0-evb’
+ - ARM: ‘virt’ board now supports nested virtualization under KVM, CXL, and ACPI-based PCI hotplug
+ - LoongArch: support for in-kernel irqchip
+ - Microblaze: support for selecting the endianess of ‘petalogix_s3adsp1800’ machine type
+ - RISC-V: ISA/extension support for atomic instruction fetch (Ziccif), ‘Svrsw60t59b’, and numerous other improvements/additions/fixes
+ - RISC-V: support for Kunminghu CPU and platform
+ - x86: KVM support for running confidential guests via Intel TDX
+ - x86: Support for initializing AMD SEV/SEV-ES/SEV-SNP virtual machines using the IGVM file format
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 10.0.0 released 2025-04-23T18:14:00+00:00 2025-04-23T18:14:00+00:00 /2025/04/23/qemu-10-0-0 We’d like to announce the availability of the QEMU 10.0.0 release. This release contains 2800+ commits from 211 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - block: virtio-scsi multiqueue support for using different I/O threads to process requests for each queue (similar to the virtio-blk multiqueue support that was added in QEMU 9.2)
+ - VFIO: improved support for IGD passthrough on all Intel Gen 11/12 devices
+ - Documentation: significant improvement/overhaul of documentation for QEMU Machine Protocol to make it clearer and more organized, including all commands/events/types now being cross-reference-able via click-able links in generated documentation
+ - ARM: emulation support for Secure EL2 physical and virtual timers
+ - ARM: emulation support for FEAT_AFP, FEAT_RPRES, and FEAT_XS architecture features
+ - ARM: new board models for NPCM8445 Evaluation and i.MX 8M Plus EVK boards
+ - HPPA: new SeaBIOS-hppa version 18 with lots of fixes and enhancements
+ - HPPA: translation speed and virtual CPU reset improvements
+ - HPPA: emulation support for Diva GSP BMC boards
+ - LoongArch: support for CPU hotplug, paravirtual IPIs, KVM steal time accounting, and virtual ‘extioi’ interrupt routing.
+ - RISC-V: ISA/extension support for riscv-iommu-sys devices, ‘svukte’, ‘ssstateen’, ‘smrnmi’, ‘smdbltrp’/’ssdbltrp’, ‘supm’/’sspm’, and IOMMU translation tags
+ - RISC-V: emulation support for Ascalon and RV64 Xiangshan Nanhu CPUs, and Microblaze V boards.
+ - s390x: add CPU model support for the generation 17 mainframe CPU
+ - s390x: add support for virtio-mem and for bypassing IOMMU to improve PCI device performance
+ - x86: CPU model support for Clearwater Forest and Sierra Forest v2
+ - x86: faster emulation of string instructions
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> Announcing QEMU Google Summer of Code 2025 internships 2025-03-06T07:00:00+00:00 2025-03-06T07:00:00+00:00 /2025/03/06/gsoc-2025 QEMU is participating in Google Summer of
+Code again this year! Google Summer of Code
+is an open source internship program that offers paid remote work
+opportunities for contributing to open source. Internships run May through
+August, so if you have time and want to experience open source development,
+read on to find out how you can apply.
+
+Each intern is paired with one or more mentors, experienced QEMU contributors
+who support them during the internship. Code developed by the intern is
+submitted through the same open source development process that all QEMU
+contributions follow. This gives interns experience with contributing to open
+source software. Some interns then choose to pursue a career in open source
+software after completing their internship.
+
+Find out if you are eligible
+Information on who can apply for Google Summer of Code is
+here.
+
+Select a project idea
+Look through the the list of QEMU project
+ideas and see if there is
+something you are interested in working on. Once you have found a project idea
+you want to apply for, email the mentor for that project idea to ask any
+questions you may have and discuss the idea further.
+
+Submit your application
+You can apply for Google Summer of Code
+from March 24th to April 8th.
+
+Good luck with your applications!
+
+If you have questions about applying for QEMU GSoC, please email
+Stefan Hajnoczi or ask on the #qemu-gsoc IRC
+channel.
]]> QEMU version 9.2.0 released 2024-12-11T23:42:00+00:00 2024-12-11T23:42:00+00:00 /2024/12/11/qemu-9-2-0 We’d like to announce the availability of the QEMU 9.2.0 release. This release contains 1700+ commits from 209 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - virtio-gpu: support for 3D acceleration of Vulkan applications via Venus Vulkan driver in the guest and virglrenderer host library
+ - crypto: GLib crypto backend now supports SHA-384 hashes
+ - migration: QATzip-accelerated compression support while using multiple migration streams
+ - Rust: experimental support for device models written in Rust (for development use only)
+ - ARM: emulation support for FEAT_EBF16, FEAT_CMOW architecture features
+ - ARM: support for two-stage SMMU translation for sbsa-ref and virt boards
+ - ARM: support for CPU Security Extensions for xilinx-zynq-a9 board
+ - ARM: 64GB+ memory support when using HVF acceleration on newer Mac systems
+ - HPPA: SeaBIOS-hppa v17 firmware with various fixes and enhancements
+ - RISC-V: IOMMU support for virt machine
+ - RISC-V: support for control flow integrity and Svvptc extensions, and support for Bit-Manipulation extension on OpenTitan boards
+ - RISC-V: improved performance for vector unit-stride/whole register ld/st instructions
+ - s390x: support for booting from other devices if the previous ones fail
+ - x86: support for new nitro-enclave machine type that can emulate AWS Nitro Enclave and can boot from Enclave Image Format files.
+ - x86: KVM support for enabling AVX10, as well as enabling specific AVX10 versions via command-line
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 9.1.0 released 2024-09-03T23:08:00+00:00 2024-09-03T23:08:00+00:00 /2024/09/03/qemu-9-1-0 We’d like to announce the availability of the QEMU 9.1.0 release. This release contains 2800+ commits from 263 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - migration: compression offload support via Intel In-Memory Analytics Accelerator (IAA) or User Space Accelerator Development Kit (UADK), along with enhanced support for postcopy failure recovery
+ - virtio: support for VIRTIO_F_NOTIFICATION_DATA, allowing guest drivers to provide additional data as part of sending device notifications for performance/debug purposes
+ - guest-agent: support for guest-network-get-route command on linux, guest-ssh-* commands on Windows, and enhanced CLI support for configuring allowed/blocked commands
+ - block: security fixes for QEMU NBD server and NBD TLS encryption
+ - ARM: emulation support for FEAT_NMI, FEAT_CSV2_3, FEAT_ETS2, FEAT_Spec_FPACC, FEAT_WFxT, FEAT_Debugv8p8 architecture features
+ - ARM: nested/two-stage page table support for emulated SMMUv3
+ - ARM: xilinx_zynq board support for cache controller and multiple CPUs, and B-L475E-IOT01A board support for a DM163 display
+ - LoongArch: support for directly booting an ELF kernel and for running up to 256 vCPUs via extioi virt extension
+ - LoongArch: enhanced debug/GDB support
+ - RISC-V: support for version 1.13 of privileged architecture specification
+ - RISC-V: support for Zve32x, Zve64x, Zimop, Zcmop, Zama16b, Zabha, Zawrs, and Smcntrpmf extensions
+ - RISC-V: enhanced debug/GDB support and general fixes
+ - SPARC: emulation support for FMAF, IMA, VIS3, and VIS4 architecture features
+ - x86: KVM support for running AMD SEV-SNP guests
+ - x86: CPU emulation support for Icelake-Server-v7, SapphireRapids-v3, and SierraForest
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> KVM Forum 2024: Call for presentations 2024-05-06T06:00:00+00:00 2024-05-06T06:00:00+00:00 /2024/05/06/kvm-forum-cfp The KVM Forum 2024 conference will take
+place in Brno, Czech Republic on September 22-23, 2024. KVM Forum brings
+together the Linux virtualization community, especially around the KVM stack,
+including QEMU and other virtual machine monitors.
+
+The Call for Presentations is open until June 8, 2024. You are invited to
+submit presentation proposals via the KVM Forum CfP
+page. All presentation slots will be
+25 minutes + 5 minutes for questions.
+
+Suggested topics include:
+
+
+ - Scalability and Optimization
+ - Hardening and security
+ - Confidential computing
+ - Testing
+ - KVM and the Linux Kernel
+
+ - New Features and Architecture Ports
+ - Device Passthrough: VFIO, mdev, vDPA
+ - Network Virtualization
+ - Virtio and vhost
+
+
+ - Virtual Machine Monitors and Management
+
+ - VMM Implementation: APIs, Live Migration, Performance Tuning, etc.
+ - Multi-process VMMs: vhost-user, vfio-user, QEMU Storage Daemon, SPDK
+ - QEMU without KVM: Hypervisor.framework, Windows Hypervisor Platform, etc.
+ - Managing KVM: Libvirt, KubeVirt, Kata Containers
+
+
+ - Emulation
+
+ - New Devices, Boards and Architectures
+ - CPU Emulation and Binary Translation
+
+
+
]]> QEMU version 9.0.0 released 2024-04-23T23:02:00+00:00 2024-04-23T23:02:00+00:00 /2024/04/23/qemu-9-0-0 We’d like to announce the availability of the QEMU 9.0.0 release. This release contains 2700+ commits from 220 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - block: virtio-blk now supports multiqueue where different queues of a single disk can be processed by different I/O threads
+ - gdbstub: various improvements such as catching syscalls in user-mode, support for fork-follow modes, and support for siginfo:read
+ - memory: preallocation of memory backends can now be handled concurrently using multiple threads in some cases
+ - migration: support for “mapped-ram” capability allowing for more efficient VM snapshots, improved support for zero-page detection, and checkpoint-restart support for VFIO
+ - ARM: architectural feature support for ECV (Enhanced Counter Virtualization), NV (Nested Virtualization), and NV2 (Enhanced Nested Virtualization)
+ - ARM: board support for B-L475E-IOT01A IoT node, mp3-an536 (MPS3 dev board + AN536 firmware), and raspi4b (Raspberry Pi 4 Model B)
+ - ARM: additional IO/disk/USB/SPI/ethernet controller and timer support for Freescale i.MX6, Allwinner R40, Banana Pi, npcm7xxx, and virt boards
+ - HPPA: numerous bug fixes and SeaBIOS-hppa firmware updated to version 16
+ - LoongArch: KVM acceleration support, including LSX/LASX vector extensions
+ - RISC-V: ISA/extension support for Zacas, amocas, RVA22 profiles, Zaamo, Zalrsc, Ztso, and more
+ - RISC-V: SMBIOS support for RISC-V virt machine, ACPI support for SRAT, SLIT, AIA, PLIC and updated RHCT table support, and numerous fixes
+ - s390x: Emulation support for CVDG, CVB, CVBY and CVBG instructions, and fixes for LAE (Load Address Extended) emulation
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.2.0 released 2023-12-20T16:33:00+00:00 2023-12-20T16:33:00+00:00 /2023/12/20/qemu-8-2-0 We’d like to announce the availability of the QEMU 8.2.0 release. This release contains 3200+ commits from 238 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - New virtio-sound device emulation
+ - New virtio-gpu rutabaga device emulation used by Android emulator
+ - New hv-balloon for dynamic memory protocol device for Hyper-V guests
+ - New Universal Flash Storage device emulation
+ - Network Block Device (NBD) 64-bit offsets for improved performance
+ - dump-guest-memory now supports the standard kdump format
+ - ARM: Xilinx Versal board now models the CFU/CFI, and the TRNG device
+ - ARM: CPU emulation support for cortex-a710 and neoverse-n2
+ - ARM: architectural feature support for PACQARMA3, EPAC, Pauth2, FPAC, FPACCOMBINE, TIDCP1, MOPS, HBC, and HPMN0
+ - HPPA: CPU emulation support for 64-bit PA-RISC 2.0
+ - HPPA: machine emulation support for C3700, including Astro memory controller and four Elroy PCI bridges
+ - LoongArch: ISA support for LASX extension and PRELDX instruction
+ - LoongArch: CPU emulation support for la132
+ - RISC-V: ISA/extension support for AIA virtualization support via KVM, and vector cryptographic instructions
+ - RISC-V: Numerous extension/instruction cleanups, fixes, and reworks
+ - s390x: support for vfio-ap passthrough of crypto adapter for protected virtualization guests
+ - Tricore: support for TC37x CPU which implements ISA v1.6.2
+ - Tricore: support for CRCN, FTOU, FTOHP, and HPTOF instructions
+ - x86: Zen support for PV console and network devices
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.1.0 released 2023-08-22T16:42:00+00:00 2023-08-22T16:42:00+00:00 /2023/08/22/qemu-8-1-0 We’d like to announce the availability of the QEMU 8.1.0 release. This release contains 2900+ commits from 250 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - VFIO: improved live migration support, no longer an experimental feature
+ - GTK GUI now supports multi-touch events
+ - ARM, PowerPC, and RISC-V can now use AES acceleration on host processor
+ - PCIe: new QMP commands to inject CXL General Media events, DRAM events and
+Memory Module events
+ - ARM: KVM VMs on a host which supports MTE (the Memory Tagging Extension)
+can now use MTE in the guest
+ - ARM: emulation support for bpim2u (Banana Pi BPI-M2 Ultra) board and
+neoverse-v1 (Cortex Neoverse-V1) CPU
+ - ARM: new architectural feature support for: FEAT_PAN3 (SCTLR_ELx.EPAN),
+FEAT_LSE2 (Large System Extensions v2), and experimental support for
+FEAT_RME (Realm Management Extensions)
+ - Hexagon: new instruction support for v68/v73 scalar, and v68/v69 HVX
+ - Hexagon: gdbstub support for HVX
+ - MIPS: emulation support for Ingenic XBurstR1/XBurstR2 CPUs, and MXU
+instructions
+ - PowerPC: TCG SMT support, allowing pseries and powernv to run with up to 8
+threads per core
+ - PowerPC: emulation support for Power9 DD2.2 CPU model, and perf sampling
+support for POWER CPUs
+ - RISC-V: ISA extension support for BF16/Zfa, and disassembly support
+for Zcm/Zinx/XVentanaCondOps/Xthead
+ - RISC-V: CPU emulation support for Veyron V1
+ - RISC-V: numerous KVM/emulation fixes and enhancements
+ - s390: instruction emulation fixes for LDER, LCBB, LOCFHR, MXDB, MXDBR,
+EPSW, MDEB, MDEBR, MVCRL, LRA, CKSM, CLM, ICM, MC, STIDP, EXECUTE, and
+CLGEBR(A)
+ - SPARC: updated target/sparc to use tcg_gen_lookup_and_goto_ptr() for
+improved performance
+ - Tricore: emulation support for TC37x CPU that supports ISA v1.6.2
+instructions
+ - Tricore: instruction emulation of POPCNT.W, LHA, CRC32L.W, CRC32.B,
+SHUFFLE, SYSCALL, and DISABLE
+ - x86: CPU model support for GraniteRapids
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.0.0 released 2023-04-20T18:53:00+00:00 2023-04-20T18:53:00+00:00 /2023/04/20/qemu-8-0-0 We’d like to announce the availability of the QEMU 8.0.0 release. This release contains 2800+ commits from 238 authors.
+
+You can grab the tarball from our download page. The full list of changes are available in the changelog.
+
+Highlights include:
+
+
+ - ARM: emulation support for FEAT_EVT, FEAT_FGT, and AArch32 ARMv8-R
+ - ARM: CPU emulation for Cortex-A55 and Cortex-R52, and new Olimex
+STM32 H405 machine type
+ - ARM: gdbstub support for M-profile system registers
+ - HPPA: fid (Floating-Point Identify) instruction support and 32-bit
+emulation improvements
+ - RISC-V: additional ISA and Extension support for smstateen, native
+debug icount trigger, cache-related PMU events in virtual mode,
+Zawrs/Svadu/T-Head/Zicond extensions, and ACPI support
+ - RISC-V: updated machine support for OpenTitan, PolarFire, and
+OpenSBI
+ - RISC-V: wide ranges of fixes covering PMP propagation for TLB,
+mret exceptions, uncompressed instructions, and other
+emulation/virtualization improvements
+ - s390x: improved zPCI passthrough device handling
+ - s390x: support for asynchronous teardown of memory of secure KVM
+guests during reboot
+ - x86: support for Xen guests under KVM with Linux v5.12+
+ - x86: new SapphireRapids CPU model
+ - x86: TCG support for FSRM, FZRM, FSRS, and FSRC CPUID flags
+ - virtio-mem: support for using preallocation in conjunction with live
+migration
+ - VFIO: experimental migration support updated to v2 VFIO migration
+protocol
+ - qemu-nbd: improved efficient over TCP and when using TLS
+ - and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]>
\ No newline at end of file
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom b/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom
new file mode 100644
index 000000000..e2273fb67
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom
@@ -0,0 +1,11436 @@
+
+
+ 2025-02-20T00:00:00Z
+ yakubin’s notes
+
+
+
+ Jakub Alba (yakubin)
+ https://yakubin.com
+
+ urn:uuid:a81c5f80-f5ca-4b3a-8a31-9d61a9fadf30
+
+
+ Thoughts about Prolog
+
+ urn:uuid:034e3deb-01fe-48bb-9c30-0ad0df9b1c26
+
+ 2025-01-17T00:00:00Z
+
+ 2025-01-17T00:00:00Z
+
+
+ <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 #=< Y, !, partition(Xs, Y, Ls, Bs).
+partition([X|Xs], Y, Ls, [X|Bs]) :- X #> 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>
+
+
+
+
+
+ Naive Gaussian elimination in floating-point vs exact arithmetic [PDF]
+
+ urn:uuid:ddb2699a-063f-41e3-9f38-da11665feb53
+
+ 2024-11-18T00:00:00Z
+
+ 2024-11-18T00:00:00Z
+
+
+
+
+
+ In appreciation of segment LCDs
+
+ urn:uuid:456233f8-d1fe-4795-a53e-db30f6084e29
+
+ 2024-10-22T00:00:00Z
+
+ 2024-10-22T00:00:00Z
+
+
+ <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>
+
+
+
+
+
+ Floating-point Gaussian elimination errors for Hilbert matrices
+
+ urn:uuid:656f798c-b4ce-4c75-8574-ac5a2b0c58f7
+
+ 2024-09-16T00:00:00Z
+
+ 2024-10-14T00:00:00Z
+
+
+ <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>
+
+
+
+
+
+ Race conditions in procfs
+
+ urn:uuid:f915aa6b-373f-4135-8b78-c12951b9b667
+
+ 2024-06-12T00:00:00Z
+
+ 2024-06-18T00:00:00Z
+
+
+ <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 '^d' | 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 << 16;
+ const size_t small_chunk_size = 1 << 12;
+
+ char maps_path[26] = {0};
+ snprintf(maps_path, (sizeof maps_path) - 1, "/proc/%u/maps", (unsigned) pid);
+
+ FILE* src_fp = fopen(maps_path, "r");
+ if (src_fp == NULL) {
+ perror("fopen");
+ return;
+ }
+
+ FILE* dst_fp = fopen(dst, "w");
+ if (dst_fp == NULL) {
+ perror("fopen");
+ 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 < n) {
+ size_t m = fwrite(chunk, 1, n, dst_fp);
+ if (n != m) {
+ fprintf(stderr, "fwrite failed\n");
+ return;
+ }
+ }
+ if (n < chunk_size) {
+ if (ferror(src_fp)) {
+ fprintf(stderr, "fread failed\n");
+ return;
+ }
+ if (feof(src_fp)) {
+ break;
+ }
+ }
+ }
+
+ if (fflush(dst_fp)) {
+ perror("fflush");
+ 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 < 100);
+ for (int i = 0; i < n; i++) {
+ char dstPathBuf[30] = {0};
+ snprintf(dstPathBuf, sizeof dstPathBuf - 1, "./saved-maps-%02d.txt", 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, &act, NULL) != 0) {
+ perror("sigaction");
+ 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("mmap");
+ 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("mmap");
+ return 3;
+ }
+
+ printf("%p %p\n", arena, arena + total * pagesize);
+
+ for (size_t i = 0; i < total; i++) {
+ pages[i] = arena + i * pagesize;
+ if (i % 2 == 0 && mprotect(pages[i], pagesize, PROT_READ) != 0) {
+ perror("mprotect read");
+ return 4;
+ }
+ }
+
+ if (shuffle(pages, total)) {
+ return 5;
+ }
+
+ if (mprotect(pages[0], pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect prot_read_write");
+ return 6;
+ }
+
+ copy_maps_to_file("./saved-maps.txt", pid);
+
+ if (fork() == 0) {
+ copy_maps_n_times(pid, 20);
+ return 0;
+ }
+
+ int ret = 0;
+
+ for (size_t i = 1; i < total; i++) {
+ if (mprotect(pages[i], pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect prot_read_write");
+ ret = 7;
+ break;
+ }
+ if (mprotect(pages[i - 1], pagesize, PROT_NONE) != 0) {
+ perror("mprotect prot_none");
+ ret = 8;
+ break;
+ }
+ }
+
+ int child_pid;
+ do {
+ int stat_loc;
+ child_pid = wait(&stat_loc);
+ } while (child_pid < 0 && errno == EINTR);
+
+ if (child_pid < 0) {
+ perror("wait");
+ 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 ] && (echo "usage: $0 <start> <end>"; exit)
+
+sed -E -e 's/^([^-]+)-([^ ]+) /0x\1 0x\2 /' | gawk -v start="$1" -v end="$2" 'BEGIN{c=0} strtonum($1) >= strtonum(start) && strtonum($2) < strtonum(end) && $3 ~ /^rw/{c+=(strtonum($2) - strtonum($1)) / 4096} END{print c}'</code></pre>
+<p>The result:</p>
+<pre><code>$ ./rolling-mmap
+0x7fa44f494000 0x7fa45f27c000
+$ <saved-maps.txt ./linux-count-rw-maps.sh 0x7fa44f494000 0x7fa45f27c000
+1
+$ for f in saved-maps-*.txt; do <"$f" ./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->type) {
+ case PROCSTAT_KVM:
+ warnx("kvm method is not supported");
+ return (NULL);
+ case PROCSTAT_SYSCTL:
+ return (kinfo_getvmmap(kp->ki_pid, cntp));
+ case PROCSTAT_CORE:
+ return (kinfo_getvmmap_core(procstat->core, cntp));
+ default:
+ warnx("unknown access method: %d", procstat->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, &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, &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&apropos=0&sektion=3&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&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, "%u", (unsigned) pid);
+
+ if (fork() == 0) {
+ int fd;
+ do {
+ fd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0644);
+ } while (fd < 0 && errno == EINTR);
+
+ if (fd < 0) {
+ perror("open");
+ return;
+ }
+
+ // Redirect stdout to the output file.
+ if (dup2(fd, 1) < 0) {
+ perror("dup2");
+ return;
+ }
+ close(fd);
+
+ execl("/usr/bin/procstat", "procstat", "vm", pid_str, NULL);
+ perror("exec procstat");
+ return;
+ }
+
+ int child_pid;
+ do {
+ int stat_loc;
+ child_pid = wait(&stat_loc);
+ } while (child_pid < 0 && errno == EINTR);
+
+ if (child_pid < 0) {
+ perror("wait");
+ }
+}
+
+#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 ] && (echo "usage: $0 <start> <end>"; exit)
+
+gawk -v start="$1" -v end="$2" 'BEGIN{c=0} strtonum($2) >= strtonum(start) && strtonum($2) < strtonum(end) && $4 ~ /^rw/{c+=(strtonum($3) - strtonum($2)) / 4096} END{print c}'</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
+$ <saved-maps.txt ./freebsd-count-rw-maps.sh 0x825f28000 0x835d10000
+1
+$ for f in saved-maps-*.txt; do <"$f" ./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>
+
+
+
+
+
+ Debugging vtable corruption with mmap
+
+ urn:uuid:89039ef2-435a-4fb0-95f8-60c7871f082a
+
+ 2024-06-06T00:00:00Z
+
+ 2024-06-11T00:00:00Z
+
+
+ <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 "a.hpp"
+
+#include <stdio.h>
+
+void A::PrintInt() const {
+ int n = GetInt();
+ printf("%d\n", n);
+}</code></pre>
+<pre><code>b.hpp</code><code>#pragma once
+
+#include "a.hpp"
+
+class B : public A {
+public:
+ int GetInt() const override;
+};</code></pre>
+<pre><code>b.cpp</code><code>#include "b.hpp"
+
+int B::GetInt() const {
+ return 42;
+}</code></pre>
+<pre><code>test1.cpp</code><code>#include "b.hpp"
+
+int main() {
+ A* a = new B;
+ void** vtable_ptr = (void**) a;
+ *vtable_ptr = (void*)0xdeadbeef;
+ a->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
+=> 0x555555555199 <_ZNK1A8PrintIntEv+7>: 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 <_ZNK1A8PrintIntEv>: sub rsp,0x8
+ 0x555555555196 <_ZNK1A8PrintIntEv+4>: mov rax,QWORD PTR [rdi]
+=> 0x555555555199 <_ZNK1A8PrintIntEv+7>: 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 <new>
+#include <stdio.h>
+#include <sys/mman.h>
+#include <unistd.h>
+
+#include "b.hpp"
+
+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("mmap");
+ 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("mprotect");
+ return 2;
+ }
+
+ *vtable_ptr = (void*)0xdeadbeef;
+ a->PrintInt();
+
+ // Make the first page read-write again before calling the destructor.
+ if (mprotect(p, pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect");
+ return 3;
+ }
+
+ // Calling the destructor and freeing memory.
+ a->~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>
+
+
+
+
+
+ Using external tools inside Docker containers
+
+ urn:uuid:5d97930d-0e90-470b-94a7-affcc3b7f111
+
+ 2024-05-27T00:00:00Z
+
+ 2024-05-27T00:00:00Z
+
+
+ <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 "/bin/bash" 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 '{{.State.Pid}}' 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:(("nc",pid=18381,fd=3))</code></pre>
+<p>Putting it all together:</p>
+<pre><code>$ sudo nsenter -t "$(docker inspect -f '{{.State.Pid}}' 91c5c431ebb0)" -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:(("nc",pid=18381,fd=3))</code></pre>
+
+
+
+
+
+ Windows UTC clock
+
+ urn:uuid:7f26868a-a5f9-4007-8644-badb2dbb9ae7
+
+ 2024-05-14T00:00:00Z
+
+ 2024-05-14T00:00:00Z
+
+
+ <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>
+
+
+
+
+
+ Archived links
+
+ urn:uuid:9d38ab97-cda2-44a0-bf8f-08b659de22f7
+
+ 2023-05-13T00:00:00Z
+
+ 2025-02-20T00:00:00Z
+
+
+ <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&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>
+
+
+
+
+
+ Atomic site updates
+
+ urn:uuid:99b11ccd-fae6-4565-9bf8-0f962d7e9d18
+
+ 2023-01-16T00:00:00Z
+
+ 2024-04-19T00:00:00Z
+
+
+ <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 -> 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 "$1" new-current
+mv -fh new-current current # If you're on Linux, replace "-fh" with "-fT"
+
+# Remove all directories except the one with the current website version
+find . -mindepth 1 -maxdepth 1 -type d | grep -Fxv "./$(readlink current)" | 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="$(</dev/urandom LC_ALL=C tr -cd 'A-Za-z0-9' | head -c 6)"
+rsync -crlDivz --link-dest=../current/ "$1"/ yakubin.com:"/website/$directory/"
+ssh yakubin.com "cd /website; ./switch.sh $directory"</code></pre>
+
+
+
+
+
+ Reserve and commit
+
+ urn:uuid:cf3298a6-76d3-4667-8c34-81f6f4dbad48
+
+ 2023-01-14T00:00:00Z
+
+ 2024-06-11T00:00:00Z
+
+
+ <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 << "Reserving memory with VirtualAlloc failed. Error code: " << last_error << 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 << "Committing memory with VirtualAlloc failed. Error code: " << last_error << 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(), &mem, sizeof mem);
+ if (!res) {
+ DWORD last_error = GetLastError();
+ std::cerr << "GetProcessMemoryInfo failed. Error code: " << last_error << 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<uint64_t>(li.QuadPart) / 10;
+}
+
+inline uint64_t GetCpuTime() {
+ FILETIME a, b, c, d;
+ if (GetProcessTimes(GetCurrentProcess(), &a, &b, &c, &d) != 0) {
+ auto kernel_time = ConvertFiletimeToMicroseconds(c);
+ auto user_time = ConvertFiletimeToMicroseconds(d);
+ return user_time + kernel_time;
+ } else {
+ std::cerr << "failed to get CPU time\n";
+ 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__) && 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 << "Reserving memory with mmap failed. Exit code: " << saved_errno << 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 << "Committing memory with mprotect failed. Exit code: " << saved_errno << 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 << "Failed to unmap memory. Exit code: " << saved_errno << 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, &r_usage) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Failed to fetch memory use. Exit code: " << saved_errno << std::endl;
+ return 0;
+ }
+
+ // On Mac, ru_maxrss is in bytes. On Linux and FreeBSD it'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<uint64_t>(t.tv_sec) * 1000000ULL + static_cast<uint64_t>(t.tv_usec);
+}
+
+inline uint64_t GetCpuTime() {
+ rusage r_usage;
+ if (getrusage(RUSAGE_SELF, &r_usage) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Failed to fetch memory use. Exit code: " << saved_errno << 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&) = delete;
+ Arena(Arena&& 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<char*>(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 <= 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 <typename T>
+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<T>& other) = delete;
+ DynArray(DynArray&& 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<T*>(arena.base);
+ }
+
+ T* end() {
+ return reinterpret_cast<T*>(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& operator[](size_t i) {
+ assert(i < 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] = 'a';
+ a.base[1] = 'b';
+ a.base[2] = 'c';
+ a.base[4] = '\0';
+
+ std::cout << a.base << std::endl;
+
+ // Past the declared length, but still in committed memory.
+ // No segfault, but in real code it's probably a bug.
+ a.base[5] = 'x';
+ a.base[kBytesPerCommit-1] = 'y';
+
+ // Reserved, but not committed memory. Segfault.
+ // a.base[kBytesPerCommit] = 'x';</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<int>(N);
+
+ for (size_t i = 0; i < 16; i++) {
+ assert(a.Append(static_cast<int>(i)));
+ }
+
+ for (size_t i = 0; i < 12; i++) {
+ std::cout << a[i] << "\n";
+ }
+
+ for (size_t i = 16; i < N; i++) {
+ a.Append(static_cast<int>(i));
+ }
+
+ size_t real_cap = GetCommittedBytes(N * sizeof(int)) / sizeof(int);
+
+ for (size_t i = N; i < real_cap; i++) {
+ a.Append(static_cast<int>(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 == "bench2.exe"/
+{
+ self->ts = timestamp;
+}
+
+syscall::NtAllocateVirtualMemory:return
+/execname == "bench2.exe"/
+{
+ @alloc[execname] = quantize((timestamp - self->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>"C:\Program Files\DTrace\dtrace.exe" -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 <cmd></code> option to <code>dtrace.exe</code>, which
+starts the <code><cmd></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->ts[probefunc] = timestamp;
+}
+
+pid$1::VirtualAlloc:return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::GetProcessTimes:entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::GetProcessTimes:return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::"DynArray<int>::Append":entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::"DynArray<int>::Append":return
+{
+ @[execname,probefunc] = quantize((timestamp - self->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>& "C:\Program Files\DTrace\dtrace.exe" -s virtualallochist.d (Get-Process -Name "bench0").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<std::unique_ptr<int,std::default_delete<int> > >::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<int>::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<int>::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>
+
+
+
+
+
+ Safe port forwarding with iptables and WireGuard
+
+ urn:uuid:5a3c3df4-b810-4701-879f-2a81ab9ed7ec
+
+ 2022-11-16T00:00:00Z
+
+ 2022-11-16T00:00:00Z
+
+
+ <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:<IP-ADDRESS-OF-C>:22 <IP-ADDRESS-OF-B></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 > /proc/sys/net/ipv4/ip_forward
+
+# Redirect packets incoming at port 8888 to <IP-ADDRESS-OF-C> at port 22.
+iptables -t nat -A PREROUTING -p tcp --dport 8888 -j DNAT --to-destination <IP-ADDRESS-OF-C>: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'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 <IP-ADDRESS-OF-B></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 > 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 <IP-ADDRESS-OF-A>: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 <IP-ADDRESS-OF-B>: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 <POINTOPOINT,NOARP,UP,LOWER_UP></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 > /proc/sys/net/ipv4/ip_forward
+iptables -t nat -A PREROUTING -p tcp -i wg0 --dport 8888 -j DNAT --to-destination <IP-ADDRESS-OF-C>: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 <IP-ADDRESS-OF-C> --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>
+
+
+
+
+
From 7314f9a7f32f4d012e944b9f37004cd9c5c32b16 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 16:17:13 -0700
Subject: [PATCH 163/239] Lightly improve isValidURLString.
---
Modules/RSParser/Sources/ObjC/RSAtomParser.m | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/Modules/RSParser/Sources/ObjC/RSAtomParser.m b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
index 26131549e..e61ee8e88 100755
--- a/Modules/RSParser/Sources/ObjC/RSAtomParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
@@ -384,18 +384,14 @@ static const NSInteger kLengthLength = 7;
return nil;
}
+static NSString *httpsURLPrefix = @"https://";
+static NSString *httpURLPrefix = @"http://";
+
- (BOOL)isValidURLString:(NSString *)s {
NSString *lowercaseString = [s lowercaseString];
- if ([lowercaseString hasPrefix:@"https://"]) {
- return YES;
- }
- if ([lowercaseString hasPrefix:@"http://"]) {
- return YES;
- }
-
- return NO;
+ return ([lowercaseString hasPrefix:httpsURLPrefix] || [lowercaseString hasPrefix:httpURLPrefix]);
}
- (NSString *)currentString {
From 31eb5b5bfd769ec930ebc73b5c0901130e0836b3 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 18:49:19 -0700
Subject: [PATCH 164/239] Add baseline for performance tests.
---
...B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist | 32 ++++++++++++++++++
.../RSParserTests.xcbaseline/Info.plist | 33 +++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist
create mode 100644 Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist
diff --git a/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist
new file mode 100644
index 000000000..f49f25020
--- /dev/null
+++ b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ classNames
+
+ AtomParserTests
+
+ testAllThisPerformance()
+
+ com.apple.XCTPerformanceMetric_WallClockTime
+
+ baselineAverage
+ 0.000999
+ baselineIntegrationDisplayName
+ Local Baseline
+
+
+ testDaringFireballPerformance()
+
+ com.apple.XCTPerformanceMetric_WallClockTime
+
+ baselineAverage
+ 0.003045
+ baselineIntegrationDisplayName
+ Local Baseline
+
+
+
+
+
+
diff --git a/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist
new file mode 100644
index 000000000..c4e202844
--- /dev/null
+++ b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist
@@ -0,0 +1,33 @@
+
+
+
+
+ runDestinationsByUUID
+
+ B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4
+
+ localComputer
+
+ busSpeedInMHz
+ 0
+ cpuCount
+ 1
+ cpuKind
+ Apple M1 Max
+ cpuSpeedInMHz
+ 0
+ logicalCPUCoresPerPackage
+ 10
+ modelCode
+ Mac13,1
+ physicalCPUCoresPerPackage
+ 10
+ platformIdentifier
+ com.apple.platform.macosx
+
+ targetArchitecture
+ arm64e
+
+
+
+
From 212d9b40beac8e0166a03d901e3ff578f89d2a5b Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 18:50:17 -0700
Subject: [PATCH 165/239] =?UTF-8?q?Resolve=20link=20URLs.=20Handle=20Darin?=
=?UTF-8?q?g=20Fireball=E2=80=99s=20sometimes-crossed=20permalinks=20and?=
=?UTF-8?q?=20external=20links.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Modules/RSParser/Sources/ObjC/RSAtomParser.m | 63 ++++++++++++-----
.../Tests/RSParserTests/AtomParserTests.swift | 67 ++++++++++++++++++-
2 files changed, 111 insertions(+), 19 deletions(-)
diff --git a/Modules/RSParser/Sources/ObjC/RSAtomParser.m b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
index e61ee8e88..307e15b25 100755
--- a/Modules/RSParser/Sources/ObjC/RSAtomParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
@@ -43,6 +43,7 @@
@property (nonatomic) RSParsedAuthor *rootAuthor;
@property (nonatomic, readonly) NSDate *currentDate;
@property (nonatomic) NSString *language;
+@property (nonatomic) BOOL isDaringFireball; // Special case — sometimes permalink and external link are swapped.
@end
@@ -72,6 +73,7 @@
_parser = [[RSSAXParser alloc] initWithDelegate:self];
_attributesStack = [NSMutableArray new];
_articles = [NSMutableArray new];
+ _isDaringFireball = [_urlString containsString:@"daringfireball.net/"];
return self;
}
@@ -230,7 +232,6 @@ static const NSInteger kLengthLength = 7;
}
}
-
- (void)addArticle {
RSParsedArticle *article = [[RSParsedArticle alloc] initWithFeedURL:self.urlString];
@@ -245,19 +246,16 @@ static const NSInteger kLengthLength = 7;
return self.articles.lastObject;
}
-
- (NSDictionary *)currentAttributes {
return self.attributesStack.lastObject;
}
-
- (NSDate *)currentDate {
return RSDateWithBytes(self.parser.currentCharacters.bytes, self.parser.currentCharacters.length);
}
-
- (void)addHomePageLink {
if (!RSParserStringIsEmpty(self.homepageURLString)) {
@@ -279,7 +277,6 @@ static const NSInteger kLengthLength = 7;
}
}
-
- (void)addFeedTitle {
if (self.title.length < 1) {
@@ -294,6 +291,20 @@ static const NSInteger kLengthLength = 7;
}
}
+- (void)addPermalink:(NSString *)resolvedURLString article:(RSParsedArticle *)article {
+ if (RSParserStringIsEmpty(article.permalink)) {
+ article.permalink = resolvedURLString;
+ }
+}
+
+- (void)addExternalLink:(NSString *)resolvedURLString article:(RSParsedArticle *)article {
+ if (RSParserStringIsEmpty(article.link)) {
+ article.link = resolvedURLString;
+ }
+}
+
+static NSString *daringFireballPermalinkPrefix = @"https://daringfireball.net/";
+
- (void)addLink {
NSDictionary *attributes = self.currentAttributes;
@@ -302,6 +313,10 @@ static const NSInteger kLengthLength = 7;
if (urlString.length < 1) {
return;
}
+ NSString *resolvedURLString = [self resolvedURLString:urlString];
+ if (RSParserStringIsEmpty(resolvedURLString)) {
+ return;
+ }
RSParsedArticle *article = self.currentArticle;
@@ -310,19 +325,33 @@ static const NSInteger kLengthLength = 7;
rel = kAlternateValue;
}
- if (rel == kRelatedValue) {
- if (!article.link) {
- article.link = urlString;
- }
- }
- else if (rel == kAlternateValue) {
- if (!article.permalink) {
- article.permalink = urlString;
- }
- }
- else if (rel == kEnclosureValue) {
- RSParsedEnclosure *enclosure = [self enclosureWithURLString:urlString attributes:attributes];
+ if ([rel isEqualToString:kEnclosureValue]) {
+ RSParsedEnclosure *enclosure = [self enclosureWithURLString:resolvedURLString attributes:attributes];
[article addEnclosure:enclosure];
+ return;
+ }
+
+ if (self.isDaringFireball) {
+ // Permalink and external link are swapped sometimes.
+ // Decide which is which by looking at the URL prefix — is it a link to daringfireball.net or to elsewhere?
+ BOOL isDaringFireballLink = [resolvedURLString hasPrefix:daringFireballPermalinkPrefix];
+ if (isDaringFireballLink) {
+ [self addPermalink:resolvedURLString article:article];
+ }
+ else {
+ [self addExternalLink:resolvedURLString article:article];
+ }
+ return;
+ }
+
+ // Standard behavior: rel="related" is external link
+ if (rel == kRelatedValue) {
+ [self addExternalLink:resolvedURLString article:article];
+ }
+
+ // Standard behavior: rel="alternate" is permalink
+ if (rel == kAlternateValue) {
+ [self addPermalink:resolvedURLString article:article];
}
}
diff --git a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
index ab68ce2ae..7347c04dd 100644
--- a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
@@ -14,7 +14,7 @@ final class AtomParserTests: XCTestCase {
func testDaringFireballPerformance() {
// 0.009 sec on my 2012 iMac.
- let d = parserData("DaringFireball", "atom", "http://daringfireball.net/") //It’s actually an Atom feed
+ let d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
self.measure {
let _ = try! FeedParser.parse(d)
}
@@ -56,9 +56,72 @@ final class AtomParserTests: XCTestCase {
XCTAssertTrue(parsedFeed.homePageURL == "https://neverworkintheory.org/")
}
+ func testArticlePermalinks() {
+
+ var d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ var parsedFeed = try! FeedParser.parse(d)!
+
+ var foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "QEMU version 10.1.0 released" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://www.qemu.org/2025/08/26/qemu-10-1-0/")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Virgin Mobile Partners With Apple to Go iPhone-Only With $1 Service" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://daringfireball.net/linked/2017/06/26/virgin-mobile-iphone-only")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("neverworkintheory", "atom", "https://neverworkintheory.org/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Andreas Zeller on Creating Nasty Test Inputs" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://neverworkintheory.org/2023/06/13/zeller-andreas.html")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ }
+
+ func testArticleExternalLinks() {
+
+ var d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ var parsedFeed = try! FeedParser.parse(d)!
+
+ var foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Kara Swisher: ‘Susan Fowler Proved That One Person Can Make a Difference’" {
+ foundTestArticle = true
+ XCTAssertEqual(item.externalURL, "https://www.recode.net/2017/6/21/15844852/uber-toxic-bro-company-culture-susan-fowler-blog-post")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ XCTAssert(parsedFeed.items.count > 0)
+ for item in parsedFeed.items {
+ XCTAssertNil(item.externalURL)
+ }
+ }
+
func testDaringFireball() {
- let d = parserData("DaringFireball", "atom", "http://daringfireball.net/") //It’s actually an Atom feed
+ let d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
let parsedFeed = try! FeedParser.parse(d)!
for article in parsedFeed.items {
From 553b4e9b1625cb00b523060735ab5471bae5cbeb Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 18:54:20 -0700
Subject: [PATCH 166/239] Deleted flaky test.
---
.../ScriptingTests/ScriptingTests.swift | 4 ----
.../testCurrentArticleIsNil.applescript | 23 -------------------
2 files changed, 27 deletions(-)
delete mode 100644 Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript
diff --git a/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift b/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
index cfcaf84c1..2c3db6030 100644
--- a/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
+++ b/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
@@ -51,10 +51,6 @@ final class ScriptingTests: AppleScriptXCTestCase {
_ = doIndividualScript(filename: "testFeedExists")
}
- func testCurrentArticleIsNilt() {
- _ = doIndividualScript(filename: "testCurrentArticleIsNil")
- }
-
func doIndividualScriptWithExpectation(filename:String) {
let scriptExpectation = self.expectation(description: filename+"expectation")
DispatchQueue.main.async {
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript
deleted file mode 100644
index baa7afecd..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript
+++ /dev/null
@@ -1,23 +0,0 @@
--- this script tests that it is possible to get the url property of the current article
--- it uses system event accessibility scripting to set up the main window
--- one needs to authorize scripting accessibility control in the System Preferences'
--- Privacy and security pane
-
-try
- tell application "NetNewsWire"
- set shouldBeMissingValue to current article
- end tell
-
- --verify that the current article is in fact 'missing vcalue'
- if shouldBeMissingValue is missing value then
- set the_message to "passed tests"
- set the_result to true
- else
- set the_message to "expected current article to be 'missing value'"
- set the_result to false
- end if
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:the_result, script_result:the_message}
From 18d239c946824384f916216df4aac97b3c0b6555 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 14 Oct 2025 22:24:42 -0700
Subject: [PATCH 167/239] =?UTF-8?q?Cache=204xx=20responses=20for=20some=20?=
=?UTF-8?q?hours=20(53,=20currently)=20=E2=80=94=C2=A0instead=20of=20for?=
=?UTF-8?q?=20the=20duration=20of=20the=20current=20run=20of=20the=20app.?=
=?UTF-8?q?=20This=20fixes=20one=20possible=20cause=20of=20feeds=20not=20u?=
=?UTF-8?q?pdating.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RSWeb/Sources/RSWeb/DownloadSession.swift | 37 +++++++++++++++----
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index 902b10437..4dbd3b646 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -20,6 +20,16 @@ public protocol DownloadSessionDelegate {
func downloadSessionDidComplete(_ downloadSession: DownloadSession)
}
+struct HTTP4xxResponse {
+ let statusCode: Int
+ let date: Date
+
+ init(_ statusCode: Int) {
+ self.statusCode = statusCode
+ self.date = Date()
+ }
+}
+
@objc public final class DownloadSession: NSObject {
public let downloadProgress = DownloadProgress(numberOfTasks: 0)
@@ -37,8 +47,8 @@ public protocol DownloadSessionDelegate {
private var retryAfterMessages = [String: HTTPResponse429]()
/// URLs with 400-499 responses (except for 429).
- /// These URLs are skipped for the rest of the session.
- private var urlsWith400s = Set()
+ /// These URLs are skipped for a period of time.
+ private var http4xxResponses = [URL: HTTP4xxResponse]()
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "DownloadSession")
@@ -79,9 +89,9 @@ public protocol DownloadSessionDelegate {
}
public func download(_ urls: Set) {
+ cleanUp4xxResponsesCache()
let filteredURLs = Self.filteredURLs(urls)
-
for url in filteredURLs {
addDataTask(url)
}
@@ -156,7 +166,7 @@ extension DownloadSession: URLSessionDataDelegate {
if statusCode == HTTPResponseCode.tooManyRequests {
handle429Response(dataTask, response)
} else if (400...499).contains(statusCode), let url = response.url {
- urlsWith400s.insert(url)
+ http4xxResponses[url] = HTTP4xxResponse(statusCode)
}
return
@@ -387,12 +397,25 @@ private extension DownloadSession {
// MARK: - 400-499 responses
- func requestShouldBeDroppedDueToPrevious400(_ url: URL) -> Bool {
+ // Remove 4xx responses placed in the cache more than a while ago.
+ func cleanUp4xxResponsesCache() {
+ let oldDate = Date().bySubtracting(hours: 53)
- if urlsWith400s.contains(url) {
+ for url in http4xxResponses.keys {
+ guard let response = http4xxResponses[url] else {
+ continue
+ }
+ if response.date < oldDate {
+ http4xxResponses[url] = nil
+ }
+ }
+ }
+
+ func requestShouldBeDroppedDueToPrevious400(_ url: URL) -> Bool {
+ if http4xxResponses[url] != nil {
return true
}
- if let redirectedURL = cachedRedirect(for: url), urlsWith400s.contains(redirectedURL) {
+ if let redirectedURL = cachedRedirect(for: url), http4xxResponses[redirectedURL] != nil {
return true
}
From 00376a91b68abe7a8d2fee0e165993b01468d629 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Wed, 15 Oct 2025 10:48:26 -0700
Subject: [PATCH 168/239] Add conditionalGetInfoDate to keep track of when
conditional GET info is set.
---
Modules/Account/Sources/Account/WebFeed.swift | 9 +++++++++
.../Account/Sources/Account/WebFeedMetadata.swift | 14 ++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/Modules/Account/Sources/Account/WebFeed.swift b/Modules/Account/Sources/Account/WebFeed.swift
index 7ca28e5f4..c23436285 100644
--- a/Modules/Account/Sources/Account/WebFeed.swift
+++ b/Modules/Account/Sources/Account/WebFeed.swift
@@ -132,6 +132,15 @@ public final class WebFeed: Feed, Renamable, Hashable {
}
}
+ public var conditionalGetInfoDate: Date? {
+ get {
+ return metadata.conditionalGetInfoDate
+ }
+ set {
+ metadata.conditionalGetInfoDate = newValue
+ }
+ }
+
public var cacheControlInfo: CacheControlInfo? {
get {
metadata.cacheControlInfo
diff --git a/Modules/Account/Sources/Account/WebFeedMetadata.swift b/Modules/Account/Sources/Account/WebFeedMetadata.swift
index 037890548..f4488c653 100644
--- a/Modules/Account/Sources/Account/WebFeedMetadata.swift
+++ b/Modules/Account/Sources/Account/WebFeedMetadata.swift
@@ -27,6 +27,7 @@ final class WebFeedMetadata: Codable {
case isNotifyAboutNewArticles
case isArticleExtractorAlwaysOn
case conditionalGetInfo
+ case conditionalGetInfoDate
case cacheControlInfo
case externalID = "subscriptionID"
case folderRelationship
@@ -108,10 +109,23 @@ final class WebFeedMetadata: Codable {
didSet {
if conditionalGetInfo != oldValue {
valueDidChange(.conditionalGetInfo)
+ if conditionalGetInfo == nil {
+ conditionalGetInfoDate = nil
+ } else {
+ conditionalGetInfoDate = Date()
+ }
}
}
}
+ var conditionalGetInfoDate: Date? {
+ didSet {
+ if conditionalGetInfoDate != oldValue {
+ valueDidChange(.conditionalGetInfoDate)
+ }
+ }
+ }
+
var cacheControlInfo: CacheControlInfo? {
didSet {
if cacheControlInfo != oldValue {
From 634bc21c2423cbfadb263b257509b0934002ba33 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Wed, 15 Oct 2025 10:48:58 -0700
Subject: [PATCH 169/239] Drop conditional GET info every 8 days, to handle
buggy servers that always respond with a 304 when *any* conditional GET info
is sent. Also: add some more logging.
---
.../LocalAccount/LocalAccountRefresher.swift | 26 ++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
index d6a42abc3..c7f750cab 100644
--- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
+++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
@@ -75,9 +75,29 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
func downloadSession(_ downloadSession: DownloadSession, conditionalGetInfoFor url: URL) -> HTTPConditionalGetInfo? {
guard let feed = urlToFeedDictionary[url.absoluteString] else {
+ assertionFailure("LocalAccountRefresher: expected feed for \(url)")
+ Self.logger.debug("LocalAccountRefresher: expected feed for \(url)")
return nil
}
- return feed.conditionalGetInfo
+ guard let conditionalGetInfo = feed.conditionalGetInfo else {
+ Self.logger.debug("LocalAccountRefresher: no conditional GET info for \(url)")
+ return nil
+ }
+
+ // Conditional GET info is dropped every 8 days, because some servers just always
+ // respond with a 304 when *any* conditional GET info is sent, which means
+ // those feeds don’t get updated. By dropping conditional GET info periodically,
+ // we make sure those feeds get updated.
+ if let conditionalGetInfoDate = feed.conditionalGetInfoDate {
+ let eightDaysAgo = Date().bySubtracting(days: 8)
+ if conditionalGetInfoDate < eightDaysAgo {
+ Self.logger.info("LocalAccountRefresher: dropping conditional GET info for \(url) — more than 8 days old")
+ feed.conditionalGetInfo = nil
+ return nil
+ }
+ }
+
+ return conditionalGetInfo
}
func downloadSession(_ downloadSession: DownloadSession, downloadDidComplete url: URL, response: URLResponse?, data: Data, error: NSError?) {
@@ -174,7 +194,7 @@ private extension LocalAccountRefresher {
for badHost in badHosts {
if lowercaseHost == badHost {
- Self.logger.info("Dropping request becasue it’s X/Twitter, which doesn’t provide feeds: \(feed.url)")
+ Self.logger.info("LocalAccountRefresher: Dropping request becasue it’s X/Twitter, which doesn’t provide feeds: \(feed.url)")
return true
}
}
@@ -199,7 +219,7 @@ private extension LocalAccountRefresher {
if url.isOpenRSSOrgURL {
if let cacheControlInfo = feed.cacheControlInfo, !cacheControlInfo.canResume {
- Self.logger.info("Dropping request for Cache-Control reasons: \(feed.url)")
+ Self.logger.info("LocalAccountRefresher: Dropping request for Cache-Control reasons: \(feed.url)")
return true
}
}
From 2cd88eca966f141b3bc6fa88f6dd810fcab1c900 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Wed, 15 Oct 2025 13:57:13 -0700
Subject: [PATCH 170/239] =?UTF-8?q?Set=20feed.conditionalGetInfo=20only=20?=
=?UTF-8?q?if=20it=E2=80=99s=20different.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Account/LocalAccount/LocalAccountRefresher.swift | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
index c7f750cab..0ab4cda66 100644
--- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
+++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift
@@ -133,7 +133,10 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
// It’s possible that the conditional get info has changed even if the
// content hasn’t changed.
// https://inessential.com/2024/08/03/netnewswire_and_conditional_get_issues.html
- feed.conditionalGetInfo = conditionalGetInfo
+ if feed.conditionalGetInfo != conditionalGetInfo {
+ Self.logger.debug("LocalAccountRefresher: setting conditional GET info for \(url.absoluteString) — contentHash hasn’t changed")
+ feed.conditionalGetInfo = conditionalGetInfo
+ }
return
}
@@ -146,8 +149,12 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
account.update(feed, with: parsedFeed) { result in
if case .success(let articleChanges) = result {
+ Self.logger.debug("LocalAccountRefresher: setting contentHash for \(url.absoluteString)")
feed.contentHash = dataHash
- feed.conditionalGetInfo = conditionalGetInfo
+ if feed.conditionalGetInfo != conditionalGetInfo {
+ Self.logger.debug("LocalAccountRefresher: setting conditional GET info for \(url.absoluteString)")
+ feed.conditionalGetInfo = conditionalGetInfo
+ }
self.delegate?.localAccountRefresher(self, articleChanges: articleChanges)
}
}
From a16cda26654d4b1ab4e020ec4e195526c6b09469 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 14:14:03 -0700
Subject: [PATCH 171/239] =?UTF-8?q?Cache=20responses=20for=20just=20over?=
=?UTF-8?q?=2010=20minutes,=20so=20that=20feeds=20can=E2=80=99t=20be=20ref?=
=?UTF-8?q?reshed=20too=20often.=20Be=20kind=20to=20feed=20publishers!=20F?=
=?UTF-8?q?ix=20#4700.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RSWeb/Sources/RSWeb/DownloadSession.swift | 57 +++++++++++++++++--
1 file changed, 52 insertions(+), 5 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index 4dbd3b646..5fbe782d3 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -8,6 +8,7 @@
import Foundation
import os
+import RSCore
// Create a DownloadSessionDelegate, then create a DownloadSession.
// To download things: call download with a set of URLs. DownloadSession will call the various delegate methods.
@@ -30,6 +31,19 @@ struct HTTP4xxResponse {
}
}
+struct DownloadCacheRecord: CacheRecord {
+ let dateCreated = Date()
+ let data: Data
+ let response: URLResponse?
+ let error: NSError?
+
+ init(data: Data, response: URLResponse?, error: NSError?) {
+ self.data = data
+ self.response = response
+ self.error = error
+ }
+}
+
@objc public final class DownloadSession: NSObject {
public let downloadProgress = DownloadProgress(numberOfTasks: 0)
@@ -43,6 +57,12 @@ struct HTTP4xxResponse {
private var redirectCache = [URL: URL]()
private var queue = [URL]()
+ // Static so that it can be shared by all instances of DownloadSession.
+ // A feed might appear in both an On My Mac and iCloud account, for instance.
+ // Cache items live for 13 minutes, in order to ensure no feed is downloaded more often
+ // than 10 minutes (plus a little extra).
+ private static let responseCache = Cache(timeToLive: 13 * 60, timeBetweenCleanups: 4 * 60)
+
// 429 Too Many Requests responses
private var retryAfterMessages = [String: HTTPResponse429]()
@@ -112,9 +132,20 @@ extension DownloadSession: URLSessionTaskDelegate {
}
guard let info = infoForTask(task) else {
+ if let url = task.originalRequest?.url {
+ Self.logger.debug("DownloadSession: no task info found for \(url)")
+ } else {
+ Self.logger.debug("DownloadSession: no task info found for unknown URL")
+ }
return
}
+ if let url = task.originalRequest?.url {
+ Self.logger.debug("DownloadSession: Caching response for \(url)")
+ let responseToCache = DownloadCacheRecord(data: info.data as Data, response: info.urlResponse, error: error as NSError?)
+ Self.responseCache[url.absoluteString] = responseToCache
+ }
+
delegate.downloadSession(self, downloadDidComplete: info.url, response: info.urlResponse, data: info.data as Data, error: error as NSError?)
}
@@ -156,13 +187,21 @@ extension DownloadSession: URLSessionDataDelegate {
taskInfo.urlResponse = response
}
- if !response.statusIsOK {
+ let statusCode = response.forcedStatusCode
+ if statusCode >= 400 {
+ if statusCode != HTTPResponseCode.tooManyRequests {
+ if let urlString = response.url?.absoluteString {
+ Self.logger.debug("DownloadSession: Caching >= 400 response for \(urlString)")
+ let responseToCache = DownloadCacheRecord(data: Data(), response: response, error: nil)
+ Self.responseCache[urlString] = responseToCache
+ }
+ }
+
+ Self.logger.debug("DownloadSession: canceling task due to >= 400 response \(response)")
completionHandler(.cancel)
removeTask(dataTask)
- let statusCode = response.forcedStatusCode
-
if statusCode == HTTPResponseCode.tooManyRequests {
handle429Response(dataTask, response)
} else if (400...499).contains(statusCode), let url = response.url {
@@ -205,11 +244,18 @@ private extension DownloadSession {
let urlToUse = cachedRedirect(for: url) ?? url
if requestShouldBeDroppedDueToActive429(urlToUse) {
- Self.logger.info("Dropping request for previous 429: \(urlToUse)")
+ Self.logger.info("DownloadSession: Dropping request for previous 429: \(urlToUse)")
return
}
if requestShouldBeDroppedDueToPrevious400(urlToUse) {
- Self.logger.info("Dropping request for previous 400-499: \(urlToUse)")
+ Self.logger.info("DownloadSession: Dropping request for previous 400-499: \(urlToUse)")
+ return
+ }
+
+ // Check cache
+ if let cachedResponse = Self.responseCache[urlToUse.absoluteString] {
+ Self.logger.info("DownloadSession: using cached response for \(urlToUse) - \(cachedResponse.response?.forcedStatusCode ?? -1)")
+ delegate.downloadSession(self, downloadDidComplete: url, response: cachedResponse.response, data: cachedResponse.data, error: cachedResponse.error)
return
}
@@ -224,6 +270,7 @@ private extension DownloadSession {
return request
}()
+ Self.logger.debug("DownloadSession: adding dataTask for \(urlToUse)")
let task = urlSession.dataTask(with: urlRequest)
let info = DownloadInfo(url)
From 0b215c3c768263c9be2d8518830443448154b6d3 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 14:45:31 -0700
Subject: [PATCH 172/239] Add shared DownloadCache, to be used across different
URLSessions.
---
.../RSWeb/Sources/RSWeb/DownloadCache.swift | 43 +++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
new file mode 100644
index 000000000..065944699
--- /dev/null
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
@@ -0,0 +1,43 @@
+//
+// DownloadCache.swift
+// RSWeb
+//
+// Created by Brent Simmons on 10/16/25.
+//
+
+import Foundation
+import RSCore
+
+struct DownloadCacheRecord: CacheRecord {
+ let dateCreated = Date()
+ let data: Data?
+ let response: URLResponse?
+ let error: NSError?
+
+ init(data: Data?, response: URLResponse?, error: NSError?) {
+ self.data = data
+ self.response = response
+ self.error = error
+ }
+}
+
+
+final class DownloadCache: Sendable {
+ static let shared = DownloadCache()
+
+ private let cache = Cache(timeToLive: 60 * 13, timeBetweenCleanups: 60 * 2)
+
+ subscript(_ key: String) -> DownloadCacheRecord? {
+ get {
+ cache[key]
+ }
+ set {
+ cache[key] = newValue
+ }
+ }
+
+ func add(_ urlString: String, data: Data?, response: URLResponse?, error: Error?) {
+ let cacheRecord = DownloadCacheRecord(data: data, response: response, error: error as? NSError)
+ cache[urlString] = cacheRecord
+ }
+}
From bbc0313e797c99aea7e5b310cc5062d666aa5f53 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 14:49:50 -0700
Subject: [PATCH 173/239] Use shared DownloadCache.
---
.../RSWeb/Sources/RSWeb/DownloadSession.swift | 29 ++----------
Modules/RSWeb/Sources/RSWeb/Downloader.swift | 46 +++++--------------
2 files changed, 17 insertions(+), 58 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index 5fbe782d3..fd352cbbf 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -31,19 +31,6 @@ struct HTTP4xxResponse {
}
}
-struct DownloadCacheRecord: CacheRecord {
- let dateCreated = Date()
- let data: Data
- let response: URLResponse?
- let error: NSError?
-
- init(data: Data, response: URLResponse?, error: NSError?) {
- self.data = data
- self.response = response
- self.error = error
- }
-}
-
@objc public final class DownloadSession: NSObject {
public let downloadProgress = DownloadProgress(numberOfTasks: 0)
@@ -56,12 +43,7 @@ struct DownloadCacheRecord: CacheRecord {
private let delegate: DownloadSessionDelegate
private var redirectCache = [URL: URL]()
private var queue = [URL]()
-
- // Static so that it can be shared by all instances of DownloadSession.
- // A feed might appear in both an On My Mac and iCloud account, for instance.
- // Cache items live for 13 minutes, in order to ensure no feed is downloaded more often
- // than 10 minutes (plus a little extra).
- private static let responseCache = Cache(timeToLive: 13 * 60, timeBetweenCleanups: 4 * 60)
+ private let cache = DownloadCache.shared
// 429 Too Many Requests responses
private var retryAfterMessages = [String: HTTPResponse429]()
@@ -143,7 +125,7 @@ extension DownloadSession: URLSessionTaskDelegate {
if let url = task.originalRequest?.url {
Self.logger.debug("DownloadSession: Caching response for \(url)")
let responseToCache = DownloadCacheRecord(data: info.data as Data, response: info.urlResponse, error: error as NSError?)
- Self.responseCache[url.absoluteString] = responseToCache
+ cache[url.absoluteString] = responseToCache
}
delegate.downloadSession(self, downloadDidComplete: info.url, response: info.urlResponse, data: info.data as Data, error: error as NSError?)
@@ -192,8 +174,7 @@ extension DownloadSession: URLSessionDataDelegate {
if statusCode != HTTPResponseCode.tooManyRequests {
if let urlString = response.url?.absoluteString {
Self.logger.debug("DownloadSession: Caching >= 400 response for \(urlString)")
- let responseToCache = DownloadCacheRecord(data: Data(), response: response, error: nil)
- Self.responseCache[urlString] = responseToCache
+ cache.add(urlString, data: nil, response: response, error: nil)
}
}
@@ -253,9 +234,9 @@ private extension DownloadSession {
}
// Check cache
- if let cachedResponse = Self.responseCache[urlToUse.absoluteString] {
+ if let cachedResponse = cache[urlToUse.absoluteString] {
Self.logger.info("DownloadSession: using cached response for \(urlToUse) - \(cachedResponse.response?.forcedStatusCode ?? -1)")
- delegate.downloadSession(self, downloadDidComplete: url, response: cachedResponse.response, data: cachedResponse.data, error: cachedResponse.error)
+ delegate.downloadSession(self, downloadDidComplete: url, response: cachedResponse.response, data: cachedResponse.data ?? Data(), error: cachedResponse.error)
return
}
diff --git a/Modules/RSWeb/Sources/RSWeb/Downloader.swift b/Modules/RSWeb/Sources/RSWeb/Downloader.swift
index 2588eaa9f..3c77b2bbb 100755
--- a/Modules/RSWeb/Sources/RSWeb/Downloader.swift
+++ b/Modules/RSWeb/Sources/RSWeb/Downloader.swift
@@ -20,12 +20,9 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
public static let shared = Downloader()
private let urlSession: URLSession
private var callbacks = [URL: [DownloadCallback]]()
-
- // Cache — short-lived
- private let cache = Cache(timeToLive: 60 * 3, timeBetweenCleanups: 60 * 2)
-
+ private let cache = DownloadCache.shared
+
nonisolated private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "Downloader")
- nonisolated private static let debugLoggingEnabled = false
private init() {
let sessionConfiguration = URLSessionConfiguration.ephemeral
@@ -64,9 +61,7 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
// Return cached record if available.
if isCacheableRequest {
if let cachedRecord = cache[url.absoluteString] {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: returning cached record for \(url)")
- }
+ Self.logger.debug("Downloader: returning cached record for \(url)")
callback(cachedRecord.data, cachedRecord.response, cachedRecord.error)
return
}
@@ -74,16 +69,12 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
// Add callback. If there is already a download in progress for this URL, return early.
if callbacks[url] == nil {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: downloading \(url)")
- }
+ Self.logger.debug("Downloader: downloading \(url)")
callbacks[url] = [callback]
} else {
// A download is already be in progress for this URL. Don’t start a separate download.
// Add the callback to the callbacks array for this URL.
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: download in progress for \(url) — adding callback")
- }
+ Self.logger.debug("Downloader: download in progress for \(url) — adding callback")
callbacks[url]?.append(callback)
return
}
@@ -94,11 +85,8 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
let task = urlSession.dataTask(with: urlRequestToUse) { (data, response, error) in
if isCacheableRequest {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: caching record for \(url)")
- }
- let cachedRecord = DownloaderRecord(data: data, response: response, error: error)
- self.cache[url.absoluteString] = cachedRecord
+ Self.logger.debug("Downloader: caching response for \(url)")
+ self.cache.add(url.absoluteString, data: data, response: response, error: error)
}
Task { @MainActor in
@@ -124,13 +112,11 @@ private extension Downloader {
return
}
- if Self.debugLoggingEnabled {
- let count = callbacksForURL.count
- if count == 1 {
- Self.logger.debug("Downloader: calling 1 callback for URL \(url)")
- } else {
- Self.logger.debug("Downloader: calling \(count) callbacks for URL \(url)")
- }
+ let count = callbacksForURL.count
+ if count == 1 {
+ Self.logger.debug("Downloader: calling 1 callback for URL \(url)")
+ } else {
+ Self.logger.debug("Downloader: calling \(count) callbacks for URL \(url)")
}
for callback in callbacksForURL {
@@ -138,11 +124,3 @@ private extension Downloader {
}
}
}
-
-struct DownloaderRecord: CacheRecord, Sendable {
-
- let dateCreated = Date()
- let data: Data?
- let response: URLResponse?
- let error: Error?
-}
From d6d3419aa39951dafe28954b984935bb13911a41 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 15:19:46 -0700
Subject: [PATCH 174/239] Remove unneeded whitespace.
---
Modules/RSWeb/Sources/RSWeb/DownloadCache.swift | 1 -
1 file changed, 1 deletion(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
index 065944699..b4c380bc5 100644
--- a/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
@@ -21,7 +21,6 @@ struct DownloadCacheRecord: CacheRecord {
}
}
-
final class DownloadCache: Sendable {
static let shared = DownloadCache()
From 6f468c8213a561221f2df80f39e9d130c7358808 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 15:31:13 -0700
Subject: [PATCH 175/239] Use modifiedRequest.addSpecialCaseUserAgentIfNeeded
instead of the duplicate code it was using.
---
Modules/RSWeb/Sources/RSWeb/DownloadSession.swift | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index fd352cbbf..458125c87 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -143,9 +143,7 @@ extension DownloadSession: URLSessionTaskDelegate {
var modifiedRequest = request
- if let url = request.url, url.isOpenRSSOrgURL {
- modifiedRequest.setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
- }
+ modifiedRequest.addSpecialCaseUserAgentIfNeeded()
completionHandler(modifiedRequest)
}
From 6fd18c8bc224b2cc24658d9f3308d3260a702694 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 15:31:56 -0700
Subject: [PATCH 176/239] Add isRachelByTheBayURL detector.
---
.../RSWeb/Sources/RSWeb/SpecialCases.swift | 44 +++++++------------
1 file changed, 17 insertions(+), 27 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
index 67c70f6ed..fda052a93 100644
--- a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
+++ b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
@@ -10,43 +10,32 @@ import os
extension URL {
- private static let openRSSOrgURLCache = OSAllocatedUnfairLock(initialState: [URL: Bool]())
-
public var isOpenRSSOrgURL: Bool {
-
- Self.openRSSOrgURLCache.withLock { cache in
- if let cachedResult = cache[self] {
- return cachedResult
- }
-
- let result: Bool
- if let host = host(), host.contains("openrss.org") {
- result = true
- }
- else {
- result = false
- }
-
- cache[self] = result
- return result
+ guard let host = host() else {
+ return false
}
+ return host.contains("openrss.org")
+ }
+
+ public var isRachelByTheBayURL: Bool {
+ guard let host = host() else {
+ return false
+ }
+ return host.contains("rachelbythebay.com")
}
}
extension Set where Element == URL {
func byRemovingOpenRSSOrgURLs() -> Set {
-
filter { !$0.isOpenRSSOrgURL }
}
func openRSSOrgURLs() -> Set {
-
filter { $0.isOpenRSSOrgURL }
}
func byRemovingAllButOneRandomOpenRSSOrgURL() -> Set {
-
if self.isEmpty || self.count == 1 {
return self
}
@@ -69,17 +58,19 @@ extension Set where Element == URL {
extension URLRequest {
mutating func addSpecialCaseUserAgentIfNeeded() {
-
- if let url, url.isOpenRSSOrgURL {
- setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
+ guard let url else {
+ return
+ }
+
+ if url.isOpenRSSOrgURL || url.isRachelByTheBayURL {
+ setValue(UserAgent.extendedUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
}
}
}
extension UserAgent {
- static let openRSSOrgUserAgent = {
-
+ static let extendedUserAgent = {
#if os(iOS)
let platform = "iOS"
#else
@@ -98,7 +89,6 @@ extension UserAgent {
}()
private static func stringFromInfoPlist(_ key: String) -> String? {
-
guard let s = Bundle.main.object(forInfoDictionaryKey: key) as? String else {
assertionFailure("Expected to get \(key) from infoDictionary.")
return nil
From 27f72db413e0f251384c06bc4e17a71bb4f84586 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 15:54:13 -0700
Subject: [PATCH 177/239] Use request.addSpecialCaseUserAgentIfNeeded.
---
Modules/RSWeb/Sources/RSWeb/DownloadSession.swift | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index 458125c87..a86fbd6e0 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -243,9 +243,7 @@ private extension DownloadSession {
if let conditionalGetInfo = delegate.downloadSession(self, conditionalGetInfoFor: url) {
conditionalGetInfo.addRequestHeadersToURLRequest(&request)
}
- if url.isOpenRSSOrgURL {
- request.setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
- }
+ request.addSpecialCaseUserAgentIfNeeded()
return request
}()
From 5e6734047c9ad9557ff72794f274d32f43d641e0 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 15:54:32 -0700
Subject: [PATCH 178/239] Add and use special case FeedSpecifier.
---
.../Sources/Account/FeedFinder/FeedFinder.swift | 12 +++++++++++-
.../Sources/Account/FeedFinder/FeedSpecifier.swift | 13 ++++++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/Modules/Account/Sources/Account/FeedFinder/FeedFinder.swift b/Modules/Account/Sources/Account/FeedFinder/FeedFinder.swift
index 47d93be8a..64d6bc554 100644
--- a/Modules/Account/Sources/Account/FeedFinder/FeedFinder.swift
+++ b/Modules/Account/Sources/Account/FeedFinder/FeedFinder.swift
@@ -7,14 +7,24 @@
//
import Foundation
+import os.log
import RSParser
import RSWeb
import RSCore
final class FeedFinder {
-
+
+ private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "FeedFinder")
+
static func find(url: URL, completion: @escaping (Result, Error>) -> Void) {
Task { @MainActor in
+ // Check special cases first.
+ if let feedSpecifier = FeedSpecifier.knownFeedSpecifier(url: url) {
+ logger.info("FeedFinder: found special case feed URL: \(url.absoluteString) - \(feedSpecifier.urlString)")
+ completion(.success(Set([feedSpecifier])))
+ return
+ }
+
Downloader.shared.download(url) { (data, response, error) in
if response?.forcedStatusCode == 404 {
diff --git a/Modules/Account/Sources/Account/FeedFinder/FeedSpecifier.swift b/Modules/Account/Sources/Account/FeedFinder/FeedSpecifier.swift
index ec7fcf58d..e7c2c2e87 100644
--- a/Modules/Account/Sources/Account/FeedFinder/FeedSpecifier.swift
+++ b/Modules/Account/Sources/Account/FeedFinder/FeedSpecifier.swift
@@ -7,6 +7,7 @@
//
import Foundation
+import RSWeb
struct FeedSpecifier: Hashable {
@@ -25,7 +26,17 @@ struct FeedSpecifier: Hashable {
public var score: Int {
return calculatedScore()
}
-
+
+ /// Some feed URLs are known in advance. Save time/bandwidth by special-casing those.
+ static func knownFeedSpecifier(url: URL) -> FeedSpecifier? {
+ if url.isRachelByTheBayURL {
+ let feedURLString = "https://rachelbythebay.com/w/atom.xml"
+ return FeedSpecifier(title: "writing - rachelbythebay", urlString: feedURLString, source: .UserEntered, orderFound: 0)
+ }
+
+ return nil
+ }
+
func feedSpecifierByMerging(_ feedSpecifier: FeedSpecifier) -> FeedSpecifier {
// Take the best data (non-nil title, better source) to create a new feed specifier;
From f880032e3abc18d28f0d79030fa962a414366724 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Thu, 16 Oct 2025 21:53:44 -0700
Subject: [PATCH 179/239] Handle special cases for skipping downloading feed
icons and HTML metadata.
---
.../RSWeb/HTMLMetadataDownloader.swift | 45 ++++++++-----------
.../RSWeb/Sources/RSWeb/SpecialCases.swift | 22 ++++++++-
Shared/Favicons/FaviconDownloader.swift | 11 ++++-
Shared/Images/FeedIconDownloader.swift | 19 +++++++-
4 files changed, 66 insertions(+), 31 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
index 6d8a0eea4..541d91a07 100644
--- a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
+++ b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
@@ -17,38 +17,41 @@ public final class HTMLMetadataDownloader: Sendable {
public static let shared = HTMLMetadataDownloader()
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLMetadataDownloader")
- private static let debugLoggingEnabled = false
-
+
private let cache = HTMLMetadataCache()
private let attemptDatesLock = OSAllocatedUnfairLock(initialState: [String: Date]())
private let urlsReturning4xxsLock = OSAllocatedUnfairLock(initialState: Set())
public func cachedMetadata(for url: String) -> RSHTMLMetadata? {
-
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader requested cached metadata for \(url)")
+ if Self.shouldSkipDownloadingMetadata(url) {
+ Self.logger.debug("HTMLMetadataDownloader: Skipping requested cached metadata for \(url)")
+ return nil
}
+ Self.logger.debug("HTMLMetadataDownloader requested cached metadata for \(url)")
+
guard let htmlMetadata = cache[url] else {
downloadMetadataIfNeeded(url)
return nil
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader returning cached metadata for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader returning cached metadata for \(url)")
return htmlMetadata
}
}
private extension HTMLMetadataDownloader {
+ private static let specialCasesToSkip = [SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ static func shouldSkipDownloadingMetadata(_ urlString: String) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(urlString, specialCasesToSkip)
+ }
+
func downloadMetadataIfNeeded(_ url: String) {
if urlShouldBeSkippedDueToPrevious4xxResponse(url) {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an earlier request returned a 4xx response.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an earlier request returned a 4xx response.")
return
}
@@ -59,9 +62,7 @@ private extension HTMLMetadataDownloader {
let hoursBetweenAttempts = 3 // arbitrary
if let attemptDate = attemptDates[url], attemptDate > currentDate.bySubtracting(hours: hoursBetweenAttempts) {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an attempt was made less than an hour ago.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an attempt was made less than an hour ago.")
return false
}
@@ -77,15 +78,11 @@ private extension HTMLMetadataDownloader {
func downloadMetadata(_ url: String) {
guard let actualURL = URL(string: url) else {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because it couldn’t construct a URL.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because it couldn’t construct a URL.")
return
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader downloading for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader downloading for \(url)")
Task { @MainActor in
Downloader.shared.download(actualURL) { data, response, error in
@@ -93,9 +90,7 @@ private extension HTMLMetadataDownloader {
let urlToUse = response.url ?? actualURL
let parserData = ParserData(url: urlToUse.absoluteString, data: data)
let htmlMetadata = RSHTMLMetadataParser.htmlMetadata(with: parserData)
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader caching parsed metadata for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader caching parsed metadata for \(url)")
self.cache[url] = htmlMetadata
return
}
@@ -104,9 +99,7 @@ private extension HTMLMetadataDownloader {
self.noteURLDidReturn4xx(url)
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader failed download for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader failed download for \(url)")
}
}
}
diff --git a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
index fda052a93..08e92ba5f 100644
--- a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
+++ b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
@@ -8,20 +8,38 @@
import Foundation
import os
+public let localeForLowercasing = Locale(identifier: "en_US")
+
+public struct SpecialCase {
+ public static let rachelByTheBayHostName = "rachelbythebay.com"
+ public static let openRSSOrgHostName = "openrss.org"
+
+ public static func urlStringContainSpecialCase(_ urlString: String, _ specialCases: [String]) -> Bool {
+ let lowerURLString = urlString.lowercased(with: localeForLowercasing)
+ for specialCase in specialCases {
+ if lowerURLString.contains(specialCase) {
+ return true
+ }
+ }
+ return false
+ }
+}
+
+
extension URL {
public var isOpenRSSOrgURL: Bool {
guard let host = host() else {
return false
}
- return host.contains("openrss.org")
+ return SpecialCase.urlStringContainSpecialCase(host, [SpecialCase.openRSSOrgHostName])
}
public var isRachelByTheBayURL: Bool {
guard let host = host() else {
return false
}
- return host.contains("rachelbythebay.com")
+ return SpecialCase.urlStringContainSpecialCase(host, [SpecialCase.rachelByTheBayHostName])
}
}
diff --git a/Shared/Favicons/FaviconDownloader.swift b/Shared/Favicons/FaviconDownloader.swift
index 40bf245d1..7d290b067 100644
--- a/Shared/Favicons/FaviconDownloader.swift
+++ b/Shared/Favicons/FaviconDownloader.swift
@@ -75,9 +75,12 @@ final class FaviconDownloader {
}
func favicon(for webFeed: WebFeed) -> IconImage? {
-
assert(Thread.isMainThread)
+ if shouldSkipDownloadingFavicon(feed: webFeed) {
+ return nil
+ }
+
var homePageURL = webFeed.homePageURL
if let faviconURL = webFeed.faviconURL {
return favicon(with: faviconURL, homePageURL: homePageURL)
@@ -206,6 +209,12 @@ final class FaviconDownloader {
private extension FaviconDownloader {
+ static let specialCasesToSkip = [SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ func shouldSkipDownloadingFavicon(feed: WebFeed) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(feed.url, Self.specialCasesToSkip)
+ }
+
static let localeForLowercasing = Locale(identifier: "en_US")
func findFaviconURLs(with homePageURL: String) -> [String]? {
diff --git a/Shared/Images/FeedIconDownloader.swift b/Shared/Images/FeedIconDownloader.swift
index 8af01a5d1..363f4e95f 100644
--- a/Shared/Images/FeedIconDownloader.swift
+++ b/Shared/Images/FeedIconDownloader.swift
@@ -53,6 +53,9 @@ public final class FeedIconDownloader {
if let homePageURLString = feed.homePageURL, let homePageURL = URL(string: homePageURLString), (homePageURL.host == "nnw.ranchero.com" || homePageURL.host == "netnewswire.blog") {
return IconImage.nnwFeedIcon
}
+ if (Self.shouldSkipDownloadingFeedIcon(feed: feed)) {
+ return nil
+ }
func checkHomePageURL() {
guard let homePageURL = feed.homePageURL else {
@@ -113,11 +116,23 @@ public final class FeedIconDownloader {
private extension FeedIconDownloader {
- static let homePagesWithUglyIcons: Set = Set(["https://www.macsparky.com/", "https://xkcd.com/"])
+ static let specialCasesToSkip = ["macsparky.com", "xkcd.com", SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ static func shouldSkipDownloadingFeedIcon(feed: WebFeed) -> Bool {
+ shouldSkipDownloadingFeedIcon(feed.url)
+ }
+
+ static func shouldSkipDownloadingFeedIcon(_ urlString: String) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(urlString, specialCasesToSkip)
+ }
func icon(forHomePageURL homePageURL: String, feed: WebFeed, _ resultBlock: @escaping (RSImage?, String?) -> Void) {
+ if Self.shouldSkipDownloadingFeedIcon(homePageURL) {
+ resultBlock(nil, nil)
+ return
+ }
- if homePagesWithNoIconURL.contains(homePageURL) || Self.homePagesWithUglyIcons.contains(homePageURL) {
+ if homePagesWithNoIconURL.contains(homePageURL) {
resultBlock(nil, nil)
return
}
From 9950bb9defa6672e84ec265064318d51738829da Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 11:10:40 -0700
Subject: [PATCH 180/239] Save conditional GET info on initial feed download so
that it gets used for subsequent refreshes.
---
.../Account/CloudKit/CloudKitAccountDelegate.swift | 10 ++++++++--
.../Account/LocalAccount/InitialFeedDownloader.swift | 6 +++---
.../Account/LocalAccount/LocalAccountDelegate.swift | 11 +++++++++--
3 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
index 241264123..87e4c6320 100644
--- a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
+++ b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
@@ -640,10 +640,16 @@ private extension CloudKitAccountDelegate {
feed.editedName = editedName
container.addWebFeed(feed)
- InitialFeedDownloader.download(url) { parsedFeed in
+ InitialFeedDownloader.download(url) { parsedFeed, _, response, _ in
self.syncProgress.completeTask()
- if let parsedFeed = parsedFeed {
+ if let parsedFeed {
+ // Save conditional GET info so that first refresh uses conditional GET.
+ if let httpResponse = response as? HTTPURLResponse,
+ let conditionalGetInfo = HTTPConditionalGetInfo(urlResponse: httpResponse) {
+ feed.conditionalGetInfo = conditionalGetInfo
+ }
+
account.update(feed, with: parsedFeed) { result in
switch result {
case .success:
diff --git a/Modules/Account/Sources/Account/LocalAccount/InitialFeedDownloader.swift b/Modules/Account/Sources/Account/LocalAccount/InitialFeedDownloader.swift
index 606a740ca..4ef7f7b5d 100644
--- a/Modules/Account/Sources/Account/LocalAccount/InitialFeedDownloader.swift
+++ b/Modules/Account/Sources/Account/LocalAccount/InitialFeedDownloader.swift
@@ -12,17 +12,17 @@ import RSWeb
struct InitialFeedDownloader {
- static func download(_ url: URL,_ completion: @escaping (_ parsedFeed: ParsedFeed?) -> Void) {
+ static func download(_ url: URL,_ completion: @escaping (_ parsedFeed: ParsedFeed?, _ data: Data?, _ response: URLResponse?, _ error: Error?) -> Void) {
Task { @MainActor in
Downloader.shared.download(url) { (data, response, error) in
guard let data = data else {
- completion(nil)
+ completion(nil, nil, response, error)
return
}
let parserData = ParserData(url: url.absoluteString, data: data)
FeedParser.parse(parserData) { (parsedFeed, error) in
- completion(parsedFeed)
+ completion(parsedFeed, data, response, error)
}
}
}
diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
index 557ce3247..aa88e94d9 100644
--- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
+++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
@@ -242,10 +242,17 @@ private extension LocalAccountDelegate {
return
}
- InitialFeedDownloader.download(url) { parsedFeed in
+ InitialFeedDownloader.download(url) { parsedFeed, _, response, _ in
- if let parsedFeed = parsedFeed {
+ if let parsedFeed {
let feed = account.createWebFeed(with: nil, url: url.absoluteString, webFeedID: url.absoluteString, homePageURL: nil)
+
+ // Save conditional GET info so that first refresh uses conditional GET.
+ if let httpResponse = response as? HTTPURLResponse,
+ let conditionalGetInfo = HTTPConditionalGetInfo(urlResponse: httpResponse) {
+ feed.conditionalGetInfo = conditionalGetInfo
+ }
+
feed.editedName = editedName
container.addWebFeed(feed)
From f197b1d9a176b16658501a934b70fe8d81f0d555 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 11:36:13 -0700
Subject: [PATCH 181/239] Add lastCheckDate to feed metadata.
---
Modules/Account/Sources/Account/WebFeed.swift | 12 +++++++++++-
.../Account/Sources/Account/WebFeedMetadata.swift | 11 +++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/Modules/Account/Sources/Account/WebFeed.swift b/Modules/Account/Sources/Account/WebFeed.swift
index c23436285..c637d3077 100644
--- a/Modules/Account/Sources/Account/WebFeed.swift
+++ b/Modules/Account/Sources/Account/WebFeed.swift
@@ -195,7 +195,17 @@ public final class WebFeed: Feed, Renamable, Hashable {
metadata.folderRelationship = newValue
}
}
-
+
+ /// Last time an attempt was made to read the feed.
+ /// (Not necessarily a successful attempt.)
+ public var lastCheckDate: Date? {
+ get {
+ metadata.lastCheckDate
+ }
+ set {
+ metadata.lastCheckDate = newValue
+ }
+ }
// MARK: - DisplayNameProvider
public var nameForDisplay: String {
diff --git a/Modules/Account/Sources/Account/WebFeedMetadata.swift b/Modules/Account/Sources/Account/WebFeedMetadata.swift
index f4488c653..e3de9a095 100644
--- a/Modules/Account/Sources/Account/WebFeedMetadata.swift
+++ b/Modules/Account/Sources/Account/WebFeedMetadata.swift
@@ -31,6 +31,7 @@ final class WebFeedMetadata: Codable {
case cacheControlInfo
case externalID = "subscriptionID"
case folderRelationship
+ case lastCheckDate
}
var webFeedID: String {
@@ -151,6 +152,16 @@ final class WebFeedMetadata: Codable {
}
}
+ /// Last time an attempt was made to read the feed.
+ /// (Not necessarily a successful attempt.)
+ var lastCheckDate: Date? {
+ didSet {
+ if lastCheckDate != oldValue {
+ valueDidChange(.lastCheckDate)
+ }
+ }
+ }
+
weak var delegate: WebFeedMetadataDelegate?
init(webFeedID: String) {
From adae8b41a8c63e437fc8942cf3bb40c2bf14613a Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 11:36:27 -0700
Subject: [PATCH 182/239] Set feed.lastCheckDate on initial download.
---
.../Sources/Account/CloudKit/CloudKitAccountDelegate.swift | 3 ++-
.../Sources/Account/LocalAccount/LocalAccountDelegate.swift | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
index 87e4c6320..52324da02 100644
--- a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
+++ b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
@@ -642,7 +642,8 @@ private extension CloudKitAccountDelegate {
InitialFeedDownloader.download(url) { parsedFeed, _, response, _ in
self.syncProgress.completeTask()
-
+ feed.lastCheckDate = Date()
+
if let parsedFeed {
// Save conditional GET info so that first refresh uses conditional GET.
if let httpResponse = response as? HTTPURLResponse,
diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
index aa88e94d9..6a2f292e1 100644
--- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
+++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift
@@ -246,6 +246,7 @@ private extension LocalAccountDelegate {
if let parsedFeed {
let feed = account.createWebFeed(with: nil, url: url.absoluteString, webFeedID: url.absoluteString, homePageURL: nil)
+ feed.lastCheckDate = Date()
// Save conditional GET info so that first refresh uses conditional GET.
if let httpResponse = response as? HTTPURLResponse,
From 4a9e0ca8ccf2ae72331b2135ab19270fc8705f3e Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 13:59:32 -0700
Subject: [PATCH 183/239] Use English locale for lowercasing host names.
---
Modules/RSWeb/Sources/RSWeb/DownloadSession.swift | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index a86fbd6e0..01c52bc13 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -385,7 +385,7 @@ private extension DownloadSession {
func cancelAndRemoveTasksWithHost(_ host: String, in tasks: Set) {
- let lowercaseHost = host.lowercased()
+ let lowercaseHost = host.lowercased(with: localeForLowercasing)
let tasksToRemove = tasks.filter { task in
if let taskHost = task.lowercaseHost, taskHost.contains(lowercaseHost) {
@@ -484,7 +484,7 @@ extension URLSessionTask {
guard let request = currentRequest ?? originalRequest else {
return nil
}
- return request.url?.host()?.lowercased()
+ return request.url?.host()?.lowercased(with: localeForLowercasing)
}
}
From cf9a0966aea7ee61c692dccb7ff45be93bb1f0b3 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 22:38:06 -0700
Subject: [PATCH 184/239] Create async wrapper for update(feed, parsedFeed)
method.
---
Modules/Account/Sources/Account/Account.swift | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Modules/Account/Sources/Account/Account.swift b/Modules/Account/Sources/Account/Account.swift
index 28df121f2..a83862f6e 100644
--- a/Modules/Account/Sources/Account/Account.swift
+++ b/Modules/Account/Sources/Account/Account.swift
@@ -716,6 +716,19 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
webFeedDictionariesNeedUpdate = true
}
+ @MainActor func update(_ feed: WebFeed, with parsedFeed: ParsedFeed) async throws -> ArticleChanges {
+ try await withCheckedThrowingContinuation { continuation in
+ update(feed, with: parsedFeed) { result in
+ switch result {
+ case .success(let articleChanges):
+ continuation.resume(returning: articleChanges)
+ case .failure(let error):
+ continuation.resume(throwing: error)
+ }
+ }
+ }
+ }
+
func update(_ webFeed: WebFeed, with parsedFeed: ParsedFeed, _ completion: @escaping UpdateArticlesCompletionBlock) {
// Used only by an On My Mac or iCloud account.
precondition(Thread.isMainThread)
From 4343afd27ca8f9064016fa7e6477ec3a9bbaa573 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Fri, 17 Oct 2025 22:38:24 -0700
Subject: [PATCH 185/239] Create async wrapper for parser(parserData) method.
---
.../RSParser/Sources/Swift/Feeds/FeedParser.swift | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift b/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
index 96de186b2..39c2706bb 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
@@ -72,6 +72,19 @@ public struct FeedParser {
catch { throw error }
}
+ public static func parse(_ parserData: ParserData) async throws -> ParsedFeed? {
+ try await withCheckedThrowingContinuation { continuation in
+ parse(parserData) { parsedFeed, error in
+ if let error {
+ continuation.resume(throwing: error)
+ }
+ else {
+ continuation.resume(returning: parsedFeed)
+ }
+ }
+ }
+ }
+
public static func parse(_ parserData: ParserData, _ completion: @escaping FeedParserCallback) {
parseQueue.async {
From e064aea97d85bd3715ca600f89b3ecbb9cfc5af1 Mon Sep 17 00:00:00 2001
From: Brent Simmons