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.Text; | |
var str = string.Empty; | |
foreach (var encoding in Encoding.GetEncodings()) | |
{ | |
Console.WriteLine($"string: {str} -- Encoding: {encoding.Name} -- {encoding.DisplayName} -- Bytes: {encoding.GetEncoding().GetByteCount(str)}"); | |
} | |
str = "S"; | |
foreach (var encoding in Encoding.GetEncodings()) |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Reports; | |
using DatabaseNight.Context; | |
using System.Linq; | |
namespace DatabaseNight; | |
[Config(typeof(Config))] |
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 Avro.IO; | |
using Avro.Reflect; | |
using Avro; | |
using BenchmarkDotNet.Attributes; | |
using MessagePack; | |
using MongoDB.Bson; | |
using ProtoBuf; | |
using System.Text.Json; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Reports; | |
using EFQueryOptimization.Context; | |
using EFQueryOptimization.Entities; | |
using Microsoft.EntityFrameworkCore; | |
namespace EFQueryOptimization; |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Jobs; | |
namespace Benchmarks; | |
[SimpleJob(RuntimeMoniker.Net80, baseline: true)] | |
[SimpleJob(RuntimeMoniker.Net90)] | |
[MemoryDiagnoser(false)] | |
[HideColumns("RatioSD", "Median", "StdDev", "Error", "Job", "Alloc Ratio")] | |
public class LinqAggregateBenchmark |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Jobs; | |
namespace Benchmarks; | |
[MemoryDiagnoser(false)] | |
[HideColumns(Column.RatioSD, Column.AllocRatio)] | |
[SimpleJob(RuntimeMoniker.Net80)] | |
public class ListCountBenchmark |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Jobs; | |
using System.Text.Json; | |
namespace Benchmarks; | |
[MemoryDiagnoser(false)] | |
[HideColumns(Column.RatioSD, Column.AllocRatio)] | |
[SimpleJob(RuntimeMoniker.Net80, baseline: true)] |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Jobs; | |
using System.Runtime.InteropServices; | |
namespace ForLoopsComparison; | |
[MemoryDiagnoser(false)] | |
[SimpleJob(RuntimeMoniker.Net60)] | |
[SimpleJob(RuntimeMoniker.Net80)] | |
[SimpleJob(RuntimeMoniker.Net90)] |