Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbogard/82db983fe5d1518bc8bd230211422db7 to your computer and use it in GitHub Desktop.
Save jbogard/82db983fe5d1518bc8bd230211422db7 to your computer and use it in GitHub Desktop.
BenchmarkDotNet=v0.10.13, OS=macOS 10.13.4 (17E199) [Darwin 17.5.0]
Intel Core i7-6567U CPU 3.30GHz (Skylake), 1 CPU, 4 logical cores and 2 physical cores
.NET Core SDK=2.1.300-preview2-008530
  [Host]     : .NET Core 2.1.0-preview2-26406-04 (CoreCLR 4.6.26406.07, CoreFX 4.6.26406.04), 64bit RyuJIT
  Job-VDUSZZ : .NET Core 2.1.0-preview2-26406-04 (CoreCLR 4.6.26406.07, CoreFX 4.6.26406.04), 64bit RyuJIT

Runtime=Core  Server=True  Toolchain=.NET Core 2.1  
RunStrategy=Throughput  
Method Mode Mean Error StdDev Median Op/s Scaled ScaledSD Gen 0 Gen 1 Allocated
NoDI Dynamic 5.417 ns 0.0659 ns 0.0550 ns 5.410 ns 184,603,718.8 1.00 0.00 0.0008 - 24 B
BuildProvider Dynamic 1,034.791 ns 20.6617 ns 30.9255 ns 1,038.616 ns 966,379.1 191.04 5.91 0.0515 - 1648 B
Transient Dynamic 4,214.370 ns 26.5946 ns 23.5754 ns 4,208.504 ns 237,283.4 778.06 8.63 0.0992 - 3216 B
Scoped Dynamic 4,956.122 ns 42.0817 ns 35.1401 ns 4,960.258 ns 201,770.7 915.01 10.84 0.1144 - 3776 B
Singleton Dynamic 4,519.301 ns 116.2868 ns 108.7747 ns 4,470.729 ns 221,273.2 834.36 21.02 0.1068 - 3376 B
NoDI Expressions 6.384 ns 0.3987 ns 1.1181 ns 5.967 ns 156,631,287.8 1.00 0.00 0.0008 - 24 B
BuildProvider Expressions 1,014.451 ns 20.2928 ns 52.3823 ns 990.027 ns 985,754.7 163.02 25.52 0.0515 - 1648 B
Transient Expressions 104,576.111 ns 2,109.1155 ns 5,879.3710 ns 102,429.431 ns 9,562.4 16,805.49 2,657.86 0.2441 0.1221 8120 B
Scoped Expressions 1,064,198.290 ns 21,022.1701 ns 41,002.1282 ns 1,063,439.355 ns 939.7 171,017.75 26,106.71 - - 28049 B
Singleton Expressions 4,752.213 ns 68.3818 ns 60.6186 ns 4,750.395 ns 210,428.3 763.69 113.20 0.1068 - 3384 B
NoDI ILEmit 5.992 ns 0.1153 ns 0.1078 ns 5.963 ns 166,876,589.0 1.00 0.00 0.0008 - 24 B
BuildProvider ILEmit 1,062.391 ns 13.0752 ns 10.9183 ns 1,061.053 ns 941,272.9 177.34 3.52 0.0515 - 1648 B
Transient ILEmit 75,663.519 ns 1,485.6599 ns 1,389.6870 ns 75,233.075 ns 13,216.4 12,630.24 312.12 0.1221 - 4456 B
Scoped ILEmit 656,812.360 ns 6,829.8556 ns 6,054.4885 ns 656,319.336 ns 1,522.5 109,639.37 2,122.18 - - 9376 B
Singleton ILEmit 4,753.747 ns 36.0501 ns 30.1035 ns 4,754.196 ns 210,360.4 793.53 14.48 0.1068 - 3384 B
NoDI Runtime 5.936 ns 0.0874 ns 0.0730 ns 5.917 ns 168,470,011.4 1.00 0.00 0.0008 - 24 B
BuildProvider Runtime 1,038.161 ns 8.1542 ns 6.8092 ns 1,035.317 ns 963,241.8 174.92 2.32 0.0515 - 1600 B
Transient Runtime 4,528.460 ns 53.9146 ns 47.7939 ns 4,526.298 ns 220,825.6 763.01 11.80 0.0992 - 3224 B
Scoped Runtime 5,496.070 ns 53.7605 ns 50.2876 ns 5,494.322 ns 181,948.2 926.05 13.54 0.1221 - 3840 B
Singleton Runtime 4,582.679 ns 51.6715 ns 48.3336 ns 4,587.645 ns 218,213.0 772.15 11.95 0.1068 - 3384 B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment