Skip to content

Instantly share code, notes, and snippets.

@trylek
trylek / Dockerfile
Created March 30, 2023 22:13
Initial attempt at fixing Logan's Dockerfile using ASP.NET composite image
################################################################################
# runtime-deps
################################################################################
FROM amd64/debian:bookworm-slim as runtime-deps
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
\
@trylek
trylek / combined-results.txt
Created August 29, 2021 20:25
Detailed results for the four combinations of RTR / TC
Summary - TC OFF, RTR OFF
=======
TOTAL | % | RUNTIME | % | APPHOST | % | WEBHOST | % | APP | % | MODE
==================================================================================
8407 | 100 | 167 | 100 | 2840 | 100 | 4498 | 100 | 902 | 100 | baseline
7679 | 91 | 158 | 94 | 2736 | 96 | 3974 | 88 | 811 | 89 | r2r
8377 | 99 | 165 | 98 | 2934 | 103 | 4420 | 98 | 858 | 95 | app-composite-avx2
8419 | 100 | 185 | 110 | 3016 | 106 | 4362 | 96 | 856 | 94 | one-big-composite-avx2
8257 | 98 | 161 | 96 | 2939 | 103 | 4329 | 96 | 828 | 91 | r2r-platform-composite-avx2
8359 | 99 | 158 | 94 | 2987 | 105 | 4373 | 97 | 841 | 93 | jit-platform-composite-avx2
======================== R2R Header =========================
Signature: 0x00525452 (RTR)
RelativeVirtualAddress: 0x00001540
Size: 148 bytes
MajorVersion: 0x0005
MinorVersion: 0x0003
Flags: 0x00000009
- READYTORUN_FLAG_PlatformNeutralSource
- READYTORUN_FLAG_NonSharedPInvokeStubs
======================== R2R Header =========================
Signature: 0x00525452 (RTR)
RelativeVirtualAddress: 0x00002548
Size: 124 bytes
MajorVersion: 0x0005
MinorVersion: 0x0003
Flags: 0x00000003
- READYTORUN_FLAG_PlatformNeutralSource
- READYTORUN_FLAG_SkipTypeValidation
@trylek
trylek / Vector2_3_4.ngendump
Created April 19, 2021 17:59
NgenDump of the offending method Vector2_3_4TestNative::CreateVector2FromFloats
D:\git\runtime2\.dotnet
****** START compiling Vector2_3_4TestNative:CreateVector2FromFloats(float,float):System.Numerics.Vector2 (MethodHash=24bf0f7f)
Generating code for Windows x86
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: No PGO data
@trylek
trylek / SPC_profile_simple_new_model_two_apps_1_7
Created January 27, 2021 21:32
System.Private.CoreLib Windows x64 profile file based on simple_new_model_two_apps_1_7.json
CHARACTERISTIC | PAIR COUNT | CALL COUNT | PERCENTAGE
----------------------------------------------------------------
ENTRIES TOTAL | 291 | 266229 | 100.00
RESOLVED ENTRIES | 267 | 260172 | 97.72
UNRESOLVED ENTRIES | 24 | 6057 | 2.28
NEAR (INTRA-PAGE) CALLS | 145 | 109055 | 40.96
FAR (CROSS-PAGE) CALLS | 122 | 151117 | 56.76
CALLER RVA | CALLER LEN | CALLEE RVA | CALLEE LEN | COUNT | CALLER -> CALLEE: CROSS-PAGE CALLS
---------------------------------------------------------------------------------------------------
@trylek
trylek / ninja-diff.log
Created September 12, 2020 18:36
Diff for map files shared by Jeremy on 9/11 produced by the experimental LinkerMapDiff tool
This file has been truncated, but you can view the full file.
D:\git\runtime5\.dotnet
Left file: d:\triage\ninja\msbuild master\clretwrc.map
Right file: d:\triage\ninja\ninja\clretwrc.map
Delta Left (Hex) Right (Hex) Name / Section Classes
-------------------------------------------------------------------------------
-96 303646 (0004A21E) 303550 (0004A1BE) DATA
-96 303646 (0004A21E) 303550 (0004A1BE) (total)
Delta Left (Hex) Right (Hex) Delta / Section Classes
@trylek
trylek / indexer-fast.log
Created September 1, 2020 23:39
Perf regression caused by fix for expanding generic dictionaries - fast version
****** START compiling System.Collections.IndexerSet`1[__Canon][System.__Canon]:Span():System.__Canon:this (MethodHash=992e2e63)
Generating code for Windows x64
OPTIONS: Tier-0 compilation (set COMPlus_TieredCompilation=0 to disable)
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
IL to import:
@trylek
trylek / indexer-slow.log
Created September 1, 2020 23:38
Perf regression caused by fix for expanding generic dictionaries - slow version
****** START compiling System.Collections.IndexerSet`1[__Canon][System.__Canon]:Span():System.__Canon:this (MethodHash=992e2e63)
Generating code for Windows x64
OPTIONS: Tier-0 compilation (set COMPlus_TieredCompilation=0 to disable)
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
IL to import:
@trylek
trylek / ExpansionPerf.jitdiff.diff
Created August 6, 2020 20:18
jit-diff diff for the ExpansionPerf test
Unwind Info:
>> Start offset : 0x000000 (not in unwind data)
>> End offset : 0xd1ffab1e (not in unwind data)
Version : 1
Flags : 0x00
SizeOfProlog : 0x08
CountOfUnwindCodes: 5
FrameRegister : none (0)
FrameOffset : N/A (no FrameRegister) (Value=0)
UnwindCodes :