Skip to content

Latest commit

 

History

History
5500 lines (5008 loc) · 98.2 KB

bm-20240615-azure-x86_64-python-a19bb261a327e1008f21-3.13.0b2+-a19bb26-pystats-coroutines.md

File metadata and controls

5500 lines (5008 loc) · 98.2 KB

Pystats results

  • benchmark: coroutines
  • fork: python
  • ref: a19bb261a327e1008f219b62f6465941c981899b
  • commit hash: a19bb26
  • commit date: 2024-06-15T19:10:50+00:00

Execution counts

Execution counts for Tier 1 instructions.

The "miss ratio" column shows the percentage of times the instruction executed that it deoptimized. When this happens, the base unspecialized instruction is not counted.

Name Count Self Cumulative Miss ratio
LOAD_CONST 466,146,640 16.7% 16.7%
LOAD_FAST 388,456,440 13.9% 30.6%
POP_TOP 155,383,160 5.6% 36.1%
POP_JUMP_IF_FALSE 155,383,040 5.6% 41.7%
RETURN_VALUE 155,382,560 5.6% 47.2%
RESUME_CHECK 155,382,500 5.6% 52.8%
COMPARE_OP_INT 155,382,380 5.6% 58.3%
LOAD_GLOBAL_MODULE 155,382,240 5.6% 63.9%
RETURN_GENERATOR 155,382,120 5.6% 69.4%
CALL_PY_EXACT_ARGS 155,382,060 5.6% 75.0%
END_SEND 155,381,760 5.6% 80.6%
GET_AWAITABLE 155,381,760 5.6% 86.1%
BINARY_OP_SUBTRACT_INT 155,381,720 5.6% 91.7%
SEND_GEN 155,381,720 5.6% 97.2%
BINARY_OP_ADD_INT 77,690,860 2.8% 100.0%
STORE_FAST 880 0.0% 100.0%
NOP 800 0.0% 100.0%
LOAD_GLOBAL_BUILTIN 680 0.0% 100.0%
CHECK_EXC_MATCH 640 0.0% 100.0%
INTERPRETER_EXIT 640 0.0% 100.0%
POP_EXCEPT 640 0.0% 100.0%
PUSH_EXC_INFO 640 0.0% 100.0%
PUSH_NULL 400 0.0% 100.0%
FOR_ITER_RANGE 380 0.0% 100.0%
JUMP_BACKWARD 340 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O 340 0.0% 100.0%
LOAD_ATTR_METHOD_NO_DICT 340 0.0% 100.0%
CALL 320 0.0% 100.0%
LOAD_GLOBAL 320 0.0% 100.0%
ENTER_EXECUTOR 300 0.0% 100.0%
LOAD_DEREF 240 0.0% 100.0%
CALL_NON_PY_GENERAL 180 0.0% 100.0%
LOAD_ATTR_MODULE 180 0.0% 100.0%
BINARY_OP 160 0.0% 100.0%
CALL_FUNCTION_EX 160 0.0% 100.0%
LOAD_ATTR 160 0.0% 100.0%
GET_ITER 80 0.0% 100.0%
BUILD_LIST 80 0.0% 100.0%
CALL_INTRINSIC_1 80 0.0% 100.0%
COPY_FREE_VARS 80 0.0% 100.0%
LIST_EXTEND 80 0.0% 100.0%
SEND 80 0.0% 100.0%
RESUME 60 0.0% 100.0%
BINARY_OP_SUBTRACT_FLOAT 60 0.0% 100.0%
CALL_BUILTIN_CLASS 60 0.0% 100.0%
COMPARE_OP 40 0.0% 100.0%
FOR_ITER 40 0.0% 100.0%

Pair counts

Pair counts for top 100 opcode pairs

Pairs of specialized operations that deoptimize and are then followed by the corresponding unspecialized instruction are not counted as pairs.

