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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
[DisassemblyDiagnoser(true, true, true)] | |
[RyuJitX64Job] | |
public class Tuple_vs_Struct | |
{ | |
[Params(1000000)] | |
public int LoopCount { get; set; } | |
public (int kek, long lol, double wut)[] _tupleArray; |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
[DisassemblyDiagnoser(true, true, true)] | |
[RyuJitX64Job] | |
public class Tuple_DirectAccess_vs_Decomposition | |
{ | |
[Params(100000)] | |
public int LoopCount { get; set; } | |
public (int kek, long lol, double wut)[] _tupleArray; |
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.Linq; | |
using System.Threading.Tasks; | |
using SmartHomeManager.Models; | |
using YeelightAPI; | |
namespace SmartHomeManager.Utils | |
{ | |
public static class DeviceExt |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[MemoryDiagnoser] | |
[DisassemblyDiagnoser(true, true, true)] | |
[RyuJitX64Job] | |
public class Dict_ContainsGet_vs_TryGet | |
{ | |
[Params(100_000)] | |
public int Count { get; set; } | |
private Dictionary<int, string> _dict; | |
private int _key; |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[MemoryDiagnoser] | |
[DisassemblyDiagnoser(true, true, true)] | |
[RyuJitX64Job] | |
public class Dict_ContainsGet_vs_TryGet | |
{ | |
[Params(100_000)] | |
public int Count { get; set; } | |
private Dictionary<int, string> _dict; | |
private string _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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
public class Array_ByIndex_vs_CreateLocal | |
{ | |
[Params(1_000_000)] | |
public int LoopCount { get; set; } | |
public Arr1[] _Array1; | |
public Arr2[] _Array2; |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
public class Array_ByIndex_vs_CreateLocal | |
{ | |
[Params(1_000_000)] | |
public int LoopCount { get; set; } | |
public Arr[] _Array; | |
[GlobalSetup] |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
public class Array_ByIndex_vs_CreateLocal | |
{ | |
[Params(1_000_000)] | |
public int LoopCount { get; set; } | |
public Arr[] _Array; | |
[GlobalSetup] |
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
[OrderProvider(SummaryOrderPolicy.FastestToSlowest)] | |
[RankColumn] | |
[MemoryDiagnoser] | |
public class Array_ByIndex_vs_CreateLocal | |
{ | |
[Params(1_000_000)] | |
public int LoopCount { get; set; } | |
public Arr[] _Array; | |
[GlobalSetup] |
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
#!/bin/bash | |
set -e | |
home=$(pwd) | |
INIT_SYSTEM="unknown" | |
SERVICE_NAME="<Имя сервиса>" # Имя твоего сервиса, например mydotnetserver | |
SERVICE_DESCRIPTION="<Описание твоего сервиса>" | |
PROJECT_PATH="$home/" # Путь к папке с файлом Server.dll |