This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashMap; | |
fn add_rand_strings(keys:&mut Vec<String>, amnt:usize, l:usize) { | |
const CHARSET: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
let mut rnd = 548324; | |
for i in 0..amnt { | |
let mut s = String::new(); | |
for j in 0..l { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <cstring> | |
#include <filesystem> | |
#include <string> | |
#include <iostream> | |
#include <regex> | |
#include <vector> | |
#include <unordered_map> | |
#include <cstdio> | |
#include <cstdlib> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <unordered_map> | |
#include <string> | |
#include <vector> | |
#include <cstdio> | |
#include <cstring> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <ctime> | |
#include <optional> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, char const *argv[]) | |
{ | |
std::unordered_map<std::string, std::string> fooMap; | |
const std::string s1 = "foobar"; | |
const std::string s2 = "doobar"; | |
const std::string s3 = "loobar"; | |
const std::string s4 = "4oobar"; | |
const std::string s5 = "77oobar"; | |
std::printf("Bucket count is %zu\n", fooMap.bucket_count()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
#include <vector> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <ctime> | |
#include <optional> | |
#include <chrono> | |
#include <memory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
#include <vector> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <ctime> | |
#include <optional> | |
#include <chrono> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <time.h> | |
#include <assert.h> | |
#include <sys/time.h> | |
// storage format | |
// [off][size] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <time.h> | |
#include <assert.h> | |
#include <sys/time.h> | |
// storage format | |
// [off][size] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <thread> | |
#include <chrono> | |
#include <cstdint> | |
#include <limits> | |
#include <cstdio> | |
#include <string> | |
#include <memory> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <ctime> | |
#include <thread> | |
#include <chrono> | |
#include <assert.h> | |
#include <vector> | |
static size_t randomLeveLGen() { |
NewerOlder