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
@AndyAyersMS
AndyAyersMS / valgrind.out
Created November 13, 2015 00:56
Valgrind on crossgen / ubuntu 14.04 / RC1 Debug
==3123== Memcheck, a memory error detector
==3123== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==3123== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==3123== Command: ./crossgen /Platform_Assemblies_Paths /home/andy/sandbox mscorlib.dll
==3123==
==3123== warning: ignoring line info entry with negative line number (-304)
==3123== (Nb: this message is only shown once)
==3123== Invalid write of size 2
==3123== at 0x6BF961: SetMscorlibPath(char16_t const*) (mscoree.cpp:1287)
==3123== by 0x6B8438: wmain(int, char16_t**) (crossgen.cpp:923)
@AndyAyersMS
AndyAyersMS / 8QueensRawData.csv
Last active April 21, 2016 23:46
Script for running xunit-perf tests on CoreCLR (windows)
Iteration Time Instructions
1 245.29947067435137 2450300000
2 242.80866366034343 2450400000
3 252.36461047958414 2450500000
4 252.65525905979166 2447100000
5 253.49454765656992 2444600000
6 244.2105881924831 2444400000
7 247.37319930841477 2444500000
8 245.65496701161919 2447900000
9 256.54519142218123 2444500000
"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
<?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>
// 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
@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";
; 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 / 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.
@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