正在加载此比较的其余部分。

Untitled diff

创建于 差异永不过期
516 删除
474 行
455 添加
404 行
# JMH version: 1.19
# JMH version: 1.19
# VM version: JDK 1.8.0_144, VM 25.144-b01
# VM version: JDK 9.0.1, VM 9.0.1+11
# VM invoker: C:\Program Files\Java\jdk1.8.0_144\jre\bin\java.exe
# VM invoker: C:\Program Files\Java\jdk-9.0.1\bin\java.exe
# VM options: -Dfile.encoding=UTF-8 -XX:-UseParallelOldGC -XX:+UnlockDiagnosticVMOptions -XX:CompileCommand=print,*ComparsionBenchmark.getSimilarity -XX:PrintAssemblyOptions=intel
# VM options: -Dfile.encoding=UTF-8 -XX:-UseParallelOldGC -XX:+UnlockDiagnosticVMOptions -XX:CompileCommand=print,*ComparsionBenchmark.getSimilarity -XX:PrintAssemblyOptions=intel
# Warmup: 10 iterations, 1 s each
# Warmup: 10 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark mode: Throughput, ops/time
# Benchmark: net.lesiuk.internetmonitoring.ComparsionBenchmark.original
# Benchmark: net.lesiuk.internetmonitoring.ComparsionBenchmark.original


# Run progress: 0,00% complete, ETA 00:00:15
# Run progress: 0,00% complete, ETA 00:00:15
# Fork: 1 of 1
# Fork: 1 of 1
CompilerOracle: print *ComparsionBenchmark.getSimilarity
CompileCommand: print *ComparsionBenchmark.getSimilarity
Java HotSpot(TM) 64-Bit Server VM warning: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
# Warmup Iteration 1: Compiled method (c1) 833 527 % 3 net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity @ 94 (220 bytes)
# Warmup Iteration 1: Compiled method (c1) 1388 809 % 3 net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity @ 94 (220 bytes)
total in heap [0x0000000002968e10,0x000000000296a610] = 6144
total in heap [0x000000000d425890,0x000000000d426930] = 4256
relocation [0x0000000002968f30,0x0000000002968fd8] = 168
relocation [0x000000000d425a00,0x000000000d425a88] = 136
constants [0x0000000002968fe0,0x0000000002969000] = 32
constants [0x000000000d425aa0,0x000000000d425ac0] = 32
main code [0x0000000002969000,0x0000000002969fa0] = 4000
main code [0x000000000d425ac0,0x000000000d4262c0] = 2048
stub code [0x0000000002969fa0,0x000000000296a030] = 144
stub code [0x000000000d4262c0,0x000000000d426350] = 144
oops [0x000000000296a030,0x000000000296a038] = 8
oops [0x000000000d426350,0x000000000d426358] = 8
metadata [0x000000000296a038,0x000000000296a040] = 8
metadata [0x000000000d426358,0x000000000d426360] = 8
scopes data [0x000000000296a040,0x000000000296a270] = 560
scopes data [0x000000000d426360,0x000000000d426590] = 560
scopes pcs [0x000000000296a270,0x000000000296a5b0] = 832
scopes pcs [0x000000000d426590,0x000000000d4268d0] = 832
dependencies [0x000000000296a5b0,0x000000000296a5b8] = 8
dependencies [0x000000000d4268d0,0x000000000d4268d8] = 8
nul chk table [0x000000000296a5b8,0x000000000296a610] = 88
nul chk table [0x000000000d4268d8,0x000000000d426930] = 88
Loaded disassembler from C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\hsdis-amd64.dll
Loaded disassembler from C:\Program Files\Java\jdk-9.0.1\bin\server\hsdis-amd64.dll
Decoding compiled method 0x0000000002968e10:
----------------------------------------------------------------------
Code:
net/lesiuk/internetmonitoring/ComparsionBenchmark.getSimilarity([B[B)D [0x000000000d425ac0, 0x000000000d426350] 2192 bytes
[Constants]
[Constants]
0x0000000002968fe0 (offset: 0): 0x00000000 0x4000000000000000
0x000000000d425aa0 (offset: 0): 0x00000000 0x4000000000000000
0x0000000002968fe4 (offset: 4): 0x40000000
0x000000000d425aa4 (offset: 4): 0x40000000
0x0000000002968fe8 (offset: 8): 0x00000000 0x4000000000000000
0x000000000d425aa8 (offset: 8): 0x00000000 0x4000000000000000
0x0000000002968fec (offset: 12): 0x40000000
0x000000000d425aac (offset: 12): 0x40000000
0x0000000002968ff0 (offset: 16): 0xf4f4f4f4 0xf4f4f4f4f4f4f4f4
0x000000000d425ab0 (offset: 16): 0xf4f4f4f4 0xf4f4f4f4f4f4f4f4
0x0000000002968ff4 (offset: 20): 0xf4f4f4f4
0x000000000d425ab4 (offset: 20): 0xf4f4f4f4
0x0000000002968ff8 (offset: 24): 0xf4f4f4f4 0xf4f4f4f4f4f4f4f4
0x000000000d425ab8 (offset: 24): 0xf4f4f4f4 0xf4f4f4f4f4f4f4f4
0x0000000002968ffc (offset: 28): 0xf4f4f4f4
0x000000000d425abc (offset: 28): 0xf4f4f4f4
RIP: 0x2969000 Code size: 0x00001030
RIP: 0xd425ac0 Code size: 0x00000890
[Disassembling for mach='amd64']
[Disassembling for mach='amd64']
[Entry Point]
[Entry Point]
[Verified Entry Point]
[Verified Entry Point]
# {method} {0x0000000013761c20} 'getSimilarity' '([B[B)D' in 'net/lesiuk/internetmonitoring/ComparsionBenchmark'
# {method} {0x000000002b702df8} 'getSimilarity' '([B[B)D' in 'net/lesiuk/internetmonitoring/ComparsionBenchmark'
0x0000000002969000: mov dword ptr [rsp+0ffffffffffffa000h],eax
0x000000000d425ac0: mov dword ptr [rsp+0ffffffffffff9000h],eax
; {no_reloc}
; {no_reloc}
0x0000000002969007: push rbp
0x000000000d425ac7: push rbp
0x0000000002969008: sub rsp,0b0h
0x000000000d425ac8: sub rsp,110h
0x000000000296900f: mov r9,rdx
0x000000000d425acf: mov r9,rdx
0x0000000002969012: mov rbx,13784cc0h ; {metadata(method data for {method} {0x0000000013761c20} 'getSimilarity' '([B[B)D' in 'net/lesiuk/internetmonitoring/ComparsionBenchmark')}
0x000000000d425ad2: mov rbx,2ebcd3c8h ; {metadata(method data for {method} {0x000000002b702df8} 'getSimilarity' '([B[B)D' in 'net/lesiuk/internetmonitoring/ComparsionBenchmark')}
0x000000000296901c: mov edx,dword ptr [rbx+0dch]
0x000000000d425adc: mov edx,dword ptr [rbx+0fch]
0x0000000002969022: add edx,8h
0x000000000d425ae2: add edx,8h
0x0000000002969025: mov dword ptr [rbx+0dch],edx
0x000000000d425ae5: mov dword ptr [rbx+0fch],edx
0x000000000296902b: mov rbx,13761c18h ; {metadata({method} {0x0000000013761c20} 'getSimilarity' '([B[B)D' in 'net/lesiuk/internetmonitoring/ComparsionBenchmark')}
0x0000000002969035: and edx,1ff8h
0x000000000d425aeb: and edx,1ff8h
0x000000000296903b: cmp edx,0h
0x000000000d425af1: cmp edx,0h
0x000000000296903e: je 2969e91h ;*aload_0
0x000000000d425af4: je 0d426179h ;*aload_0 {reexecute=0 rethrow=0 return_oop=0}
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@0 (line 21)
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@0 (line 21)


0x0000000002969044: mov r11d,dword ptr [r9+0ch] ;*arraylength
0x000000000d425afa: mov r11d,dword ptr [r9+0ch] ;*arraylength {reexecute=0 rethrow=0 return_oop=0}
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@1 (line 21)
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@1 (line 21)
; implicit exception: dispatches to 0x0000000002969ea8
; implicit exception: dispatches to 0x000000000d42619a
0x0000000002969048: mov rbx,r11
0x000000000d425afe: mov rbx,r11
0x000000000296904b: mov rdx,7c00005c8h ; {metadata({type array double})}
0x000000000d425b01: mov rdx,7c00005c8h ; {metadata({type array double})}
0x0000000002969055: movsxd rbx,ebx
0x000000000d425b0b: movsxd rbx,ebx
0x0000000002969058: mov rdi,rbx
0x000000000d425b0e: mov rdi,rbx
0x000000000296905b: cmp rbx,0ffffffh
0x000000000d425b11: cmp rbx,0ffffffh
0x0000000002969062: jnbe 2969eadh
0x000000000d425b18: jnbe 0d42619fh
0x0000000002969068: mov rsi,17h
0x000000000d425b1e: mov rsi,17h
0x0000000002969072: lea rsi,[rsi+rbx*8]
0x000000000d425b28: lea rsi,[rsi+rbx*8]
0x0000000002969076: and rsi,0fffffffffffffff8h
0x000000000d425b2c: and rsi,0fffffffffffffff8h
0x000000000296907a: mov rax,qword ptr [r15+60h]
0x000000000d425b30: mov rax,qword ptr [r15+60h]
0x000000000296907e: lea rsi,[rax+rsi]
0x000000000d425b34: lea rsi,[rax+rsi]
0x0000000002969082: cmp rsi,qword ptr [r15+70h]
0x000000000d425b38: cmp rsi,qword ptr [r15+70h]
0x0000000002969086: jnbe 2969eadh
0x000000000d425b3c: jnbe 0d42619fh
0x000000000296908c: mov qword ptr [r15+60h],rsi
0x000000000d425b42: mov qword ptr [r15+60h],rsi
0x0000000002969090: sub rsi,rax
0x000000000d425b46: sub rsi,rax
0x0000000002969093: mov qword ptr [rax],1h
0x000000000d425b49: mov qword ptr [rax],1h
0x000000000296909a: mov rcx,rdx
0x000000000d425b50: mov rcx,rdx
0x000000000296909d: shr rcx,3h
0x000000000d425b53: shr rcx,3h
0x00000000029690a1: mov dword ptr [rax+8h],ecx
0x000000000d425b57: mov dword ptr [rax+8h],ecx
0x00000000029690a4: mov dword ptr [rax+0ch],ebx
0x000000000d425b5a: mov dword ptr [rax+0ch],ebx
0x00000000029690a7: sub rsi,10h
0x000000000d425b5d: sub rsi,10h
0x000000000d425b61: je 0d425b81h
0x00000000029690ab: je 29690c2h
0x000000000d425b67: test rsi,rsi
0x000000000d425b6a: je 0d425b81h
0x00000000029690b1: xor rbx,rbx
0x000000000d425b70: xor rbx,rbx
0x00000000029690b4: shr rsi,3h
0x000000000d425b73: shr rsi,3h
0x00000000029690b8: mov qword ptr [rax+rsi*8+8h],rbx
0x000000000d425b77: mov qword ptr [rax+rsi*8+8h],rbx
0x00000000029690bd: dec rsi
0x000000000d425b7c: dec rsi
0x00000000029690c0: jne 29690b8h ;*newarray
0x000000000d425b7f: jne 0d425b77h ;*newarray {reexecute=0 rethrow=0 return_oop=0}
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@4 (line 22)
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@4 (line 22)


0x00000000029690c2: mov edx,0h
0x000000000d425b81: mov edx,0h
0x00000000029690c7: vxorpd xmm0,xmm0,xmm0
0x000000000d425b86: vxorpd xmm0,xmm0,xmm0
0x00000000029690cb: vxorpd xmm1,xmm1,xmm1
0x000000000d425b8a: vxorpd xmm1,xmm1,xmm1
0x00000000029690cf: jmp 296916ch ;*iload
0x000000000d425b8e: jmp 0d425c22h ;*iload {reexecute=0 rethrow=0 return_oop=0}
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@16 (line 26)
; - net.lesiuk.internetmonitoring.ComparsionBenchmark::getSimilarity@16 (line 26)


0x00000000029690d4: nop dword ptr [rax+0h]
0x000000000d425b93: nop dword ptr [rax+rax+0h]