Skip to content

Latest commit

 

History

History
6169 lines (5554 loc) · 107 KB

bm-20241214-vultr-x86_64-python-0ac40acec045c4ce780c-3.14.0a2+-0ac40ac-pystats-coroutines.md

File metadata and controls

6169 lines (5554 loc) · 107 KB

Pystats results

  • benchmark: coroutines
  • fork: python
  • ref: 0ac40acec045c4ce780cf7d887fcbe4c661e82b7
  • commit hash: 0ac40ac
  • commit date: 2024-12-14T17:25:49+02: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_FAST 291,343,440 13.9% 13.9%
LOAD_SMALL_INT 233,073,660 11.1% 25.0%
POP_TOP 116,537,580 5.6% 30.6%
LOAD_CONST_IMMORTAL 116,537,400 5.6% 36.1%
POP_JUMP_IF_FALSE 116,537,340 5.6% 41.7%
RETURN_VALUE 116,537,220 5.6% 47.2%
RESUME_CHECK 116,537,220 5.6% 52.8%
LOAD_GLOBAL_MODULE 116,537,100 5.6% 58.3%
CALL_PY_EXACT_ARGS 116,537,040 5.6% 63.9%
RETURN_GENERATOR 116,536,800 5.6% 69.4%
COMPARE_OP_INT 116,536,800 5.6% 75.0%
END_SEND 116,536,320 5.6% 80.6%
GET_AWAITABLE 116,536,320 5.6% 86.1%
BINARY_OP_SUBTRACT_INT 116,536,320 5.6% 91.7%
SEND_GEN 116,536,320 5.6% 97.2%
BINARY_OP_ADD_INT 58,268,160 2.8% 100.0%
STORE_FAST 1,620 0.0% 100.0%
NOP 1,020 0.0% 100.0%
LOAD_ATTR_METHOD_NO_DICT 600 0.0% 100.0%
JUMP_BACKWARD 540 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O 540 0.0% 100.0%
FOR_ITER_RANGE 540 0.0% 100.0%
LOAD_GLOBAL_BUILTIN 540 0.0% 100.0%
CHECK_EXC_MATCH 480 0.0% 100.0%
INTERPRETER_EXIT 480 0.0% 100.0%
POP_EXCEPT 480 0.0% 100.0%
PUSH_EXC_INFO 480 0.0% 100.0%
PUSH_NULL 420 0.0% 100.0%
LOAD_ATTR 300 0.0% 100.0%
LOAD_FAST_LOAD_FAST 300 0.0% 100.0%
CALL_NON_PY_GENERAL 300 0.0% 100.0%
CALL 260 0.0% 100.0%
LOAD_ATTR_INSTANCE_VALUE 240 0.0% 100.0%
LOAD_ATTR_MODULE 240 0.0% 100.0%
BUILD_TUPLE 120 0.0% 100.0%
CALL_FUNCTION_EX 120 0.0% 100.0%
LOAD_CONST 120 0.0% 100.0%
LOAD_DEREF 120 0.0% 100.0%
LOAD_GLOBAL 120 0.0% 100.0%
LOAD_ATTR_METHOD_WITH_VALUES 120 0.0% 100.0%
TO_BOOL 100 0.0% 100.0%
GET_ITER 60 0.0% 100.0%
MAKE_FUNCTION 60 0.0% 100.0%
BUILD_LIST 60 0.0% 100.0%
CALL_INTRINSIC_1 60 0.0% 100.0%
COPY_FREE_VARS 60 0.0% 100.0%
FOR_ITER 60 0.0% 100.0%
IS_OP 60 0.0% 100.0%
JUMP_FORWARD 60 0.0% 100.0%
LIST_EXTEND 60 0.0% 100.0%
MAKE_CELL 60 0.0% 100.0%
POP_JUMP_IF_NOT_NONE 60 0.0% 100.0%
POP_JUMP_IF_TRUE 60 0.0% 100.0%
SET_FUNCTION_ATTRIBUTE 60 0.0% 100.0%
STORE_DEREF 60 0.0% 100.0%
STORE_FAST_STORE_FAST 60 0.0% 100.0%
BINARY_OP_SUBTRACT_FLOAT 60 0.0% 100.0%
BINARY_SUBSCR_TUPLE_INT 60 0.0% 100.0%
CALL_BUILTIN_CLASS 60 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_NOARGS 60 0.0% 100.0%
CALL_PY_GENERAL 60 0.0% 100.0%
TO_BOOL_BOOL 60 0.0% 100.0%
UNPACK_SEQUENCE_TWO_TUPLE 60 0.0% 100.0%
BINARY_SUBSCR 20 0.0% 100.0%
BINARY_OP 20 0.0% 100.0%
UNPACK_SEQUENCE 20 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_SMALL_INT 233,073,180 11.1% 11.1%
RESUME_CHECK LOAD_FAST 116,536,980 5.6% 16.7%
POP_TOP RESUME_CHECK 116,536,800 5.6% 22.2%
LOAD_SMALL_INT COMPARE_OP_INT 116,536,800 5.6% 27.8%
CALL_PY_EXACT_ARGS RETURN_GENERATOR 116,536,800 5.6% 33.3%
COMPARE_OP_INT POP_JUMP_IF_FALSE 116,536,800 5.6% 38.9%
RETURN_GENERATOR GET_AWAITABLE 116,536,320 5.6% 44.4%
RETURN_VALUE END_SEND 116,536,320 5.6% 50.0%
GET_AWAITABLE LOAD_CONST_IMMORTAL 116,536,320 5.6% 55.6%
LOAD_SMALL_INT BINARY_OP_SUBTRACT_INT 116,536,320 5.6% 61.1%
BINARY_OP_SUBTRACT_INT CALL_PY_EXACT_ARGS 116,536,320 5.6% 66.7%
LOAD_CONST_IMMORTAL SEND_GEN 116,536,320 5.6% 72.2%
LOAD_GLOBAL_MODULE LOAD_FAST 116,536,320 5.6% 77.8%
SEND_GEN POP_TOP 116,536,320 5.6% 83.3%
LOAD_FAST RETURN_VALUE 58,268,700 2.8% 86.1%
POP_JUMP_IF_FALSE LOAD_FAST 58,268,700 2.8% 88.9%
END_SEND BINARY_OP_ADD_INT 58,268,160 2.8% 91.7%
END_SEND LOAD_GLOBAL_MODULE 58,268,160 2.8% 94.4%
POP_JUMP_IF_FALSE LOAD_GLOBAL_MODULE 58,268,160 2.8% 97.2%
BINARY_OP_ADD_INT RETURN_VALUE 58,268,160 2.8% 100.0%
STORE_FAST LOAD_GLOBAL_MODULE 560 0.0% 100.0%
NOP LOAD_FAST 540 0.0% 100.0%
CACHE POP_TOP 480 0.0% 100.0%
CHECK_EXC_MATCH POP_JUMP_IF_FALSE 480 0.0% 100.0%
NOP NOP 480 0.0% 100.0%
POP_EXCEPT JUMP_BACKWARD 480 0.0% 100.0%
POP_TOP POP_EXCEPT 480 0.0% 100.0%
PUSH_EXC_INFO LOAD_GLOBAL_BUILTIN 480 0.0% 100.0%
RETURN_GENERATOR STORE_FAST 480 0.0% 100.0%
RETURN_VALUE INTERPRETER_EXIT 480 0.0% 100.0%
JUMP_BACKWARD FOR_ITER_RANGE 480 0.0% 100.0%
LOAD_FAST LOAD_ATTR_METHOD_NO_DICT 480 0.0% 100.0%
LOAD_SMALL_INT CALL_PY_EXACT_ARGS 480 0.0% 100.0%
POP_JUMP_IF_FALSE POP_TOP 480 0.0% 100.0%
STORE_FAST NOP 480 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O PUSH_EXC_INFO 480 0.0% 100.0%
FOR_ITER_RANGE STORE_FAST 480 0.0% 100.0%
LOAD_ATTR_METHOD_NO_DICT LOAD_CONST_IMMORTAL 480 0.0% 100.0%
LOAD_CONST_IMMORTAL CALL_METHOD_DESCRIPTOR_O 480 0.0% 100.0%
LOAD_GLOBAL_BUILTIN CHECK_EXC_MATCH 480 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_SMALL_INT 480 0.0% 100.0%
STORE_FAST LOAD_FAST 300 0.0% 100.0%
LOAD_ATTR_MODULE PUSH_NULL 240 0.0% 100.0%
POP_TOP LOAD_CONST_IMMORTAL 180 0.0% 100.0%
RETURN_VALUE POP_TOP 180 0.0% 100.0%
RETURN_VALUE STORE_FAST 180 0.0% 100.0%
STORE_FAST LOAD_CONST_IMMORTAL 180 0.0% 100.0%
CALL_PY_EXACT_ARGS RESUME_CHECK 180 0.0% 100.0%
LOAD_CONST_IMMORTAL RETURN_VALUE 180 0.0% 100.0%
PUSH_NULL CALL_NON_PY_GENERAL 160 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_ATTR_MODULE 160 0.0% 100.0%
LOAD_FAST LOAD_ATTR 140 0.0% 100.0%
LOAD_FAST LOAD_ATTR_INSTANCE_VALUE 140 0.0% 100.0%
PUSH_NULL LOAD_FAST 120 0.0% 100.0%
LOAD_FAST PUSH_NULL 120 0.0% 100.0%
LOAD_FAST LOAD_CONST_IMMORTAL 120 0.0% 100.0%
LOAD_CONST_IMMORTAL STORE_FAST 120 0.0% 100.0%
LOAD_CONST_IMMORTAL LOAD_CONST_IMMORTAL 120 0.0% 100.0%
CALL CALL_NON_PY_GENERAL 100 0.0% 100.0%
LOAD_GLOBAL LOAD_GLOBAL_MODULE 100 0.0% 100.0%
PUSH_NULL CALL 80 0.0% 100.0%
CALL CALL_PY_EXACT_ARGS 80 0.0% 100.0%
LOAD_ATTR LOAD_ATTR_MODULE 80 0.0% 100.0%
LOAD_FAST LOAD_ATTR_METHOD_WITH_VALUES 80 0.0% 100.0%
LOAD_FAST_LOAD_FAST CALL_PY_EXACT_ARGS 80 0.0% 100.0%
LOAD_ATTR_INSTANCE_VALUE LOAD_ATTR_METHOD_NO_DICT 80 0.0% 100.0%
LOAD_GLOBAL_MODULE LOAD_ATTR 80 0.0% 100.0%
RESUME_CHECK LOAD_GLOBAL_MODULE 80 0.0% 100.0%
CACHE RESUME_CHECK 60 0.0% 100.0%
GET_ITER FOR_ITER_RANGE 60 0.0% 100.0%
MAKE_FUNCTION SET_FUNCTION_ATTRIBUTE 60 0.0% 100.0%
POP_TOP JUMP_BACKWARD 60 0.0% 100.0%
POP_TOP LOAD_FAST 60 0.0% 100.0%
PUSH_NULL LOAD_FAST_LOAD_FAST 60 0.0% 100.0%
RETURN_VALUE RETURN_VALUE 60 0.0% 100.0%
TO_BOOL POP_JUMP_IF_FALSE 60 0.0% 100.0%
BUILD_LIST LOAD_DEREF 60 0.0% 100.0%
BUILD_TUPLE LOAD_CONST 60 0.0% 100.0%
CALL_FUNCTION_EX RESUME_CHECK 60 0.0% 100.0%
CALL_INTRINSIC_1 CALL_FUNCTION_EX 60 0.0% 100.0%
COPY_FREE_VARS RESUME_CHECK 60 0.0% 100.0%
FOR_ITER LOAD_FAST 60 0.0% 100.0%
IS_OP STORE_FAST 60 0.0% 100.0%
JUMP_BACKWARD FOR_ITER 60 0.0% 100.0%
JUMP_FORWARD LOAD_FAST 60 0.0% 100.0%
LIST_EXTEND CALL_INTRINSIC_1 60 0.0% 100.0%
LOAD_ATTR LOAD_FAST_LOAD_FAST 60 0.0% 100.0%
LOAD_ATTR LOAD_ATTR_INSTANCE_VALUE 60 0.0% 100.0%
LOAD_CONST MAKE_FUNCTION 60 0.0% 100.0%
LOAD_CONST STORE_FAST 60 0.0% 100.0%
LOAD_DEREF PUSH_NULL 60 0.0% 100.0%
LOAD_DEREF LIST_EXTEND 60 0.0% 100.0%
LOAD_FAST GET_ITER 60 0.0% 100.0%
LOAD_FAST BUILD_LIST 60 0.0% 100.0%
LOAD_FAST BUILD_TUPLE 60 0.0% 100.0%
LOAD_FAST CALL_FUNCTION_EX 60 0.0% 100.0%
LOAD_FAST POP_JUMP_IF_NOT_NONE 60 0.0% 100.0%
LOAD_FAST_LOAD_FAST BUILD_TUPLE 60 0.0% 100.0%
LOAD_FAST_LOAD_FAST CALL 60 0.0% 100.0%
MAKE_CELL RESUME_CHECK 60 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 480 88.9%
RESUME_CHECK 60 11.1%

BINARY_SUBSCR

Successors and predecessors for BINARY_SUBSCR
Predecessors Count Percentage
LOAD_SMALL_INT 20 100.0%
Successors Count Percentage
BINARY_SUBSCR_TUPLE_INT 20 100.0%

CHECK_EXC_MATCH

Successors and predecessors for CHECK_EXC_MATCH
Predecessors Count Percentage
LOAD_GLOBAL_BUILTIN 480 100.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 480 100.0%

END_SEND

Successors and predecessors for END_SEND
Predecessors Count Percentage
RETURN_VALUE 116,536,320 100.0%
Successors Count Percentage
BINARY_OP_ADD_INT 58,268,160 50.0%
LOAD_GLOBAL_MODULE 58,268,160 50.0%

GET_ITER

Successors and predecessors for GET_ITER
Predecessors Count Percentage
LOAD_FAST 60 100.0%
Successors Count Percentage
FOR_ITER_RANGE 60 100.0%

INTERPRETER_EXIT

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

MAKE_FUNCTION

Successors and predecessors for MAKE_FUNCTION
Predecessors Count Percentage
LOAD_CONST 60 100.0%
Successors Count Percentage
SET_FUNCTION_ATTRIBUTE 60 100.0%

NOP

Successors and predecessors for NOP
Predecessors Count Percentage
NOP 480 47.1%
STORE_FAST 480 47.1%
POP_JUMP_IF_TRUE 60 5.9%
Successors Count Percentage
LOAD_FAST 540 52.9%
NOP 480 47.1%

POP_EXCEPT

Successors and predecessors for POP_EXCEPT
Predecessors Count Percentage
POP_TOP 480 100.0%
Successors Count Percentage
JUMP_BACKWARD 480 100.0%

POP_TOP

Successors and predecessors for POP_TOP
Predecessors Count Percentage
SEND_GEN 116,536,320 100.0%
CACHE 480 0.0%
POP_JUMP_IF_FALSE 480 0.0%
RETURN_VALUE 180 0.0%
CALL_METHOD_DESCRIPTOR_O 60 0.0%
Successors Count Percentage
RESUME_CHECK 116,536,800 100.0%
POP_EXCEPT 480 0.0%
LOAD_CONST_IMMORTAL 180 0.0%
JUMP_BACKWARD 60 0.0%
LOAD_FAST 60 0.0%

PUSH_EXC_INFO

Successors and predecessors for PUSH_EXC_INFO
Predecessors Count Percentage
CALL_METHOD_DESCRIPTOR_O 480 100.0%
Successors Count Percentage
LOAD_GLOBAL_BUILTIN 480 100.0%

PUSH_NULL

Successors and predecessors for PUSH_NULL
Predecessors Count Percentage
LOAD_ATTR_MODULE 240 57.1%
LOAD_FAST 120 28.6%
LOAD_DEREF 60 14.3%
Successors Count Percentage
CALL_NON_PY_GENERAL 160 38.1%
LOAD_FAST 120 28.6%
CALL 80 19.0%
LOAD_FAST_LOAD_FAST 60 14.3%

RETURN_GENERATOR

Successors and predecessors for RETURN_GENERATOR
Predecessors Count Percentage
CALL_PY_EXACT_ARGS 116,536,800 100.0%
Successors Count Percentage
GET_AWAITABLE 116,536,320 100.0%
STORE_FAST 480 0.0%

RETURN_VALUE

Successors and predecessors for RETURN_VALUE
Predecessors Count Percentage
LOAD_FAST 58,268,700 50.0%
BINARY_OP_ADD_INT 58,268,160 50.0%
LOAD_CONST_IMMORTAL 180 0.0%
RETURN_VALUE 60 0.0%
BINARY_OP_SUBTRACT_FLOAT 60 0.0%
Successors Count Percentage
END_SEND 116,536,320 100.0%
INTERPRETER_EXIT 480 0.0%
POP_TOP 180 0.0%
STORE_FAST 180 0.0%
RETURN_VALUE 60 0.0%

TO_BOOL

Successors and predecessors for TO_BOOL
Predecessors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 60 60.0%
TO_BOOL 20 20.0%
LOAD_FAST 20 20.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 60 60.0%
TO_BOOL 20 20.0%
TO_BOOL_BOOL 20 20.0%

BINARY_OP

Successors and predecessors for BINARY_OP
Predecessors Count Percentage
LOAD_FAST 20 100.0%
Successors Count Percentage
BINARY_OP_SUBTRACT_FLOAT 20 100.0%

BUILD_LIST

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

BUILD_TUPLE

Successors and predecessors for BUILD_TUPLE
Predecessors Count Percentage
LOAD_FAST 60 50.0%
LOAD_FAST_LOAD_FAST 60 50.0%
Successors Count Percentage
LOAD_CONST 60 50.0%
CALL_METHOD_DESCRIPTOR_O 40 33.3%
CALL 20 16.7%

CALL

Successors and predecessors for CALL
Predecessors Count Percentage
PUSH_NULL 80 30.8%
LOAD_FAST_LOAD_FAST 60 23.1%
LOAD_CONST_IMMORTAL 40 15.4%
BUILD_TUPLE 20 7.7%
LOAD_FAST 20 7.7%
Successors Count Percentage
CALL_NON_PY_GENERAL 100 38.5%
CALL_PY_EXACT_ARGS 80 30.8%
CALL_BUILTIN_CLASS 20 7.7%
CALL_METHOD_DESCRIPTOR_NOARGS 20 7.7%
CALL_METHOD_DESCRIPTOR_O 20 7.7%

CALL_FUNCTION_EX

Successors and predecessors for CALL_FUNCTION_EX
Predecessors Count Percentage
CALL_INTRINSIC_1 60 50.0%
LOAD_FAST 60 50.0%
Successors Count Percentage
RESUME_CHECK 60 100.0%

CALL_INTRINSIC_1

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

COPY_FREE_VARS

Successors and predecessors for COPY_FREE_VARS
Predecessors Count Percentage
CALL_PY_EXACT_ARGS 60 100.0%
Successors Count Percentage
RESUME_CHECK 60 100.0%

FOR_ITER

Successors and predecessors for FOR_ITER
Predecessors Count Percentage
JUMP_BACKWARD 60 100.0%
Successors Count Percentage
LOAD_FAST 60 100.0%

GET_AWAITABLE

Successors and predecessors for GET_AWAITABLE
Predecessors Count Percentage
RETURN_GENERATOR 116,536,320 100.0%
Successors Count Percentage
LOAD_CONST_IMMORTAL 116,536,320 100.0%

IS_OP

Successors and predecessors for IS_OP
Predecessors Count Percentage
LOAD_CONST_IMMORTAL 60 100.0%
Successors Count Percentage
STORE_FAST 60 100.0%

JUMP_BACKWARD

Successors and predecessors for JUMP_BACKWARD
Predecessors Count Percentage
POP_EXCEPT 480 88.9%
POP_TOP 60 11.1%
Successors Count Percentage
FOR_ITER_RANGE 480 88.9%
FOR_ITER 60 11.1%

JUMP_FORWARD

Successors and predecessors for JUMP_FORWARD
Predecessors Count Percentage
STORE_FAST 60 100.0%
Successors Count Percentage
LOAD_FAST 60 100.0%

LIST_EXTEND

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

LOAD_ATTR

Successors and predecessors for LOAD_ATTR
Predecessors Count Percentage
LOAD_FAST 140 46.7%
LOAD_GLOBAL_MODULE 80 26.7%
LOAD_ATTR_INSTANCE_VALUE 40 13.3%
LOAD_ATTR 20 6.7%
LOAD_FAST_LOAD_FAST 20 6.7%
Successors Count Percentage
LOAD_ATTR_MODULE 80 26.7%
LOAD_FAST_LOAD_FAST 60 20.0%
LOAD_ATTR_INSTANCE_VALUE 60 20.0%
LOAD_ATTR_METHOD_NO_DICT 40 13.3%
LOAD_ATTR_METHOD_WITH_VALUES 40 13.3%

LOAD_CONST

Successors and predecessors for LOAD_CONST
Predecessors Count Percentage
BUILD_TUPLE 60 50.0%
POP_JUMP_IF_NOT_NONE 60 50.0%
Successors Count Percentage
MAKE_FUNCTION 60 50.0%
STORE_FAST 60 50.0%

LOAD_DEREF

Successors and predecessors for LOAD_DEREF
Predecessors Count Percentage
BUILD_LIST 60 50.0%
RESUME_CHECK 60 50.0%
Successors Count Percentage
PUSH_NULL 60 50.0%
LIST_EXTEND 60 50.0%

LOAD_FAST

Successors and predecessors for LOAD_FAST
Predecessors Count Percentage
RESUME_CHECK 116,536,980 40.0%
LOAD_GLOBAL_MODULE 116,536,320 40.0%
POP_JUMP_IF_FALSE 58,268,700 20.0%
NOP 540 0.0%
STORE_FAST 300 0.0%
Successors Count Percentage
LOAD_SMALL_INT 233,073,180 80.0%
RETURN_VALUE 58,268,700 20.0%
LOAD_ATTR_METHOD_NO_DICT 480 0.0%
LOAD_ATTR 140 0.0%
LOAD_ATTR_INSTANCE_VALUE 140 0.0%

LOAD_FAST_LOAD_FAST

Successors and predecessors for LOAD_FAST_LOAD_FAST
Predecessors Count Percentage
PUSH_NULL 60 20.0%
LOAD_ATTR 60 20.0%
LOAD_ATTR_METHOD_NO_DICT 60 20.0%
LOAD_ATTR_METHOD_WITH_VALUES 60 20.0%
LOAD_GLOBAL_MODULE 60 20.0%
Successors Count Percentage
CALL_PY_EXACT_ARGS 80 26.7%
BUILD_TUPLE 60 20.0%
CALL 60 20.0%
CALL_NON_PY_GENERAL 40 13.3%
LOAD_ATTR_INSTANCE_VALUE 40 13.3%

LOAD_GLOBAL

Successors and predecessors for LOAD_GLOBAL
Predecessors Count Percentage
RESUME_CHECK 60 50.0%
STORE_FAST 40 33.3%
FOR_ITER_RANGE 20 16.7%
Successors Count Percentage
LOAD_GLOBAL_MODULE 100 83.3%
LOAD_GLOBAL_BUILTIN 20 16.7%

LOAD_SMALL_INT

Successors and predecessors for LOAD_SMALL_INT
Predecessors Count Percentage
LOAD_FAST 233,073,180 100.0%
LOAD_GLOBAL_MODULE 480 0.0%
Successors Count Percentage
COMPARE_OP_INT 116,536,800 50.0%
BINARY_OP_SUBTRACT_INT 116,536,320 50.0%
CALL_PY_EXACT_ARGS 480 0.0%
BINARY_SUBSCR_TUPLE_INT 40 0.0%
BINARY_SUBSCR 20 0.0%

MAKE_CELL

Successors and predecessors for MAKE_CELL
Predecessors Count Percentage
CALL_PY_GENERAL 60 100.0%
Successors Count Percentage
RESUME_CHECK 60 100.0%

POP_JUMP_IF_FALSE

Successors and predecessors for POP_JUMP_IF_FALSE
Predecessors Count Percentage
COMPARE_OP_INT 116,536,800 100.0%
CHECK_EXC_MATCH 480 0.0%
TO_BOOL 60 0.0%
Successors Count Percentage
LOAD_FAST 58,268,700 50.0%
LOAD_GLOBAL_MODULE 58,268,160 50.0%
POP_TOP 480 0.0%

POP_JUMP_IF_NOT_NONE

Successors and predecessors for POP_JUMP_IF_NOT_NONE
Predecessors Count Percentage
LOAD_FAST 60 100.0%
Successors Count Percentage
LOAD_CONST 60 100.0%

POP_JUMP_IF_TRUE

Successors and predecessors for POP_JUMP_IF_TRUE
Predecessors Count Percentage
TO_BOOL_BOOL 60 100.0%
Successors Count Percentage
NOP 60 100.0%

SET_FUNCTION_ATTRIBUTE

Successors and predecessors for SET_FUNCTION_ATTRIBUTE
Predecessors Count Percentage
MAKE_FUNCTION 60 100.0%
Successors Count Percentage
STORE_FAST 60 100.0%

STORE_DEREF

Successors and predecessors for STORE_DEREF
Predecessors Count Percentage
CALL_NON_PY_GENERAL 60 100.0%
Successors Count Percentage
LOAD_FAST 60 100.0%

STORE_FAST

Successors and predecessors for STORE_FAST
Predecessors Count Percentage
RETURN_GENERATOR 480 29.6%
FOR_ITER_RANGE 480 29.6%
RETURN_VALUE 180 11.1%
LOAD_CONST_IMMORTAL 120 7.4%
IS_OP 60 3.7%
Successors Count Percentage
LOAD_GLOBAL_MODULE 560 34.6%
NOP 480 29.6%
LOAD_FAST 300 18.5%
LOAD_CONST_IMMORTAL 180 11.1%
JUMP_FORWARD 60 3.7%

STORE_FAST_STORE_FAST

Successors and predecessors for STORE_FAST_STORE_FAST
Predecessors Count Percentage
UNPACK_SEQUENCE_TWO_TUPLE 60 100.0%
Successors Count Percentage
LOAD_FAST 60 100.0%

UNPACK_SEQUENCE

Successors and predecessors for UNPACK_SEQUENCE
Predecessors Count Percentage
CALL_METHOD_DESCRIPTOR_NOARGS 20 100.0%
Successors Count Percentage
UNPACK_SEQUENCE_TWO_TUPLE 20 100.0%

BINARY_OP_ADD_INT

Successors and predecessors for BINARY_OP_ADD_INT
Predecessors Count Percentage
END_SEND 58,268,160 100.0%
Successors Count Percentage
RETURN_VALUE 58,268,160 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_SMALL_INT 116,536,320 100.0%
Successors Count Percentage
CALL_PY_EXACT_ARGS 116,536,320 100.0%

BINARY_SUBSCR_TUPLE_INT

Successors and predecessors for BINARY_SUBSCR_TUPLE_INT
Predecessors Count Percentage
LOAD_SMALL_INT 40 66.7%
BINARY_SUBSCR 20 33.3%
Successors Count Percentage
STORE_FAST 60 100.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_NOARGS

Successors and predecessors for CALL_METHOD_DESCRIPTOR_NOARGS
Predecessors Count Percentage
LOAD_ATTR_METHOD_NO_DICT 40 66.7%
CALL 20 33.3%
Successors Count Percentage
UNPACK_SEQUENCE_TWO_TUPLE 40 66.7%
UNPACK_SEQUENCE 20 33.3%

CALL_METHOD_DESCRIPTOR_O

Successors and predecessors for CALL_METHOD_DESCRIPTOR_O
Predecessors Count Percentage
LOAD_CONST_IMMORTAL 480 88.9%
BUILD_TUPLE 40 7.4%
CALL 20 3.7%
Successors Count Percentage
PUSH_EXC_INFO 480 88.9%
POP_TOP 60 11.1%

CALL_NON_PY_GENERAL

Successors and predecessors for CALL_NON_PY_GENERAL
Predecessors Count Percentage
PUSH_NULL 160 53.3%
CALL 100 33.3%
LOAD_FAST_LOAD_FAST 40 13.3%
Successors Count Percentage
POP_TOP 60 20.0%
RETURN_VALUE 60 20.0%
LOAD_FAST 60 20.0%
STORE_DEREF 60 20.0%
STORE_FAST 60 20.0%

CALL_PY_EXACT_ARGS

Successors and predecessors for CALL_PY_EXACT_ARGS
Predecessors Count Percentage
BINARY_OP_SUBTRACT_INT 116,536,320 100.0%
LOAD_SMALL_INT 480 0.0%
CALL 80 0.0%
LOAD_FAST_LOAD_FAST 80 0.0%
LOAD_ATTR_INSTANCE_VALUE 40 0.0%
Successors Count Percentage
RETURN_GENERATOR 116,536,800 100.0%
RESUME_CHECK 180 0.0%
COPY_FREE_VARS 60 0.0%

CALL_PY_GENERAL

Successors and predecessors for CALL_PY_GENERAL
Predecessors Count Percentage
LOAD_CONST_IMMORTAL 40 66.7%
CALL 20 33.3%
Successors Count Percentage
MAKE_CELL 60 100.0%

COMPARE_OP_INT

Successors and predecessors for COMPARE_OP_INT
Predecessors Count Percentage
LOAD_SMALL_INT 116,536,800 100.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 116,536,800 100.0%

FOR_ITER_RANGE

Successors and predecessors for FOR_ITER_RANGE
Predecessors Count Percentage
JUMP_BACKWARD 480 88.9%
GET_ITER 60 11.1%
Successors Count Percentage
STORE_FAST 480 88.9%
LOAD_GLOBAL_MODULE 40 7.4%
LOAD_GLOBAL 20 3.7%

LOAD_ATTR_INSTANCE_VALUE

Successors and predecessors for LOAD_ATTR_INSTANCE_VALUE
Predecessors Count Percentage
LOAD_FAST 140 58.3%
LOAD_ATTR 60 25.0%
LOAD_FAST_LOAD_FAST 40 16.7%
Successors Count Percentage
LOAD_ATTR_METHOD_NO_DICT 80 33.3%
TO_BOOL 60 25.0%
LOAD_ATTR 40 16.7%
CALL_PY_EXACT_ARGS 40 16.7%
CALL 20 8.3%

LOAD_ATTR_METHOD_NO_DICT

Successors and predecessors for LOAD_ATTR_METHOD_NO_DICT
Predecessors Count Percentage
LOAD_FAST 480 80.0%
LOAD_ATTR_INSTANCE_VALUE 80 13.3%
LOAD_ATTR 40 6.7%
Successors Count Percentage
LOAD_CONST_IMMORTAL 480 80.0%
LOAD_FAST_LOAD_FAST 60 10.0%
CALL_METHOD_DESCRIPTOR_NOARGS 40 6.7%
CALL 20 3.3%

LOAD_ATTR_METHOD_WITH_VALUES

Successors and predecessors for LOAD_ATTR_METHOD_WITH_VALUES
Predecessors Count Percentage
LOAD_FAST 80 66.7%
LOAD_ATTR 40 33.3%
Successors Count Percentage
LOAD_FAST 60 50.0%
LOAD_FAST_LOAD_FAST 60 50.0%

LOAD_ATTR_MODULE

Successors and predecessors for LOAD_ATTR_MODULE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 160 66.7%
LOAD_ATTR 80 33.3%
Successors Count Percentage
PUSH_NULL 240 100.0%

LOAD_CONST_IMMORTAL

Successors and predecessors for LOAD_CONST_IMMORTAL
Predecessors Count Percentage
GET_AWAITABLE 116,536,320 100.0%
LOAD_ATTR_METHOD_NO_DICT 480 0.0%
POP_TOP 180 0.0%
STORE_FAST 180 0.0%
LOAD_FAST 120 0.0%
Successors Count Percentage
SEND_GEN 116,536,320 100.0%
CALL_METHOD_DESCRIPTOR_O 480 0.0%
RETURN_VALUE 180 0.0%
STORE_FAST 120 0.0%
LOAD_CONST_IMMORTAL 120 0.0%

LOAD_GLOBAL_BUILTIN

Successors and predecessors for LOAD_GLOBAL_BUILTIN
Predecessors Count Percentage
PUSH_EXC_INFO 480 88.9%
RESUME_CHECK 40 7.4%
LOAD_GLOBAL 20 3.7%
Successors Count Percentage
CHECK_EXC_MATCH 480 88.9%
LOAD_FAST 60 11.1%

LOAD_GLOBAL_MODULE

Successors and predecessors for LOAD_GLOBAL_MODULE
Predecessors Count Percentage
END_SEND 58,268,160 50.0%
POP_JUMP_IF_FALSE 58,268,160 50.0%
STORE_FAST 560 0.0%
LOAD_GLOBAL 100 0.0%
RESUME_CHECK 80 0.0%
Successors Count Percentage
LOAD_FAST 116,536,320 100.0%
LOAD_SMALL_INT 480 0.0%
LOAD_ATTR_MODULE 160 0.0%
LOAD_ATTR 80 0.0%
LOAD_FAST_LOAD_FAST 60 0.0%

RESUME_CHECK

Successors and predecessors for RESUME_CHECK
Predecessors Count Percentage
POP_TOP 116,536,800 100.0%
CALL_PY_EXACT_ARGS 180 0.0%
CACHE 60 0.0%
CALL_FUNCTION_EX 60 0.0%
COPY_FREE_VARS 60 0.0%
Successors Count Percentage
LOAD_FAST 116,536,980 100.0%
LOAD_GLOBAL_MODULE 80 0.0%
LOAD_DEREF 60 0.0%
LOAD_GLOBAL 60 0.0%
LOAD_GLOBAL_BUILTIN 40 0.0%

SEND_GEN

Successors and predecessors for SEND_GEN
Predecessors Count Percentage
LOAD_CONST_IMMORTAL 116,536,320 100.0%
Successors Count Percentage
POP_TOP 116,536,320 100.0%

TO_BOOL_BOOL

Successors and predecessors for TO_BOOL_BOOL
Predecessors Count Percentage
LOAD_FAST 40 66.7%
TO_BOOL 20 33.3%
Successors Count Percentage
POP_JUMP_IF_TRUE 60 100.0%

UNPACK_SEQUENCE_TWO_TUPLE

Successors and predecessors for UNPACK_SEQUENCE_TWO_TUPLE
Predecessors Count Percentage
CALL_METHOD_DESCRIPTOR_NOARGS 40 66.7%
UNPACK_SEQUENCE 20 33.3%
Successors Count Percentage
STORE_FAST_STORE_FAST 60 100.0%

Specialization stats

Specialization stats by family

BINARY_OP

specialization stats for BINARY_OP family
Kind Count Ratio
hit

Specialized instructions that complete.

174,804,540 100.0%
Success Count Ratio
Success 20 100.0%
Failure 0 0.0%

BINARY_SUBSCR

specialization stats for BINARY_SUBSCR family
Kind Count Ratio
hit

Specialized instructions that complete.

60 75.0%
Success Count Ratio
Success 20 100.0%
Failure 0 0.0%

CALL

specialization stats for CALL family
Kind Count Ratio
hit

Specialized instructions that complete.

116,537,700 100.0%
Success Count Ratio
Success 260 100.0%
Failure 0 0.0%

COMPARE_OP

specialization stats for COMPARE_OP family
Kind Count Ratio
hit

Specialized instructions that complete.

116,536,800 100.0%

FOR_ITER

specialization stats for FOR_ITER family
Kind Count Ratio
deferred

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

60 10.0%
hit

Specialized instructions that complete.

540 90.0%

LOAD_ATTR

specialization stats for LOAD_ATTR family
Kind Count Ratio
deferred

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

60 4.0%
hit

Specialized instructions that complete.

1,200 80.0%
Success Count Ratio
Success 220 91.7%
Failure 20 8.3%

LOAD_GLOBAL

specialization stats for LOAD_GLOBAL family
Kind Count Ratio
hit

Specialized instructions that complete.

116,537,640 100.0%
Success Count Ratio
Success 120 100.0%
Failure 0 0.0%

SEND

specialization stats for SEND family
Kind Count Ratio
hit

Specialized instructions that complete.

116,536,320 100.0%

TO_BOOL

specialization stats for TO_BOOL family
Kind Count Ratio
deferred

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

60 37.5%
hit

Specialized instructions that complete.

60 37.5%
Success Count Ratio
Success 20 50.0%
Failure 20 50.0%
Failure kind Count Ratio
sequence 20 100.0%

UNPACK_SEQUENCE

specialization stats for UNPACK_SEQUENCE family
Kind Count Ratio
hit

Specialized instructions that complete.

60 75.0%
Success Count Ratio
Success 20 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,223,645,820 58.3%
Not specialized

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

900 0.0%
Specialized hits

Specialized instructions, e.g. LOAD_ATTR_MODULE that complete.

874,029,900 41.7%
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
TO_BOOL 60 33.3%
FOR_ITER 60 33.3%
LOAD_ATTR 60 33.3%
BINARY_SLICE 0 0.0%
STORE_SLICE 0 0.0%
CACHE 0 0.0%
BINARY_SUBSCR 0 0.0%
CHECK_EXC_MATCH 0 0.0%
END_SEND 0 0.0%
GET_ITER 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 540 0.0%
Calls to Python functions inlined 233,073,480 100.0%
Calls via PyEval_EvalFrame (total) 540 0.0%
Calls via PyEval_EvalFrame (vector) 60 0.0%
Calls via PyEval_EvalFrame (generator) 480 0.0%
Calls via PyEval_EvalFrame (legacy) 0 0.0%
Calls via PyEval_EvalFrame (function vectorcall) 60 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) 60 0.0%
Calls via PyEval_EvalFrame (api) 0 0.0%
Calls via PyEval_EvalFrame (method) 0 0.0%
Frame objects created 60 0.0%
Frames pushed 116,537,220 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 181,400 0.2%
Frees to freelist 181,360
Allocations 116,538,220 99.8%
Allocations to 512 bytes 116,538,220 99.8%
Allocations to 4 kbytes 0 0.0%
Allocations over 4 kbytes 0 0.0%
Frees 116,538,064
Inline values 0
Interpreter mortal increfs 349,614,540 35.3%
Interpreter mortal decrefs 466,333,000 30.8%
Mortal increfs 4,142 0.0%
Mortal decrefs 4,928 0.0%
Interpreter immortal increfs 524,417,340 52.9%
Interpreter immortal decrefs 1,048,652,160 69.2%
Immortal increfs 116,539,080 11.8%
Immortal decrefs 1,156 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 200
Method cache misses 20
Method cache collisions 13
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 Reachable from roots Not reachable from roots
0 0 0 0 0 0
1 0 0 0 0 0
2 0 0 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.

0
Traces created

The number of traces that were successfully created.

0
Trace stack overflow

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

0
Trace stack underflow

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

0
Trace too long

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

0
Trace too short

A potential trace is abandoned because it it too short.

0
Inner loop found

A trace is truncated because it has an inner loop

0
Recursive call

A trace is truncated because it has a recursive call.

0
Low confidence

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

0
Executors invalidated

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

0
Traces executed

The number of traces that were executed

0
Uops executed

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

0
Count Ratio
Optimizer attempts

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

0
Optimizer successes

The number of traces that were successfully optimized.

0
Optimizer no memory

The number of optimizations that failed due to no memory.

0
Remove globals builtins changed

The builtins changed during optimization

0
Remove globals incorrect keys

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

0

Trace length histogram

trace length histogram
Range Count Ratio
<= 1 0

Optimized trace length histogram

optimized trace length histogram
Range Count Ratio
<= 1 0

Trace run length histogram

trace run length histogram
Range Count Ratio
<= 1 0

Uop execution stats

uop execution stats

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.

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-12-15