| 82 | |
| 83 | template <class Map> |
| 84 | Map makeMap(size_t& size) { |
| 85 | using K = typename Map::key_type; |
| 86 | size_t startBytes = getPageBytes(); |
| 87 | Map m; |
| 88 | for (size_t i = 0; i < kKeySpace; ++i) { |
| 89 | ++m[makeKey<K>()]; |
| 90 | } |
| 91 | size_t endBytes = getPageBytes(); |
| 92 | size = endBytes > startBytes ? endBytes - startBytes : 0; |
| 93 | return m; |
| 94 | } |
| 95 | |
| 96 | template <class Map> |
| 97 | void mapLookupBench(size_t iters, const Map& map) { |
nothing calls this directly
no test coverage detected