Skip to content

Instantly share code, notes, and snippets.

View t6847kimo's full-sized avatar

Yancy t6847kimo

View GitHub Profile
// Program to calculate L1 / L2 cache size, compile in g++ -O1
// Platform : Intel Xeon(R) CPU E5-2667 0 @ 2.90GHz
// OS: Ubuntu 12.04
// Author : Yancy Chien
#include <iostream>
#include <string>
#include <sys/time.h>
#include <cstdlib>
using namespace std;
// Program to calculate L1 cache line size, compile in g++ -O1
// Platform : Intel Xeon(R) CPU E5-2667 0 @ 2.90GHz
// OS: Ubuntu 12.04
// Author : Yancy Chien
#include <iostream>
#include <string>
#include <sys/time.h>
#include <cstdlib>
using namespace std;