Skip to content

Instantly share code, notes, and snippets.

@k-gregory
k-gregory / main.cxx
Last active July 4, 2017 22:57
Some epoll fun. g++ -std=c++1z -Wall -Wextra -Wpedantic main.cxx -O2 -march=native -mtune=native -lpthread
#include <unordered_map>
#include <cstdlib>
#include <array>
#include <memory>
#include <utility>
#include <iostream>
#include <cstdint>
#include <thread>
#include <vector>
@k-gregory
k-gregory / Program.cs
Last active April 24, 2017 20:58
C# Matrix multiplication benchmark
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace SharpoBench
{
interface Benchmark<TInit, TResult>
{
void Prepare(TInit parameters);
TResult Run();