Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created June 22, 2024 15:30
Show Gist options
  • Select an option

  • Save EgorBot/09909de324d9eb624e53a642ad898983 to your computer and use it in GitHub Desktop.

Select an option

Save EgorBot/09909de324d9eb624e53a642ad898983 to your computer and use it in GitHub Desktop.
diff_asm_6f386102.asm
Percent | Source code & Disassembly of jitted-40213-17060.so for cpu-clock:ppp (272299 samples, percent: local period)
----------------------------------------------------------------------------------------------------------------------------
:
:
:
: 3 Disassembly of section .text:
:
: 5 0000000000000080 <instance void [benchapp] MyBench::Bench()[OptimizedTier1]>:
: 6 instance void [benchapp] MyBench::Bench()[OptimizedTier1]():
0.09 : 80: sub rsp,0x18
0.39 : 84: xor eax,eax
3.82 : 86: mov QWORD PTR [rsp+0x8],rax
0.14 : 8b: mov QWORD PTR [rsp+0x10],rax
0.03 : 90: lea rsi,[rsp+0x8]
2.10 : 95: xor edx,edx
15.03 : 97: xor ecx,ecx
0.13 : 99: call QWORD PTR [rip+0xffffffffffae2b99] # ffffffffffae2c38 <instance void [benchapp] MyBench::Bench()[OptimizedTier1]+0xffffffffffae2bb8>
78.27 : 9f: nop
0.01 : a0: add rsp,0x18
0.00 : a4: ret
Percent | Source code & Disassembly of jitted-40213-9050.so for cpu-clock:ppp (88707 samples, percent: local period)
--------------------------------------------------------------------------------------------------------------------------
:
:
:
: 3 Disassembly of section .text:
:
: 5 0000000000000080 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>>:
: 6 stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>():
100.00 : 80: jmp QWORD PTR [rip+0x3ffa] # 4080 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4000>
0.00 : 86: mov r10,QWORD PTR [rip+0x3ffb] # 4088 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4008>
0.00 : 8d: jmp QWORD PTR [rip+0x3ffd] # 4090 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4010>
0.00 : 93: nop
0.00 : 94: mov rax,QWORD PTR [rip+0xfffffffffa25fff9] # fffffffffa260094 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0xfffffffffa260014>
0.00 : 9b: (bad)
0.00 : 9c: add BYTE PTR [rax],al
0.00 : 9e: mov r10,QWORD PTR [rip+0x3ffb] # 40a0 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4020>
0.00 : a5: jmp QWORD PTR [rip+0x3ffd] # 40a8 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4028>
0.00 : ab: nop
0.00 : ac: mov rax,QWORD PTR [rip+0xfffffffffa25fff9] # fffffffffa2600ac <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0xfffffffffa26002c>
0.00 : b3: (bad)
0.00 : b4: add BYTE PTR [rax],al
0.00 : b6: mov r10,QWORD PTR [rip+0x3ffb] # 40b8 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4038>
0.00 : bd: jmp QWORD PTR [rip+0x3ffd] # 40c0 <stub<6493> AllocateTemporaryEntryPoints<PRECODE_STUB>+0x4040>
0.00 : c3: nop
0.00 : c4: rex.W
0.00 : c5: .byte 0x8b
0.00 : c6: .byte 0x5
0.00 : c7: stc
Percent | Source code & Disassembly of jitted-40213-17016.so for cpu-clock:ppp (83127 samples, percent: local period)
---------------------------------------------------------------------------------------------------------------------------
:
:
:
: 3 Disassembly of section .text:
:
: 5 0000000000000080 <instance void [4f75e08f-b71b-4db0-b6b4-e06236ae9e71Emitted] BenchmarkDotNet.Autogenerated.Runnable_0::WorkloadActionUnroll(int64)[Optimized]>:
: 6 instance void [4f75e08f-b71b-4db0-b6b4-e06236ae9e71Emitted] BenchmarkDotNet.Autogenerated.Runnable_0::WorkloadActionUnroll(int64)[Optimized]():
0.00 : 80: push rbp
0.00 : 81: push r15
0.00 : 83: push rbx
0.00 : 84: lea rbp,[rsp+0x10]
0.00 : 89: mov rbx,rdi
0.00 : 8c: test rsi,rsi
0.00 : 8f: jle 151 <instance void [4f75e08f-b71b-4db0-b6b4-e06236ae9e71Emitted] BenchmarkDotNet.Autogenerated.Runnable_0::WorkloadActionUnroll(int64)[Optimized]+0xd1>
0.00 : 95: mov r15,rsi
0.01 : 98: mov rax,QWORD PTR [rbx+0x30]
0.00 : 9c: mov rdi,QWORD PTR [rax+0x8]
4.05 : a0: call QWORD PTR [rax+0x18]
3.22 : a3: mov rax,QWORD PTR [rbx+0x30]
0.00 : a7: mov rdi,QWORD PTR [rax+0x8]
0.00 : ab: call QWORD PTR [rax+0x18]
3.65 : ae: mov rax,QWORD PTR [rbx+0x30]
0.00 : b2: mov rdi,QWORD PTR [rax+0x8]
0.00 : b6: call QWORD PTR [rax+0x18]
3.64 : b9: mov rax,QWORD PTR [rbx+0x30]
0.00 : bd: mov rdi,QWORD PTR [rax+0x8]
0.01 : c1: call QWORD PTR [rax+0x18]
3.59 : c4: mov rax,QWORD PTR [rbx+0x30]
0.91 : c8: mov rdi,QWORD PTR [rax+0x8]
2.69 : cc: call QWORD PTR [rax+0x18]
3.25 : cf: mov rax,QWORD PTR [rbx+0x30]
0.25 : d3: mov rdi,QWORD PTR [rax+0x8]
1.01 : d7: call QWORD PTR [rax+0x18]
3.11 : da: mov rax,QWORD PTR [rbx+0x30]
3.13 : de: mov rdi,QWORD PTR [rax+0x8]
8.46 : e2: call QWORD PTR [rax+0x18]
1.80 : e5: mov rax,QWORD PTR [rbx+0x30]
2.25 : e9: mov rdi,QWORD PTR [rax+0x8]
5.67 : ed: call QWORD PTR [rax+0x18]
0.90 : f0: mov rax,QWORD PTR [rbx+0x30]
0.43 : f4: mov rdi,QWORD PTR [rax+0x8]
1.57 : f8: call QWORD PTR [rax+0x18]
0.72 : fb: mov rax,QWORD PTR [rbx+0x30]
0.13 : ff: mov rdi,QWORD PTR [rax+0x8]
0.39 : 103: call QWORD PTR [rax+0x18]
2.57 : 106: mov rax,QWORD PTR [rbx+0x30]
0.34 : 10a: mov rdi,QWORD PTR [rax+0x8]
1.76 : 10e: call QWORD PTR [rax+0x18]
3.15 : 111: mov rax,QWORD PTR [rbx+0x30]
0.09 : 115: mov rdi,QWORD PTR [rax+0x8]
0.16 : 119: call QWORD PTR [rax+0x18]
3.19 : 11c: mov rax,QWORD PTR [rbx+0x30]
2.36 : 120: mov rdi,QWORD PTR [rax+0x8]
6.58 : 124: call QWORD PTR [rax+0x18]
2.36 : 127: mov rax,QWORD PTR [rbx+0x30]
0.49 : 12b: mov rdi,QWORD PTR [rax+0x8]
1.44 : 12f: call QWORD PTR [rax+0x18]
2.04 : 132: mov rax,QWORD PTR [rbx+0x30]
3.70 : 136: mov rdi,QWORD PTR [rax+0x8]
9.23 : 13a: call QWORD PTR [rax+0x18]
0.47 : 13d: mov rax,QWORD PTR [rbx+0x30]
0.18 : 141: mov rdi,QWORD PTR [rax+0x8]
1.57 : 145: call QWORD PTR [rax+0x18]
3.47 : 148: dec r15
0.00 : 14b: jne 98 <instance void [4f75e08f-b71b-4db0-b6b4-e06236ae9e71Emitted] BenchmarkDotNet.Autogenerated.Runnable_0::WorkloadActionUnroll(int64)[Optimized]+0x18>
0.00 : 151: pop rbx
0.00 : 152: pop r15
0.00 : 154: pop rbp
0.00 : 155: ret
Percent | Source code & Disassembly of jitted-40213-17061.so for cpu-clock:ppp (55820 samples, percent: local period)
---------------------------------------------------------------------------------------------------------------------------
:
:
:
: 3 Disassembly of section .text:
:
: 5 0000000000000080 <instance void [benchapp] MyBench::Test(valuetype MyBench/MyStruct&,object,object)[OptimizedTier1]>:
: 6 instance void [benchapp] MyBench::Test(valuetype MyBench/MyStruct&,object,object)[OptimizedTier1]():
99.98 : 80: mov QWORD PTR [rsi],rdx
0.02 : 83: mov QWORD PTR [rsi+0x8],rcx
0.00 : 87: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment