Skip to content

Instantly share code, notes, and snippets.

[
"192.168.10.121/32",
"192.168.1.1/24",
"192.168.11.101/32"
]
@ig-sinicyn
ig-sinicyn / Output.cs
Created October 22, 2018 21:45
RoslynToolchain output
using System;
// the namespace name must be in sync with WindowsDisassembler.BuildArguments
namespace BenchmarkDotNet.Autogenerated
{
public delegate System.Byte OverheadDelegate( System.Byte arg0, System.Byte arg1, System.Byte arg2, System.Byte arg3, System.Byte arg4, System.Byte arg5, System.Byte arg6, System.Byte arg7, System.Byte arg8, System.Byte arg9, System.Byte arg10, System.Byte arg11, System.Byte arg12, System.Byte arg13, System.Byte arg14, System.Byte arg15, System.Byte arg16, System.Byte arg17, System.Byte arg18, System.Byte arg19, System.Byte arg20, System.Byte arg21, System.Byte arg22, System.Byte arg23, System.Byte arg24, System.Byte arg25, System.Byte arg26, System.Byte arg27, System.Byte arg28, System.Byte arg29, System.Byte arg30, System.Byte arg31, System.Byte arg32, System.Byte arg33, System.Byte arg34, System.Byte arg35, System.Byte arg36, System.Byte arg37, System.Byte arg38, System.Byte arg39, System.Byte arg40, System.Byte arg41, System.By
ntoskrnl.exe!KeSynchronizeExecution+0x3f86
ntoskrnl.exe!KeWaitForMutexObject+0x1070
ntoskrnl.exe!KeWaitForMutexObject+0x9ee
ntoskrnl.exe!KeWaitForMutexObject+0x1c9
ntoskrnl.exe!ExWaitForRundownProtectionRelease+0x6f3
ntoskrnl.exe!KeWaitForMutexObject+0x2c10
ntoskrnl.exe!KiCheckForKernelApcDelivery+0x25
ntoskrnl.exe!KeLeaveCriticalRegion+0x37
win32kbase.sys!SURFMEM::bCreateDIB+0xbc7
win32kbase.sys!SURFMEM::bCreateDIB+0x184
@ig-sinicyn
ig-sinicyn / Program.Examples.cs
Created December 16, 2016 18:35
PdbInfoExample
using System.Threading;
namespace PdbInfoExample
{
partial class C { int X = 1; }
partial class C { int Y = 2; }
partial class Examples
{

Baseline - GetViaProperty

                        Method |          Mean |    StdDev |   Scaled | Scaled-StdDev |  Gen 0 | Allocated |
------------------------------ |-------------- |---------- |--------- |-------------- |------- |---------- |
        GetViaPropertyNoInline |     1.9537 ns | 0.0379 ns |     3.63 |          0.10 |      - |       0 B |
                GetViaProperty |     0.5387 ns | 0.0117 ns |     1.00 |          0.00 |      - |       0 B |
                GetViaDelegate |     4.9861 ns | 0.1827 ns |     9.26 |          0.38 |      - |       0 B |
                  GetViaILEmit |     5.0013 ns | 0.1399 ns |     9.29 |          0.32 |      - |       0 B |
 GetViaCompiledExpressionTrees |    14.3807 ns | 0.1524 ns |    26.71 |          0.62 |      - |       0 B |
              GetViaFastMember |    42.7589 ns | 0.2952 ns |    79.41 |          1.74 |      - |       0 B |
@ig-sinicyn
ig-sinicyn / ThreadCycles.md
Last active November 12, 2016 19:03
ThreadCycles.md

##i5-2550K

BenchmarkDotNet=v0.10.0
OS=Microsoft Windows NT 10.0.14393.0
Processor=Intel(R) Core(TM) i5-2550K CPU 3.40GHz, ProcessorCount=4
Frequency=3312788 Hz, Resolution=301.8605 ns, Timer=TSC
Host Runtime=Clr 4.0.30319.42000, Arch=64-bit  [RyuJIT]
GC=Concurrent Workstation
JitModules=clrjit-v4.6.1586.0
Job Runtime(s):
namespace system.collections.generic {
using system;
using system.collections;
using system.diagnostics;
using system.diagnostics.contracts;
using system.runtime.serialization;
using system.security.permissions;
[debugger_type_proxy(typeof(mscorlib_dictionary_debug_view<,>))]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Xunit;
using static Xunit.Assert;
namespace DepPropertySample
{
public class Program
BenchmarkDotNet=v0.9.7.0
OS=Microsoft Windows NT 10.0.10586.0
Processor=Intel(R) Core(TM) i5-2550K CPU 3.40GHz, ProcessorCount=4
Frequency=3312785 ticks, Resolution=301.8608 ns, Timer=TSC
HostCLR=MS.NET 4.0.30319.42000, Arch=64-bit RELEASE [RyuJIT]
JitModules=clrjit-v4.6.1080.0
Type=CallCostPerfTests Mode=SingleRun Platform=X64
Jit=RyuJit Toolchain=InProcessToolchain LaunchCount=1
WarmupCount=100 TargetCount=300
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using CodeJam.Arithmetic;
using CodeJam.Collections;
using CodeJam.PerfTests;
using JetBrains.Annotations;