Skip to content

Instantly share code, notes, and snippets.

View AndyAyersMS's full-sized avatar

Andy Ayers AndyAyersMS

  • Microsoft
  • Redmond, WA, USA
View GitHub Profile
public void ComputeWord_32Bytes_WithPrefetch_Indirect_NoCount_StreamedLayout_Diff(void* originalBuffer, void* modifiedBuffer, int size)
{
Debug.Assert(size % 4096 == 0);
Debug.Assert(size % sizeof(long) == 0);
IsDiff = true;
OutputSize = 0;
byte* writePtr = Output;
long writePtrOffset = 16;
@AndyAyersMS
AndyAyersMS / KNucleotide_No_Parallel.csv
Last active May 24, 2017 01:19
Sample xunit-performance benchmark data
TestName Time BuildName MachineId Iteration Duration
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 0 1771.27044478454
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 1 1770.70793523357
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 2 1768.7438560158
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 3 1768.26146059753
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 4 1771.10451444563
BenchmarksGame/knucleotide/Bench_No_Parallel 3/23/2017 11:33 PM 1e2d938 5179 5 1767.90165975955
BenchmarksGame/knucleotide/Bench_No_Parallel 3/24/2017 1:40 AM b04644c 5216 0 1913.39660904454
BenchmarksGame/knucleotide/Bench_No_Parallel 3/24/2017 1:40 AM b04644c 5216 1 1914.64592943079
BenchmarksGame/knucleotide/Bench_No_Parallel 3/24/2017 1:40 AM b04644c 5216 2 1917.89809685341
@AndyAyersMS
AndyAyersMS / iteration-analysis.md
Created May 16, 2017 19:44
Analysis of iteration behavior for CoreCLR Jit Benchmarks
Test IterationMin IterationMax IterationMedian IterationTime IterationStability IterationCount IterationDuration
Burgers/Test0 20 20 20 514.64 Ok TooMany Ok
Burgers/Test1 24 24 24 426.39 Ok TooMany Short
Burgers/Test2 24 24 24 426.52 Ok TooMany Short
Burgers/Test3 3 19 13 565.73 Varies Ok Ok
ByteMark/BenchAssignJagged 9 10 10 1096.57 Varies Ok Ok
ByteMark/BenchAssignRectangular 7 7 7 1473.65 Ok TooFew Ok
ByteMark/BenchBitOps 7 9 8 1248.07 Varies Ok Ok
ByteMark/BenchEmFloat 3 3 3 3975.00 Ok TooFew Long
@AndyAyersMS
AndyAyersMS / analysis.txt
Created October 28, 2016 00:36
Analysis of d__2::MoveNext from kestrel...
Notes on
<RequestProcessingAsync>d__2[Context][Microsoft.AspNetCore.Hosting.Internal.HostingApplication+Context]:MoveNext():this
Jitted code from plaintext, using CoreCLR chk jit at commit b10828cd81693debaca841028d251543d4497902
Source at https://github.com/aspnet/KestrelHttpServer/blob/dev/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/FrameOfT.cs
Huge method (0x84c bytes of IL). Has a lot of EH and a lot of switches.
; Total bytes of code 30, prolog size 1 for method NewtE:Main():int
; ============================================================
; Assembly listing for method NewtE:Bench():bool
; Emitting BLENDED_CODE for X64 CPU with SSE2
; optimized code
; rbp based frame
; fully interruptible
; Final local variable assignments
;
;* V00 loc0 [V00,T27] ( 0, 0 ) double -> zero-ref
@AndyAyersMS
AndyAyersMS / Adams.exe-callgraph-full.dot
Last active July 26, 2016 21:44
CoreCLR Benchmark Data
digraph CallGraph {
"06002814-CF0F9964";
"06002814-CF0F9964" -> "06000AFF-2621BCC6";
"06002814-CF0F9964" -> "06003432-24C76E80";
"06002814-CF0F9964" -> "0600344E-B7AC1EEF";
"06002814-CF0F9964" -> "0600280F-70983DF3";
"06003446-4195C10C";
"06003433-793E9E7B";
"06003433-793E9E7B" -> "06003758-69EF29BC";
"06003433-793E9E7B" -> "06003448-B0604584";
// Microsoft (R) .NET Framework IL Disassembler. Version 4.5.22220.0
// Metadata version: v4.0.30319
.assembly extern System.Runtime
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
.ver 4:0:20:0
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "C:\Repos\coreclr\tests\..\tests\build.proj" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=detailed;LogFile="C:\Repos\coreclr\tests\..\bin\Logs\Tests_Managed_Windows_NT__x64__Release.log";Append
Build started 1/11/2016 12:58:23 PM.
0>Overriding target "RestorePackages" in project "C:\Repos\coreclr\tests\dir.traversal.targets" with target "RestorePackages" from project "C:\Repos\coreclr\tests\build.proj".
1>Project "C:\Repos\coreclr\tests\build.proj" on node 1 (default targets).
1>Building with tools version "14.0".
Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="14.0". For more information, please see http://go.microsoft.com/fwlink