Pair Count Self Cumulative
LOAD_FAST LOAD_CONST 310,764,160 11.1% 11.1%
POP_TOP RESUME_CHECK 155,382,380 5.6% 16.7%
COMPARE_OP_INT POP_JUMP_IF_FALSE 155,382,380 5.6% 22.2%
RESUME_CHECK LOAD_FAST 155,382,380 5.6% 27.8%
LOAD_CONST COMPARE_OP_INT 155,382,360 5.6% 33.3%
CALL_PY_EXACT_ARGS RETURN_GENERATOR 155,382,060 5.6% 38.9%
RETURN_GENERATOR GET_AWAITABLE 155,381,760 5.6% 44.4%
RETURN_VALUE END_SEND 155,381,760 5.6% 50.0%
GET_AWAITABLE LOAD_CONST 155,381,760 5.6% 55.6%
LOAD_GLOBAL_MODULE LOAD_FAST 155,381,720 5.6% 61.1%
SEND_GEN POP_TOP 155,381,720 5.6% 66.7%
LOAD_CONST BINARY_OP_SUBTRACT_INT 155,381,680 5.6% 72.2%
LOAD_CONST SEND_GEN 155,381,680 5.6% 77.8%
BINARY_OP_SUBTRACT_INT CALL_PY_EXACT_ARGS 155,381,680 5.6% 83.3%
LOAD_FAST RETURN_VALUE 77,691,520 2.8% 86.1%
POP_JUMP_IF_FALSE LOAD_FAST 77,691,520 2.8% 88.9%
BINARY_OP_ADD_INT RETURN_VALUE 77,690,860 2.8% 91.7%
END_SEND BINARY_OP_ADD_INT 77,690,840 2.8% 94.4%
END_SEND LOAD_GLOBAL_MODULE 77,690,840 2.8% 97.2%
POP_JUMP_IF_FALSE LOAD_GLOBAL_MODULE 77,690,840 2.8% 100.0%
CACHE POP_TOP 640 0.0% 100.0%
CHECK_EXC_MATCH POP_JUMP_IF_FALSE 640 0.0% 100.0%
POP_TOP POP_EXCEPT 640 0.0% 100.0%
RETURN_VALUE INTERPRETER_EXIT 640 0.0% 100.0%
POP_JUMP_IF_FALSE POP_TOP 640 0.0% 100.0%
LOAD_GLOBAL_BUILTIN CHECK_EXC_MATCH 620 0.0% 100.0%
PUSH_EXC_INFO LOAD_GLOBAL_BUILTIN 600 0.0% 100.0%
NOP NOP 360 0.0% 100.0%
NOP LOAD_FAST 360 0.0% 100.0%
RETURN_GENERATOR STORE_FAST 360 0.0% 100.0%
STORE_FAST NOP 360 0.0% 100.0%
STORE_FAST LOAD_GLOBAL_MODULE 360 0.0% 100.0%
POP_EXCEPT JUMP_BACKWARD 340 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O PUSH_EXC_INFO 340 0.0% 100.0%
FOR_ITER_RANGE STORE_FAST 340 0.0% 100.0%
LOAD_ATTR_METHOD_NO_DICT LOAD_CONST 340 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_CONST 340 0.0% 100.0%
LOAD_CONST CALL_METHOD_DESCRIPTOR_O 320 0.0% 100.0%
LOAD_CONST CALL_PY_EXACT_ARGS 320 0.0% 100.0%
LOAD_FAST LOAD_ATTR_METHOD_NO_DICT 320 0.0% 100.0%
POP_EXCEPT ENTER_EXECUTOR 300 0.0% 100.0%
JUMP_BACKWARD FOR_ITER_RANGE 300 0.0% 100.0%
ENTER_EXECUTOR PUSH_EXC_INFO 260 0.0% 100.0%
LOAD_ATTR_MODULE PUSH_NULL 180 0.0% 100.0%
PUSH_NULL LOAD_FAST 160 0.0% 100.0%
LOAD_DEREF PUSH_NULL 160 0.0% 100.0%
PUSH_NULL CALL 120 0.0% 100.0%
PUSH_NULL CALL_NON_PY_GENERAL 120 0.0% 100.0%
LOAD_GLOBAL LOAD_GLOBAL_MODULE 120 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_ATTR_MODULE 120 0.0% 100.0%
NOP LOAD_DEREF 80 0.0% 100.0%
POP_TOP NOP 80 0.0% 100.0%
RETURN_VALUE RETURN_VALUE 80 0.0% 100.0%
BUILD_LIST LOAD_DEREF 80 0.0% 100.0%
CALL_FUNCTION_EX COPY_FREE_VARS 80 0.0% 100.0%
CALL_INTRINSIC_1 CALL_FUNCTION_EX 80 0.0% 100.0%
LIST_EXTEND CALL_INTRINSIC_1 80 0.0% 100.0%
LOAD_CONST BINARY_OP 80 0.0% 100.0%
LOAD_CONST CALL 80 0.0% 100.0%
LOAD_CONST SEND 80 0.0% 100.0%
LOAD_DEREF LIST_EXTEND 80 0.0% 100.0%
LOAD_FAST GET_ITER 80 0.0% 100.0%
LOAD_FAST BUILD_LIST 80 0.0% 100.0%
LOAD_FAST CALL_FUNCTION_EX 80 0.0% 100.0%
STORE_FAST LOAD_FAST 80 0.0% 100.0%
STORE_FAST LOAD_GLOBAL 80 0.0% 100.0%
GET_ITER FOR_ITER_RANGE 60 0.0% 100.0%
CALL RETURN_GENERATOR 60 0.0% 100.0%
CALL CALL_NON_PY_GENERAL 60 0.0% 100.0%
CALL CALL_PY_EXACT_ARGS 60 0.0% 100.0%
CALL_FUNCTION_EX RESUME_CHECK 60 0.0% 100.0%
COPY_FREE_VARS RESUME_CHECK 60 0.0% 100.0%
LOAD_ATTR PUSH_NULL 60 0.0% 100.0%
LOAD_ATTR LOAD_ATTR_MODULE 60 0.0% 100.0%
LOAD_GLOBAL LOAD_ATTR 60 0.0% 100.0%
LOAD_GLOBAL LOAD_FAST 60 0.0% 100.0%
BINARY_OP_SUBTRACT_FLOAT RETURN_VALUE 60 0.0% 100.0%
CALL_BUILTIN_CLASS STORE_FAST 60 0.0% 100.0%
CALL_NON_PY_GENERAL POP_TOP 60 0.0% 100.0%
CALL_NON_PY_GENERAL LOAD_FAST 60 0.0% 100.0%
CALL_NON_PY_GENERAL STORE_FAST 60 0.0% 100.0%
LOAD_GLOBAL_BUILTIN LOAD_FAST 60 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_ATTR 60 0.0% 100.0%
RESUME_CHECK LOAD_DEREF 60 0.0% 100.0%
END_SEND BINARY_OP 40 0.0% 100.0%
END_SEND LOAD_GLOBAL 40 0.0% 100.0%
POP_TOP LOAD_GLOBAL_MODULE 40 0.0% 100.0%
PUSH_EXC_INFO LOAD_GLOBAL 40 0.0% 100.0%
RETURN_VALUE LOAD_GLOBAL 40 0.0% 100.0%
RETURN_VALUE LOAD_GLOBAL_MODULE 40 0.0% 100.0%
BINARY_OP RETURN_VALUE 40 0.0% 100.0%
BINARY_OP CALL 40 0.0% 100.0%
BINARY_OP BINARY_OP_SUBTRACT_INT 40 0.0% 100.0%
CALL STORE_FAST 40 0.0% 100.0%
ENTER_EXECUTOR POP_TOP 40 0.0% 100.0%
LOAD_CONST COMPARE_OP 40 0.0% 100.0%
LOAD_FAST BINARY_OP 40 0.0% 100.0%
LOAD_FAST CALL 40 0.0% 100.0%
LOAD_FAST LOAD_ATTR 40 0.0% 100.0%
LOAD_FAST BINARY_OP_SUBTRACT_FLOAT 40 0.0% 100.0%

Predecessor/Successor Pairs

Top 5 predecessors and successors of each Tier 1 opcode.

This does not include the unspecialized instructions that occur after a specialized instruction deoptimizes.

CACHE

Successors and predecessors for CACHE
Successors Count Percentage
POP_TOP 640 100.0%

CHECK_EXC_MATCH

Successors and predecessors for CHECK_EXC_MATCH
Predecessors Count Percentage
LOAD_GLOBAL_BUILTIN 620 96.9%
LOAD_GLOBAL 20 3.1%
Successors Count Percentage
POP_JUMP_IF_FALSE 640 100.0%

END_SEND

Successors and predecessors for END_SEND
Predecessors Count Percentage
RETURN_VALUE 155,381,760 100.0%
Successors Count Percentage
BINARY_OP_ADD_INT 77,690,840 50.0%
LOAD_GLOBAL_MODULE 77,690,840 50.0%
BINARY_OP 40 0.0%
LOAD_GLOBAL 40 0.0%

GET_ITER

Successors and predecessors for GET_ITER
Predecessors Count Percentage
LOAD_FAST 80 100.0%
Successors Count Percentage
FOR_ITER_RANGE 60 75.0%
FOR_ITER 20 25.0%

INTERPRETER_EXIT

Successors and predecessors for INTERPRETER_EXIT
Predecessors Count Percentage
RETURN_VALUE 640 100.0%

NOP

Successors and predecessors for NOP
Predecessors Count Percentage
NOP 360 45.0%
STORE_FAST 360 45.0%
POP_TOP 80 10.0%
Successors Count Percentage
NOP 360 45.0%
LOAD_FAST 360 45.0%
LOAD_DEREF 80 10.0%

POP_EXCEPT

Successors and predecessors for POP_EXCEPT
Predecessors Count Percentage
POP_TOP 640 100.0%
Successors Count Percentage
JUMP_BACKWARD 340 53.1%
ENTER_EXECUTOR 300 46.9%

POP_TOP

Successors and predecessors for POP_TOP
Predecessors Count Percentage
SEND_GEN 155,381,720 100.0%
CACHE 640 0.0%
POP_JUMP_IF_FALSE 640 0.0%
CALL_NON_PY_GENERAL 60 0.0%
ENTER_EXECUTOR 40 0.0%
Successors Count Percentage
RESUME_CHECK 155,382,380 100.0%
POP_EXCEPT 640 0.0%
NOP 80 0.0%
LOAD_GLOBAL_MODULE 40 0.0%
RESUME 20 0.0%

PUSH_EXC_INFO

Successors and predecessors for PUSH_EXC_INFO
Predecessors Count Percentage
CALL_METHOD_DESCRIPTOR_O 340 53.1%
ENTER_EXECUTOR 260 40.6%
CALL 20 3.1%
JUMP_BACKWARD 20 3.1%
Successors Count Percentage
LOAD_GLOBAL_BUILTIN 600 93.8%
LOAD_GLOBAL 40 6.2%

PUSH_NULL

Successors and predecessors for PUSH_NULL
Predecessors Count Percentage
LOAD_ATTR_MODULE 180 45.0%
LOAD_DEREF 160 40.0%
LOAD_ATTR 60 15.0%
Successors Count Percentage
LOAD_FAST 160 40.0%
CALL 120 30.0%
CALL_NON_PY_GENERAL 120 30.0%

RETURN_GENERATOR

Successors and predecessors for RETURN_GENERATOR
Predecessors Count Percentage
CALL_PY_EXACT_ARGS 155,382,060 100.0%
CALL 60 0.0%
Successors Count Percentage
GET_AWAITABLE 155,381,760 100.0%
STORE_FAST 360 0.0%

RETURN_VALUE

Successors and predecessors for RETURN_VALUE
Predecessors Count Percentage
LOAD_FAST 77,691,520 50.0%
BINARY_OP_ADD_INT 77,690,860 50.0%
RETURN_VALUE 80 0.0%
BINARY_OP_SUBTRACT_FLOAT 60 0.0%
BINARY_OP 40 0.0%
Successors Count Percentage
END_SEND 155,381,760 100.0%
INTERPRETER_EXIT 640 0.0%
RETURN_VALUE 80 0.0%
LOAD_GLOBAL 40 0.0%
LOAD_GLOBAL_MODULE 40 0.0%

BINARY_OP

Successors and predecessors for BINARY_OP
Predecessors Count Percentage
LOAD_CONST 80 50.0%
END_SEND 40 25.0%
LOAD_FAST 40 25.0%
Successors Count Percentage
RETURN_VALUE 40 25.0%
CALL 40 25.0%
BINARY_OP_SUBTRACT_INT 40 25.0%
BINARY_OP_ADD_INT 20 12.5%
BINARY_OP_SUBTRACT_FLOAT 20 12.5%

BUILD_LIST

Successors and predecessors for BUILD_LIST
Predecessors Count Percentage
LOAD_FAST 80 100.0%
Successors Count Percentage
LOAD_DEREF 80 100.0%

CALL

Successors and predecessors for CALL
Predecessors Count Percentage
PUSH_NULL 120 37.5%
LOAD_CONST 80 25.0%
BINARY_OP 40 12.5%
LOAD_FAST 40 12.5%
BINARY_OP_SUBTRACT_INT 40 12.5%
Successors Count Percentage
RETURN_GENERATOR 60 18.8%
CALL_NON_PY_GENERAL 60 18.8%
CALL_PY_EXACT_ARGS 60 18.8%
STORE_FAST 40 12.5%
POP_TOP 20 6.2%

CALL_FUNCTION_EX

Successors and predecessors for CALL_FUNCTION_EX
Predecessors Count Percentage
CALL_INTRINSIC_1 80 50.0%
LOAD_FAST 80 50.0%
Successors Count Percentage
COPY_FREE_VARS 80 50.0%
RESUME_CHECK 60 37.5%
RESUME 20 12.5%

CALL_INTRINSIC_1

Successors and predecessors for CALL_INTRINSIC_1
Predecessors Count Percentage
LIST_EXTEND 80 100.0%
Successors Count Percentage
CALL_FUNCTION_EX 80 100.0%

COMPARE_OP

Successors and predecessors for COMPARE_OP
Predecessors Count Percentage
LOAD_CONST 40 100.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 20 50.0%
COMPARE_OP_INT 20 50.0%

COPY_FREE_VARS

Successors and predecessors for COPY_FREE_VARS
Predecessors Count Percentage
CALL_FUNCTION_EX 80 100.0%
Successors Count Percentage
RESUME_CHECK 60 75.0%
RESUME 20 25.0%

ENTER_EXECUTOR

Successors and predecessors for ENTER_EXECUTOR
Predecessors Count Percentage
POP_EXCEPT 300 100.0%
Successors Count Percentage
PUSH_EXC_INFO 260 86.7%
POP_TOP 40 13.3%

FOR_ITER

Successors and predecessors for FOR_ITER
Predecessors Count Percentage
GET_ITER 20 50.0%
JUMP_BACKWARD 20 50.0%
Successors Count Percentage
STORE_FAST 20 50.0%
FOR_ITER_RANGE 20 50.0%

GET_AWAITABLE

Successors and predecessors for GET_AWAITABLE
Predecessors Count Percentage
RETURN_GENERATOR 155,381,760 100.0%
Successors Count Percentage
LOAD_CONST 155,381,760 100.0%

JUMP_BACKWARD

Successors and predecessors for JUMP_BACKWARD
Predecessors Count Percentage
POP_EXCEPT 340 100.0%
Successors Count Percentage
FOR_ITER_RANGE 300 88.2%
PUSH_EXC_INFO 20 5.9%
FOR_ITER 20 5.9%

LIST_EXTEND

Successors and predecessors for LIST_EXTEND
Predecessors Count Percentage
LOAD_DEREF 80 100.0%
Successors Count Percentage
CALL_INTRINSIC_1 80 100.0%

LOAD_ATTR

Successors and predecessors for LOAD_ATTR
Predecessors Count Percentage
LOAD_GLOBAL 60 37.5%
LOAD_GLOBAL_MODULE 60 37.5%
LOAD_FAST 40 25.0%
Successors Count Percentage
PUSH_NULL 60 37.5%
LOAD_ATTR_MODULE 60 37.5%
LOAD_CONST 20 12.5%
LOAD_ATTR_METHOD_NO_DICT 20 12.5%

LOAD_CONST

Successors and predecessors for LOAD_CONST
Predecessors Count Percentage
LOAD_FAST 310,764,160 66.7%
GET_AWAITABLE 155,381,760 33.3%
LOAD_ATTR_METHOD_NO_DICT 340 0.0%
LOAD_GLOBAL_MODULE 340 0.0%
LOAD_ATTR 20 0.0%
Successors Count Percentage
COMPARE_OP_INT 155,382,360 33.3%
BINARY_OP_SUBTRACT_INT 155,381,680 33.3%
SEND_GEN 155,381,680 33.3%
CALL_METHOD_DESCRIPTOR_O 320 0.0%
CALL_PY_EXACT_ARGS 320 0.0%

LOAD_DEREF

Successors and predecessors for LOAD_DEREF
Predecessors Count Percentage
NOP 80 33.3%
BUILD_LIST 80 33.3%
RESUME_CHECK 60 25.0%
RESUME 20 8.3%
Successors Count Percentage
PUSH_NULL 160 66.7%
LIST_EXTEND 80 33.3%

LOAD_FAST

Successors and predecessors for LOAD_FAST
Predecessors Count Percentage
RESUME_CHECK 155,382,380 40.0%
LOAD_GLOBAL_MODULE 155,381,720 40.0%
POP_JUMP_IF_FALSE 77,691,520 20.0%
NOP 360 0.0%
PUSH_NULL 160 0.0%
Successors Count Percentage
LOAD_CONST 310,764,160 80.0%
RETURN_VALUE 77,691,520 20.0%
LOAD_ATTR_METHOD_NO_DICT 320 0.0%
GET_ITER 80 0.0%
BUILD_LIST 80 0.0%

LOAD_GLOBAL

Successors and predecessors for LOAD_GLOBAL
Predecessors Count Percentage
STORE_FAST 80 25.0%
END_SEND 40 12.5%
PUSH_EXC_INFO 40 12.5%
RETURN_VALUE 40 12.5%
POP_JUMP_IF_FALSE 40 12.5%
Successors Count Percentage
LOAD_GLOBAL_MODULE 120 37.5%
LOAD_ATTR 60 18.8%
LOAD_FAST 60 18.8%
LOAD_GLOBAL_BUILTIN 40 12.5%
CHECK_EXC_MATCH 20 6.2%

POP_JUMP_IF_FALSE

Successors and predecessors for POP_JUMP_IF_FALSE
Predecessors Count Percentage
COMPARE_OP_INT 155,382,380 100.0%
CHECK_EXC_MATCH 640 0.0%
COMPARE_OP 20 0.0%
Successors Count Percentage
LOAD_FAST 77,691,520 50.0%
LOAD_GLOBAL_MODULE 77,690,840 50.0%
POP_TOP 640 0.0%
LOAD_GLOBAL 40 0.0%

SEND

Successors and predecessors for SEND
Predecessors Count Percentage
LOAD_CONST 80 100.0%
Successors Count Percentage
POP_TOP 40 50.0%
SEND_GEN 40 50.0%

STORE_FAST

Successors and predecessors for STORE_FAST
Predecessors Count Percentage
RETURN_GENERATOR 360 40.9%
FOR_ITER_RANGE 340 38.6%
CALL_BUILTIN_CLASS 60 6.8%
CALL_NON_PY_GENERAL 60 6.8%
CALL 40 4.5%
Successors Count Percentage
NOP 360 40.9%
LOAD_GLOBAL_MODULE 360 40.9%
LOAD_FAST 80 9.1%
LOAD_GLOBAL 80 9.1%

RESUME

Successors and predecessors for RESUME
Predecessors Count Percentage
POP_TOP 20 33.3%
CALL_FUNCTION_EX 20 33.3%
COPY_FREE_VARS 20 33.3%
Successors Count Percentage
LOAD_DEREF 20 33.3%
LOAD_FAST 20 33.3%
LOAD_GLOBAL 20 33.3%

BINARY_OP_ADD_INT

Successors and predecessors for BINARY_OP_ADD_INT
Predecessors Count Percentage
END_SEND 77,690,840 100.0%
BINARY_OP 20 0.0%
Successors Count Percentage
RETURN_VALUE 77,690,860 100.0%

BINARY_OP_SUBTRACT_FLOAT

Successors and predecessors for BINARY_OP_SUBTRACT_FLOAT
Predecessors Count Percentage
LOAD_FAST 40 66.7%
BINARY_OP 20 33.3%
Successors Count Percentage
RETURN_VALUE 60 100.0%

BINARY_OP_SUBTRACT_INT

Successors and predecessors for BINARY_OP_SUBTRACT_INT
Predecessors Count Percentage
LOAD_CONST 155,381,680 100.0%
BINARY_OP 40 0.0%
Successors Count Percentage
CALL_PY_EXACT_ARGS 155,381,680 100.0%
CALL 40 0.0%

CALL_BUILTIN_CLASS

Successors and predecessors for CALL_BUILTIN_CLASS
Predecessors Count Percentage
LOAD_FAST 40 66.7%
CALL 20 33.3%
Successors Count Percentage
STORE_FAST 60 100.0%

CALL_METHOD_DESCRIPTOR_O

Successors and predecessors for CALL_METHOD_DESCRIPTOR_O
Predecessors Count Percentage
LOAD_CONST 320 94.1%
CALL 20 5.9%
Successors Count Percentage
PUSH_EXC_INFO 340 100.0%

CALL_NON_PY_GENERAL

Successors and predecessors for CALL_NON_PY_GENERAL
Predecessors Count Percentage
PUSH_NULL 120 66.7%
CALL 60 33.3%
Successors Count Percentage
POP_TOP 60 33.3%
LOAD_FAST 60 33.3%
STORE_FAST 60 33.3%

CALL_PY_EXACT_ARGS

Successors and predecessors for CALL_PY_EXACT_ARGS
Predecessors Count Percentage
BINARY_OP_SUBTRACT_INT 155,381,680 100.0%
LOAD_CONST 320 0.0%
CALL 60 0.0%
Successors Count Percentage
RETURN_GENERATOR 155,382,060 100.0%

COMPARE_OP_INT

Successors and predecessors for COMPARE_OP_INT
Predecessors Count Percentage
LOAD_CONST 155,382,360 100.0%
COMPARE_OP 20 0.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 155,382,380 100.0%

FOR_ITER_RANGE

Successors and predecessors for FOR_ITER_RANGE
Predecessors Count Percentage
JUMP_BACKWARD 300 78.9%
GET_ITER 60 15.8%
FOR_ITER 20 5.3%
Successors Count Percentage
STORE_FAST 340 89.5%
LOAD_GLOBAL 40 10.5%

LOAD_ATTR_METHOD_NO_DICT

Successors and predecessors for LOAD_ATTR_METHOD_NO_DICT
Predecessors Count Percentage
LOAD_FAST 320 94.1%
LOAD_ATTR 20 5.9%
Successors Count Percentage
LOAD_CONST 340 100.0%

LOAD_ATTR_MODULE

Successors and predecessors for LOAD_ATTR_MODULE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 120 66.7%
LOAD_ATTR 60 33.3%
Successors Count Percentage
PUSH_NULL 180 100.0%

LOAD_GLOBAL_BUILTIN

Successors and predecessors for LOAD_GLOBAL_BUILTIN
Predecessors Count Percentage
PUSH_EXC_INFO 600 88.2%
LOAD_GLOBAL 40 5.9%
RESUME_CHECK 40 5.9%
Successors Count Percentage
CHECK_EXC_MATCH 620 91.2%
LOAD_FAST 60 8.8%

LOAD_GLOBAL_MODULE

Successors and predecessors for LOAD_GLOBAL_MODULE
Predecessors Count Percentage
END_SEND 77,690,840 50.0%
POP_JUMP_IF_FALSE 77,690,840 50.0%
STORE_FAST 360 0.0%
LOAD_GLOBAL 120 0.0%
POP_TOP 40 0.0%
Successors Count Percentage
LOAD_FAST 155,381,720 100.0%
LOAD_CONST 340 0.0%
LOAD_ATTR_MODULE 120 0.0%
LOAD_ATTR 60 0.0%

RESUME_CHECK

Successors and predecessors for RESUME_CHECK
Predecessors Count Percentage
POP_TOP 155,382,380 100.0%
CALL_FUNCTION_EX 60 0.0%
COPY_FREE_VARS 60 0.0%
Successors Count Percentage
LOAD_FAST 155,382,380 100.0%
LOAD_DEREF 60 0.0%
LOAD_GLOBAL_BUILTIN 40 0.0%
LOAD_GLOBAL 20 0.0%

SEND_GEN

Successors and predecessors for SEND_GEN
Predecessors Count Percentage
LOAD_CONST 155,381,680 100.0%
SEND 40 0.0%
Successors Count Percentage
POP_TOP 155,381,720 100.0%

Specialization stats

Specialization stats by family

BINARY_OP

specialization stats for BINARY_OP family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

80 0.0%
hit

Specialized instructions that complete.

233,072,640 100.0%
Success Count Ratio
Success 80 100.0%
Failure 0 0.0%

CALL

specialization stats for CALL family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

160 0.0%
hit

Specialized instructions that complete.

155,382,460 100.0%
Success Count Ratio
Success 160 100.0%
Failure 0 0.0%

COMPARE_OP

specialization stats for COMPARE_OP family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

20 0.0%
hit

Specialized instructions that complete.

155,382,380 100.0%
Success Count Ratio
Success 20 100.0%
Failure 0 0.0%

FOR_ITER

specialization stats for FOR_ITER family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

20 4.8%
hit

Specialized instructions that complete.

380 90.5%
Success Count Ratio
Success 20 100.0%
Failure 0 0.0%

LOAD_ATTR

specialization stats for LOAD_ATTR family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

80 11.8%
hit

Specialized instructions that complete.

520 76.5%
Success Count Ratio
Success 80 100.0%
Failure 0 0.0%

LOAD_GLOBAL

specialization stats for LOAD_GLOBAL family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

160 0.0%
hit

Specialized instructions that complete.

155,382,920 100.0%
Success Count Ratio
Success 160 100.0%
Failure 0 0.0%

POP_JUMP_IF_FALSE

specialization stats for POP_JUMP_IF_FALSE family

SEND

specialization stats for SEND family
Kind Count Ratio
deferred

Lists the number of "deferred" (i.e. not specialized) instructions executed.

40 0.0%
hit

Specialized instructions that complete.

155,381,720 100.0%
Success Count Ratio
Success 40 100.0%
Failure 0 0.0%

Specialization effectiveness

specialization effectiveness

All entries are execution counts. Should add up to the total number of Tier 1 instructions executed.

Instructions Count Ratio
Basic

Instructions that are not and cannot be specialized, e.g. LOAD_FAST.

1,631,520,580 58.3%
Not specialized

Instructions that could be specialized but aren't, e.g. LOAD_ATTR, BINARY_SLICE.

155,384,160 5.6%
Specialized hits

Specialized instructions, e.g. LOAD_ATTR_MODULE that complete.

1,009,985,700 36.1%
Specialized misses

Specialized instructions, e.g. LOAD_ATTR_MODULE that deopt.

0 0.0%

Deferred by instruction

Breakdown of deferred (not specialized) instruction counts by family
Name Count Ratio
CALL 160 28.6%
LOAD_GLOBAL 160 28.6%
BINARY_OP 80 14.3%
LOAD_ATTR 80 14.3%
SEND 40 7.1%
COMPARE_OP 20 3.6%
FOR_ITER 20 3.6%
BINARY_SLICE 0 0.0%
STORE_SLICE 0 0.0%
CACHE 0 0.0%

Misses by instruction

Breakdown of misses (specialized deopts) instruction counts by family

Call stats

Inlined calls and frame stats

This shows what fraction of calls to Python functions are inlined (i.e. not having a call at the C level) and for those that are not, where the call comes from. The various categories overlap.

Also includes the count of frame objects created.

Count Ratio
Calls to PyEval_EvalDefault 640 0.0%
Calls to Python functions inlined 310,764,320 100.0%
Calls via PyEval_EvalFrame (total) 640 0.0%
Calls via PyEval_EvalFrame (vector) 0 0.0%
Calls via PyEval_EvalFrame (generator) 640 0.0%
Calls via PyEval_EvalFrame (legacy) 0 0.0%
Calls via PyEval_EvalFrame (function vectorcall) 0 0.0%
Calls via PyEval_EvalFrame (build class) 0 0.0%
Calls via PyEval_EvalFrame (slot) 0 0.0%
Calls via PyEval_EvalFrame (function ex) 160 0.0%
Calls via PyEval_EvalFrame (api) 0 0.0%
Calls via PyEval_EvalFrame (method) 0 0.0%
Frame objects created 80 0.0%
Frames pushed 155,382,560 50.0%

Object stats

Allocations, frees and dict materializatons

Below, "allocations" means "allocations that are not from a freelist". Total allocations = "Allocations from freelist" + "Allocations".

"Inline values" is the number of values arrays inlined into objects.

The cache hit/miss numbers are for the MRO cache, split into dunder and other names.

Count Ratio
Allocations from freelist 960 0.0%
Frees to freelist 900
Allocations 155,624,680 100.0%
Allocations to 512 bytes 155,624,660 100.0%
Allocations to 4 kbytes 20 0.0%
Allocations over 4 kbytes 0 0.0%
Frees 155,624,641
Inline values 0
Interpreter increfs 466,149,860 100.0%
Interpreter decrefs 621,774,260 100.0%
Increfs 4,800 0.0%
Decrefs 5,868 0.0%
Materialize dict (on request) 0
Materialize dict (new key) 0
Materialize dict (too big) 0
Materialize dict (str subclass) 0
Method cache hits 60
Method cache misses 40
Method cache collisions 29
Method cache dunder hits 0
Method cache dunder misses 0

GC stats

GC collections and effectiveness

Collected/visits gives some measure of efficiency.

Generation Collections Objects collected Object visits
0 0 0 0
1 0 0 0
2 0 0 0

Optimization (Tier 2) stats

statistics about the Tier 2 optimizer
Count Ratio
Optimization attempts

The number of times a potential trace is identified. Specifically, this occurs in the JUMP BACKWARD instruction when the counter reaches a threshold.

20
Traces created

The number of traces that were successfully created.

20 100.0%
Trace stack overflow

A trace is truncated because it would require more than 5 stack frames.

0 0.0%
Trace stack underflow

A potential trace is abandoned because it pops more frames than it pushes.

0 0.0%
Trace too long

A trace is truncated because it is longer than the instruction buffer.

0 0.0%
Trace too short

A potential trace is abandoced because it it too short.

0 0.0%
Inner loop found

A trace is truncated because it has an inner loop

20 100.0%
Recursive call

A trace is truncated because it has a recursive call.

0 0.0%
Low confidence

A trace is abandoned because the likelihood of the jump to top being taken is too low.

0 0.0%
Executors invalidated

The number of executors that were invalidated due to watched dictionary changes.

0 0.0%
Traces executed

The number of traces that were executed

360
Uops executed

The total number of uops (micro-operations) that were executed

7,520 2,088.9%
Count Ratio
Optimizer attempts

The number of times the trace optimizer (_Py_uop_analyze_and_optimize) was run.

20
Optimizer successes

The number of traces that were successfully optimized.

20 100.0%
Optimizer no memory

The number of optimizations that failed due to no memory.

0 0.0%
Remove globals builtins changed

The builtins changed during optimization

0 0.0%
Remove globals incorrect keys

The keys in the globals dictionary aren't what was expected

0 0.0%

Trace length histogram

trace length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 0 0.0%
<= 8 0 0.0%
<= 16 0 0.0%
<= 32 0 0.0%
<= 64 20 100.0%

Optimized trace length histogram

optimized trace length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 0 0.0%
<= 8 0 0.0%
<= 16 0 0.0%
<= 32 20 100.0%

Trace run length histogram

trace run length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 0 0.0%
<= 8 40 11.1%
<= 16 0 0.0%
<= 32 280 77.8%

Uop execution stats

uop execution stats
Name Count Self Cumulative Miss ratio
_SET_IP 840 11.2% 11.2%
_LOAD_CONST_INLINE_BORROW 560 7.4% 18.6%
_GUARD_NOT_EXHAUSTED_RANGE 320 4.3% 22.9% 12.5%
_ITER_CHECK_RANGE 320 4.3% 27.1%
_START_EXECUTOR 320 4.3% 31.4%
_TIER2_RESUME_CHECK 320 4.3% 35.6%
_RETURN_GENERATOR 280 3.7% 39.4%
_CALL_METHOD_DESCRIPTOR_O 280 3.7% 43.1%
_CHECK_FUNCTION 280 3.7% 46.8%
_CHECK_FUNCTION_EXACT_ARGS 280 3.7% 50.5%
_CHECK_STACK_SPACE_OPERAND 280 3.7% 54.3%
_CHECK_VALIDITY 280 3.7% 58.0%
_ERROR_POP_N 280 3.7% 61.7%
_GUARD_TYPE_VERSION 280 3.7% 65.4%
_INIT_CALL_PY_EXACT_ARGS_1 280 3.7% 69.1%
_ITER_NEXT_RANGE 280 3.7% 72.9%
_LOAD_ATTR_METHOD_NO_DICT 280 3.7% 76.6%
_LOAD_CONST_INLINE_WITH_NULL 280 3.7% 80.3%
_LOAD_FAST_4 280 3.7% 84.0%
_PUSH_FRAME 280 3.7% 87.8%
_SAVE_RETURN_OFFSET 280 3.7% 91.5%
_STORE_FAST_3 280 3.7% 95.2%
_STORE_FAST_4 280 3.7% 98.9%
_EXIT_TRACE 40 0.5% 99.5%
_COLD_EXIT 40 0.5% 100.0%

Pair counts

Pair counts for top 100 Non-JIT uop pairs

Pairs of specialized operations that deoptimize and are then followed by the corresponding unspecialized instruction are not counted as pairs.

Pair Count Self Cumulative
_LOAD_CONST_INLINE_BORROW _SET_IP 560 7.4% 7.4%
_ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE 320 4.3% 11.7%
_START_EXECUTOR _TIER2_RESUME_CHECK 320 4.3% 16.0%
_TIER2_RESUME_CHECK _ITER_CHECK_RANGE 320 4.3% 20.2%
_RETURN_GENERATOR _CHECK_VALIDITY 280 3.7% 23.9%
_SET_IP _RETURN_GENERATOR 280 3.7% 27.7%
_SET_IP _CALL_METHOD_DESCRIPTOR_O 280 3.7% 31.4%
_SET_IP _CHECK_FUNCTION_EXACT_ARGS 280 3.7% 35.1%
_CALL_METHOD_DESCRIPTOR_O _ERROR_POP_N 280 3.7% 38.8%
_CHECK_FUNCTION _LOAD_CONST_INLINE_WITH_NULL 280 3.7% 42.6%
_CHECK_FUNCTION_EXACT_ARGS _CHECK_STACK_SPACE_OPERAND 280 3.7% 46.3%
_CHECK_STACK_SPACE_OPERAND _INIT_CALL_PY_EXACT_ARGS_1 280 3.7% 50.0%
_CHECK_VALIDITY _STORE_FAST_4 280 3.7% 53.7%
_GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE 280 3.7% 57.4%
_GUARD_TYPE_VERSION _LOAD_ATTR_METHOD_NO_DICT 280 3.7% 61.2%
_INIT_CALL_PY_EXACT_ARGS_1 _SAVE_RETURN_OFFSET 280 3.7% 64.9%
_ITER_NEXT_RANGE _STORE_FAST_3 280 3.7% 68.6%
_LOAD_ATTR_METHOD_NO_DICT _LOAD_CONST_INLINE_BORROW 280 3.7% 72.3%
_LOAD_CONST_INLINE_WITH_NULL _LOAD_CONST_INLINE_BORROW 280 3.7% 76.1%
_LOAD_FAST_4 _GUARD_TYPE_VERSION 280 3.7% 79.8%
_PUSH_FRAME _SET_IP 280 3.7% 83.5%
_SAVE_RETURN_OFFSET _PUSH_FRAME 280 3.7% 87.2%
_STORE_FAST_3 _CHECK_FUNCTION 280 3.7% 91.0%
_STORE_FAST_4 _LOAD_FAST_4 280 3.7% 94.7%
_GUARD_NOT_EXHAUSTED_RANGE _EXIT_TRACE 40 0.5% 95.2%

Unsupported opcodes

unsupported opcodes

Optimizer errored out with opcode

Optimization stopped after encountering this opcode

Rare events

Counts of rare/unlikely events
Event Count
set class

Setting an object's class, obj.__class__ = ...

0
set bases

Setting the bases of a class, cls.__bases__ = ...

0
set eval frame func

Setting the PEP 523 frame eval function _PyInterpreterState_SetFrameEvalFunc()

0
builtin dict

Modifying the builtins, __builtins__.__dict__[var] = ...

0
func modification

Modifying a function, e.g. func.__defaults__ = ..., etc.

0
watched dict modification

A watched dict has been modified

0
watched globals modification

A watched globals() dict has been modified

0

Meta stats

Meta statistics
Count
Number of data files 20

Stats gathered on: 2024-06-16