Type | time | ms | comment |
---|---|---|---|
L1 cache reference | 0.5 ns | ||
Branch mispredict | 5 ns | ||
L2 cache reference | 7 ns | 14x L1 cache | |
Mutex lock/unlock | 25 ns | ||
Main memory reference | 300 ns | 20x L2 cache, 200x L1 cache |
This file contains hidden or 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
# Cross toolchain configuration for using clang-cl. | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(CMAKE_SYSTEM_VERSION 10.0) | |
set(CMAKE_SYSTEM_PROCESSOR AMD64) | |
set(CMAKE_C_COMPILER "/usr/bin/clang-cl-9") | |
set(CMAKE_CXX_COMPILER "/usr/bin/clang-cl-9") | |
set(CMAKE_LINKER "/usr/bin/lld-link-9") |
This file contains hidden or 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 <algorithm> | |
#include <cctype> | |
#include <fstream> | |
#include <iostream> | |
#include <iterator> | |
#include <set> | |
#include <string> | |
using namespace std; |