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
// TUPLE MICRO-BENCHMARKS, based on https://www.dotnetperls.com/tuple-keyvaluepair | |
// | |
// Tuples are generally fastest. | |
// ValueTuple is fastest in the particular case of GetHashCode. | |
// KeyValuePair is always worst. | |
// | |
// | |
// RAW RESULTS | |
// Numbers in milliseconds (lower is better) | |
// |
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 System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
static void Main() | |
{ |