Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Last active November 2, 2016 15:08
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 mattwarren/896074b2725e9760d3405acb173b30ff to your computer and use it in GitHub Desktop.
Save mattwarren/896074b2725e9760d3405acb173b30ff to your computer and use it in GitHub Desktop.
Total time: 00:03:41 (221.7 sec)
// * Summary *
BenchmarkDotNet=v0.9.9-develop
OS=Microsoft Windows NT 6.1.7601 Service Pack 1
Processor=Intel(R) Core(TM) i7-4800MQ CPU 2.70GHz, ProcessorCount=8
Frequency=2630791 Hz, Resolution=380.1138 ns, Timer=TSC
Host Runtime=Clr 4.0.30319.42000, Arch=64-bit RELEASE [RyuJIT]
GC=Concurrent Workstation
JitModules=clrjit-v4.6.1590.0
Job Runtime(s):
Clr 4.0.30319.42000, Arch=64-bit RELEASE [RyuJIT]
RunStrategy=Throughput LaunchCount=2 WarmupCount=10
TargetCount=15
Method | GcServer | GcForce | Mean | StdErr | StdDev | Median | Gen 0 | Gen 1 | Gen 2 | Bytes Allocated/Op |
------------------------ |--------- |-------- |------------ |----------- |------------ |------------ |---------- |------ |------ |------------------- |
'stackalloc byte[10KB]' | False | True | 1.0580 ns | 0.1378 ns | 1.0671 ns | 1.0284 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | False | False | 1.0666 ns | 0.1389 ns | 1.0758 ns | 1.0266 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | True | True | 1.0732 ns | 0.1399 ns | 1.0833 ns | 1.0236 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | True | False | 1.0801 ns | 0.1408 ns | 1.0903 ns | 1.0410 ns | - | - | - | 0.00 |
'new byte[10KB]' | False | True | 108.7057 ns | 14.2016 ns | 110.0048 ns | 102.1161 ns | 24,835.00 | - | - | 10,048.00 |
'new byte[10KB]' | False | False | 110.6094 ns | 14.4250 ns | 111.7358 ns | 106.6167 ns | 25,045.00 | - | - | 10,048.00 |
'new byte[10KB]' | True | True | 155.6753 ns | 20.5542 ns | 159.2124 ns | 139.0744 ns | 1,131.00 | - | - | 10,042.00 |
'new byte[10KB]' | True | False | 168.1659 ns | 22.5059 ns | 174.3302 ns | 137.8017 ns | 1,330.00 | - | - | 10,042.00 |
// * Diagnostic Output - MemoryDiagnoser *
Benchmark: IntroGcMode.'new byte[10KB]' - Server(GcServer=True, GcForce=False, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
7,864,320 Ops
Benchmark: IntroGcMode.'stackalloc byte[10KB]' - Server(GcServer=True, GcForce=False, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
503,316,480 Ops
Benchmark: IntroGcMode.'new byte[10KB]' - ServerForce(GcServer=True, GcForce=True, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
7,864,320 Ops
Benchmark: IntroGcMode.'stackalloc byte[10KB]' - ServerForce(GcServer=True, GcForce=True, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
503,316,480 Ops
Benchmark: IntroGcMode.'new byte[10KB]' - Workstation(GcServer=False, GcForce=True, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
7,864,320 Ops
Benchmark: IntroGcMode.'stackalloc byte[10KB]' - Workstation(GcServer=False, GcForce=True, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
1,006,632,960 Ops
Benchmark: IntroGcMode.'new byte[10KB]' - WorkstationForce(GcServer=False, GcForce=False, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
7,864,320 Ops
Benchmark: IntroGcMode.'stackalloc byte[10KB]' - WorkstationForce(GcServer=False, GcForce=False, RunStrategy=Throughput, LaunchCount=2, WarmupCount=10, TargetCount=15)
1,006,632,960 Ops
// ***** BenchmarkRunner: End *****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment