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 observable = Observable | |
.Interval(TimeSpan.FromMilliseconds(500)) | |
.TakeWhile(counter => counter < 10); | |
var thread = new Thread(() => | |
{ |
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
using System; | |
using BenchmarkDotNet.Attributes; | |
namespace Benchmarks.Branching | |
{ | |
internal class ReferenceType | |
{ | |
public int Value; | |
} |
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
using System; | |
using BenchmarkDotNet.Attributes; | |
using static BenchmarkDotNet.Diagnosers.HardwareCounter; | |
namespace Benchmarks.Branching | |
{ | |
internal class ReferenceType | |
{ | |
public int Value; |