Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Last active November 2, 2016 15:31
Show Gist options
  • Save mattwarren/301054b57d8de086c935d3795bc42823 to your computer and use it in GitHub Desktop.
Save mattwarren/301054b57d8de086c935d3795bc42823 to your computer and use it in GitHub Desktop.
Total time: 00:03:49 (229.57 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.0694 ns | 0.1392 ns | 1.0786 ns | 1.0444 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | False | False | 1.0722 ns | 0.1396 ns | 1.0814 ns | 1.0501 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | True | False | 1.0765 ns | 0.1402 ns | 1.0861 ns | 1.0419 ns | - | - | - | 0.00 |
'stackalloc byte[10KB]' | True | True | 1.0790 ns | 0.1405 ns | 1.0883 ns | 1.0459 ns | - | - | - | 0.00 |
'new byte[10KB]' | False | True | 111.6729 ns | 14.6014 ns | 113.1016 ns | 102.3328 ns | 24,831.00 | - | - | 10,048.00 |
'new byte[10KB]' | False | False | 112.5393 ns | 14.6706 ns | 113.6381 ns | 106.2042 ns | 25,045.00 | - | - | 10,048.00 |
'new byte[10KB]' | True | False | 158.9486 ns | 21.4685 ns | 166.2941 ns | 128.0673 ns | 1,331.00 | - | - | 10,042.00 |
'new byte[10KB]' | True | True | 161.1846 ns | 21.2168 ns | 164.3446 ns | 137.8021 ns | 1,132.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