hashmap-bench/main.cpp

20 lines
504 B
C++
Raw Normal View History

2020-02-03 18:10:29 +00:00
#include <iostream>
#include <unordered_map>
#include <functional>
#include <fstream>
#include "./src/includes/aggregate_tests.h"
// typedef std::unordered_map<int,int> map;
2020-02-03 22:21:35 +00:00
// we can use ^ to switch the map implementations to that
// we can add some cli handling so we can specify which maps to tests (or all)
2020-02-03 18:10:29 +00:00
int main() {
string_test(std::unordered_map<std::string, std::string>{}, 10);
int_test(std::unordered_map<int, int>{}, 10);
2020-02-03 22:21:35 +00:00
// test takes 52 mins for 10 runs for 1 dict
}