Create a gist now

Instantly share code, notes, and snippets.

Profile Direct with Store (FIXED)
; 347: for (int i = 0; i < iterations; i++)
000001cb mov r12d,dword ptr [rbp+68h]
000001cf test r12d,r12d
000001d2 jle 0000000000000203
000001d4 xor eax,eax
000001d6 nop word ptr [rax+rax+00000000h]
; 348: {
; 349: resultDouble += Math.Sqrt(123.456);
000001e0 movsd xmm1,mmword ptr [FFEE08E8h]
000001e8 sqrtsd xmm0,mmword ptr [00000408h]
000001f0 addsd xmm1,xmm0
000001f4 movsd mmword ptr [FFEE08E8h],xmm1
; 347: for (int i = 0; i < iterations; i++)
000001fc inc eax
000001fe cmp eax,r12d
00000201 jl 00000000000001E0
; 350: }
; 351: watch.Stop();
00000203 mov rcx,rsi
00000206 call 000000005D37A340
; 352: Console.WriteLine("ProfileDirectWithStoreFixed - " + description);
; Takes 153,249 Ticks (~58ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment