Created
June 10, 2021 04:36
-
-
Save hiroyukim/a3878843e22d4f857d6378652ac21bc8 to your computer and use it in GitHub Desktop.
fast main.go:3 slow main.go:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x0000 00000 (main.go:3) SUBQ $24, SP 0x0000 00000 (main.go:10) SUBQ $24, SP | |
0x0004 00004 (main.go:3) MOVQ BP, 16(SP) 0x0004 00004 (main.go:10) MOVQ BP, 16(SP) | |
0x0009 00009 (main.go:3) LEAQ 16(SP), BP 0x0009 00009 (main.go:10) LEAQ 16(SP), BP | |
0x000e 00014 (main.go:3) FUNCDATA $0, gclocals·1a65e721a2ccc325b382662e7ffee780(SB) 0x000e 00014 (main.go:10) FUNCDATA $0, gclocals·1a65e721a2ccc325b382662e7ffee780(SB) | |
0x000e 00014 (main.go:3) FUNCDATA $1, gclocals·69c1753bd5f81501d95132d08af04464(SB) 0x000e 00014 (main.go:10) FUNCDATA $1, gclocals·69c1753bd5f81501d95132d08af04464(SB) | |
0x000e 00014 (main.go:4) MOVQ "".s+56(SP), CX 0x000e 00014 (main.go:11) MOVQ "".s+56(SP), DX | |
0x0013 00019 (main.go:4) MOVQ "".a+48(SP), DX 0x0013 00019 (main.go:11) MOVQ "".a+32(SP), BX | |
0x0018 00024 (main.go:4) CMPQ CX, DX 0x0018 00024 (main.go:11) MOVQ "".a+40(SP), SI | |
0x001b 00027 (main.go:4) JHI 60 0x001d 00029 (main.go:11) XORL AX, AX | |
0x001d 00029 (main.go:5) MOVQ "".a+32(SP), AX 0x001f 00031 (main.go:11) NOP | |
0x0022 00034 (main.go:5) XORL DX, DX 0x0020 00032 (main.go:11) JMP 41 | |
0x0024 00036 (main.go:5) JMP 45 0x0022 00034 (main.go:12) MOVQ AX, (BX)(AX*8) | |
0x0026 00038 (main.go:6) MOVQ DX, (AX)(DX*8) 0x0026 00038 (main.go:11) INCQ AX | |
0x002a 00042 (main.go:5) INCQ DX 0x0029 00041 (main.go:11) CMPQ DX, AX | |
0x002d 00045 (main.go:5) CMPQ CX, DX 0x002c 00044 (main.go:11) JLE 53 | |
0x0030 00048 (main.go:5) JGT 38 0x002e 00046 (main.go:12) CMPQ AX, SI | |
0x0032 00050 (main.go:5) MOVQ 16(SP), BP 0x0031 00049 (main.go:12) JCS 34 | |
0x0037 00055 (main.go:5) ADDQ $24, SP 0x0033 00051 (main.go:12) JMP 63 | |
0x003b 00059 (main.go:5) RET 0x0035 00053 (main.go:11) MOVQ 16(SP), BP | |
0x003c 00060 (main.go:4) PCDATA $1, $1 0x003a 00058 (main.go:11) ADDQ $24, SP | |
0x003c 00060 (main.go:4) NOP 0x003e 00062 (main.go:11) RET | |
0x0040 00064 (main.go:4) CALL runtime.panicSliceAcap(SB) 0x003f 00063 (main.go:12) MOVQ SI, CX | |
0x0045 00069 (main.go:4) XCHGL AX, AX 0x0042 00066 (main.go:12) PCDATA $1, $1 | |
0x0042 00066 (main.go:12) CALL runtime.panicIndex(SB) | |
0x0047 00071 (main.go:12) XCHGL AX, AX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment