Last active
June 5, 2016 19:56
-
-
Save ig-sinicyn/38d70d137ef3478abe937013bbc06716 to your computer and use it in GitHub Desktop.
This file contains 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
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