Skip to content

Instantly share code, notes, and snippets.

@ig-sinicyn
Last active June 5, 2016 19:56
Show Gist options
  • Save ig-sinicyn/38d70d137ef3478abe937013bbc06716 to your computer and use it in GitHub Desktop.
Save ig-sinicyn/38d70d137ef3478abe937013bbc06716 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
var config = new ManualConfig();
config.Add(DefaultConfig.Instance);
config.Add(new MemoryDiagnoser());
BenchmarkRunner.Run<SimpleBenchmark>(config);
}
}
public class SimpleBenchmark
{
[Benchmark]
public void Baseline() => Thread.SpinWait(10000000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment