// ------------------------------------------------------------------------- //
// Welcome to Perfbench: online C++ code profiling tool. //
// Read through the code example below to get started. //
// For more information and examples, click on the "help" and "api" tabs. //
// ------------------------------------------------------------------------- //
// Click the Run button below to see the tool in action right away.
// You can open more tabs by clicking on the "+" icon and profile different
// versions of your code. You can also switch between different runs with
// vertical tabs on the right to step over the history and compare charts.
// Make sure to specify your includes (iostream is included automatically)
#include <cstdlib>
#include <unordered_map>
#include <vector>
void test_map_latency() {
std::unordered_map<std::string, size_t> m;
// Call the PROFILE_START function at the beginning of the profiled code
// block. It accepts a single argument: unique profile ID, which can be
// a string or sequential integer (0 and up):
PROFILE_START("map total");