Skip to content

Instantly share code, notes, and snippets.

@nbxx
Created September 26, 2016 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbxx/898804738fdc624db15999dff5a88203 to your computer and use it in GitHub Desktop.
Save nbxx/898804738fdc624db15999dff5a88203 to your computer and use it in GitHub Desktop.
using System.Threading;
using DevLib.Diagnostics;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Benchmark.Run(i =>
{
// Benchmark code piece here
Thread.Sleep(3000);
});
Benchmark.Run(i =>
{
// Benchmark code piece here, and run 5 times
Thread.Sleep(1000);
}, iteration: 5);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment