Skip to content

Latest commit

 

History

History
6184 lines (5581 loc) · 108 KB

bm-20250121-azure-x86_64-brandtbucher-remove_optimizer_api-3.14.0a4+-085e172-pystats-gc_traversal.md

File metadata and controls

6184 lines (5581 loc) · 108 KB

Pystats results

  • benchmark: gc_traversal
  • fork: brandtbucher
  • ref: remove-optimizer-api
  • commit hash: 085e172
  • commit date: 2025-01-21T19:51:13-08: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 248,940 17.9% 17.9%
STORE_FAST 248,340 17.8% 35.7%
FOR_ITER_RANGE 122,040 8.8% 44.5%
PUSH_NULL 68,340 4.9% 49.4%
JUMP_BACKWARD_JIT 61,980 4.5% 53.8%
LOAD_CONST_IMMORTAL 60,600 4.4% 58.2%
LOAD_FAST_LOAD_FAST 60,240 4.3% 62.5%
POP_ITER 60,180 4.3% 66.8%
GET_ITER 60,120 4.3% 71.1%
BUILD_LIST 60,120 4.3% 75.5%
CALL_BUILTIN_CLASS 60,120 4.3% 79.8%
LOAD_GLOBAL_BUILTIN 60,120 4.3% 84.1%
BINARY_OP 60,040 4.3% 88.4%
STORE_SUBSCR_LIST_INT 59,940 4.3% 92.7%
ENTER_EXECUTOR 59,940 4.3% 97.0%
LOAD_GLOBAL_MODULE 7,920 0.6% 97.6%
LOAD_ATTR_MODULE 7,800 0.6% 98.1%
CALL_NON_PY_GENERAL 4,020 0.3% 98.4%
CALL_BUILTIN_FAST_WITH_KEYWORDS 3,840 0.3% 98.7%
POP_TOP 2,220 0.2% 98.9%
LOAD_SMALL_INT 2,040 0.1% 99.0%
POP_JUMP_IF_FALSE 1,980 0.1% 99.1%
POP_JUMP_IF_NOT_NONE 1,980 0.1% 99.3%
BINARY_OP_ADD_FLOAT 1,920 0.1% 99.4% 3.1%
BINARY_OP_SUBTRACT_FLOAT 1,920 0.1% 99.6%
COMPARE_OP_INT 1,920 0.1% 99.7%
RETURN_VALUE 480 0.0% 99.7%
RESUME_CHECK 480 0.0% 99.8%
CALL_PY_EXACT_ARGS 300 0.0% 99.8%
CALL 260 0.0% 99.8%
LOAD_ATTR_INSTANCE_VALUE 240 0.0% 99.8%
LOAD_METHOD 160 0.0% 99.8%
CALL_FUNCTION_EX 120 0.0% 99.8%
BUILD_TUPLE 120 0.0% 99.9%
LOAD_DEREF 120 0.0% 99.9%
LOAD_GLOBAL 120 0.0% 99.9%
LOAD_CONST_MORTAL 120 0.0% 99.9%
LOAD_METHOD_NO_DICT 120 0.0% 99.9%
LOAD_METHOD_WITH_VALUES 120 0.0% 99.9%
TO_BOOL 100 0.0% 99.9%
LOAD_ATTR 100 0.0% 99.9%
MAKE_FUNCTION 60 0.0% 99.9%
NOP 60 0.0% 99.9%
CALL_INTRINSIC_1 60 0.0% 99.9%
COPY_FREE_VARS 60 0.0% 99.9%
FOR_ITER 60 0.0% 99.9%
IS_OP 60 0.0% 99.9%
JUMP_FORWARD 60 0.0% 99.9%
LIST_EXTEND 60 0.0% 99.9%
MAKE_CELL 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_SUBSCR_TUPLE_INT 60 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_NOARGS 60 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O 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%
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
FOR_ITER_RANGE STORE_FAST 121,860 8.7% 8.7%
JUMP_BACKWARD_JIT FOR_ITER_RANGE 61,920 4.4% 13.2%
PUSH_NULL LOAD_FAST 60,300 4.3% 17.5%
POP_ITER LOAD_FAST 60,180 4.3% 21.8%
STORE_FAST LOAD_CONST_IMMORTAL 60,180 4.3% 26.2%
GET_ITER FOR_ITER_RANGE 60,120 4.3% 30.5%
CALL_BUILTIN_CLASS GET_ITER 60,120 4.3% 34.8%
LOAD_GLOBAL_BUILTIN PUSH_NULL 60,120 4.3% 39.1%
LOAD_FAST CALL_BUILTIN_CLASS 60,080 4.3% 43.4%
STORE_FAST LOAD_GLOBAL_BUILTIN 60,080 4.3% 47.7%
BINARY_OP STORE_FAST 60,000 4.3% 52.1%
BUILD_LIST LOAD_FAST 60,000 4.3% 56.4%
LOAD_FAST BINARY_OP 60,000 4.3% 60.7%
LOAD_FAST STORE_FAST 60,000 4.3% 65.0%
STORE_FAST JUMP_BACKWARD_JIT 60,000 4.3% 69.3%
LOAD_CONST_IMMORTAL BUILD_LIST 60,000 4.3% 73.6%
LOAD_FAST STORE_SUBSCR_LIST_INT 59,940 4.3% 77.9%
LOAD_FAST_LOAD_FAST LOAD_FAST 59,940 4.3% 82.2%
STORE_FAST LOAD_FAST_LOAD_FAST 59,940 4.3% 86.5%
STORE_SUBSCR_LIST_INT ENTER_EXECUTOR 59,940 4.3% 90.8%
ENTER_EXECUTOR POP_ITER 59,940 4.3% 95.1%
LOAD_ATTR_MODULE PUSH_NULL 7,800 0.6% 95.7%
LOAD_GLOBAL_MODULE LOAD_ATTR_MODULE 7,760 0.6% 96.2%
STORE_FAST LOAD_FAST 4,080 0.3% 96.5%
PUSH_NULL CALL_NON_PY_GENERAL 3,920 0.3% 96.8%
STORE_FAST LOAD_GLOBAL_MODULE 3,920 0.3% 97.1%
PUSH_NULL CALL_BUILTIN_FAST_WITH_KEYWORDS 3,840 0.3% 97.4%
LOAD_FAST LOAD_SMALL_INT 1,980 0.1% 97.5%
LOAD_FAST POP_JUMP_IF_NOT_NONE 1,980 0.1% 97.6%
POP_TOP LOAD_GLOBAL_MODULE 1,920 0.1% 97.8%
LOAD_FAST BINARY_OP_SUBTRACT_FLOAT 1,920 0.1% 97.9%
LOAD_FAST LOAD_GLOBAL_MODULE 1,920 0.1% 98.1%
LOAD_SMALL_INT COMPARE_OP_INT 1,920 0.1% 98.2%
POP_JUMP_IF_FALSE JUMP_BACKWARD_JIT 1,920 0.1% 98.3%
POP_JUMP_IF_NOT_NONE LOAD_FAST 1,920 0.1% 98.5%
BINARY_OP_ADD_FLOAT STORE_FAST 1,920 0.1% 98.6%
BINARY_OP_SUBTRACT_FLOAT BINARY_OP_ADD_FLOAT 1,920 0.1% 98.7%
CALL_BUILTIN_FAST_WITH_KEYWORDS POP_TOP 1,920 0.1% 98.9%
CALL_BUILTIN_FAST_WITH_KEYWORDS STORE_FAST 1,920 0.1% 99.0%
CALL_NON_PY_GENERAL LOAD_FAST 1,920 0.1% 99.2%
CALL_NON_PY_GENERAL STORE_FAST 1,920 0.1% 99.3%
COMPARE_OP_INT POP_JUMP_IF_FALSE 1,920 0.1% 99.4%
RETURN_VALUE STORE_FAST 240 0.0% 99.5%
CALL_PY_EXACT_ARGS RESUME_CHECK 240 0.0% 99.5%
POP_TOP LOAD_CONST_IMMORTAL 180 0.0% 99.5%
RETURN_VALUE POP_TOP 180 0.0% 99.5%
LOAD_FAST PUSH_NULL 180 0.0% 99.5%
LOAD_FAST RETURN_VALUE 180 0.0% 99.5%
FOR_ITER_RANGE POP_ITER 180 0.0% 99.5%
LOAD_CONST_IMMORTAL RETURN_VALUE 180 0.0% 99.5%
RESUME_CHECK LOAD_FAST 180 0.0% 99.6%
LOAD_FAST LOAD_ATTR_INSTANCE_VALUE 140 0.0% 99.6%
PUSH_NULL CALL_FUNCTION_EX 120 0.0% 99.6%
PUSH_NULL LOAD_FAST_LOAD_FAST 120 0.0% 99.6%
LOAD_FAST LOAD_CONST_IMMORTAL 120 0.0% 99.6%
LOAD_CONST_IMMORTAL STORE_FAST 120 0.0% 99.6%
LOAD_CONST_IMMORTAL LOAD_CONST_IMMORTAL 120 0.0% 99.6%
LOAD_GLOBAL_MODULE PUSH_NULL 120 0.0% 99.6%
CALL CALL_PY_EXACT_ARGS 100 0.0% 99.6%
LOAD_FAST LOAD_METHOD 100 0.0% 99.6%
LOAD_FAST LOAD_METHOD_WITH_VALUES 80 0.0% 99.6%
LOAD_FAST_LOAD_FAST CALL_PY_EXACT_ARGS 80 0.0% 99.6%
LOAD_GLOBAL LOAD_GLOBAL_MODULE 80 0.0% 99.7%
STORE_FAST LOAD_GLOBAL 80 0.0% 99.7%
LOAD_ATTR_INSTANCE_VALUE LOAD_METHOD_NO_DICT 80 0.0% 99.7%
RESUME_CHECK LOAD_GLOBAL_MODULE 80 0.0% 99.7%
CACHE RESUME_CHECK 60 0.0% 99.7%
CALL_FUNCTION_EX RESUME_CHECK 60 0.0% 99.7%
MAKE_FUNCTION SET_FUNCTION_ATTRIBUTE 60 0.0% 99.7%
NOP LOAD_FAST 60 0.0% 99.7%
POP_TOP LOAD_FAST 60 0.0% 99.7%
POP_TOP JUMP_BACKWARD_JIT 60 0.0% 99.7%
RETURN_VALUE RETURN_VALUE 60 0.0% 99.7%
TO_BOOL POP_JUMP_IF_FALSE 60 0.0% 99.7%
BUILD_LIST LOAD_DEREF 60 0.0% 99.7%
BUILD_LIST STORE_FAST 60 0.0% 99.7%
BUILD_TUPLE LOAD_CONST_MORTAL 60 0.0% 99.7%
CALL CALL_NON_PY_GENERAL 60 0.0% 99.7%
CALL_INTRINSIC_1 PUSH_NULL 60 0.0% 99.7%
COPY_FREE_VARS RESUME_CHECK 60 0.0% 99.7%
FOR_ITER POP_ITER 60 0.0% 99.7%
IS_OP STORE_FAST 60 0.0% 99.7%
JUMP_FORWARD LOAD_FAST 60 0.0% 99.7%
LIST_EXTEND CALL_INTRINSIC_1 60 0.0% 99.7%
LOAD_ATTR LOAD_ATTR_INSTANCE_VALUE 60 0.0% 99.8%
LOAD_DEREF PUSH_NULL 60 0.0% 99.8%
LOAD_DEREF LIST_EXTEND 60 0.0% 99.8%
LOAD_FAST BUILD_LIST 60 0.0% 99.8%
LOAD_FAST BUILD_TUPLE 60 0.0% 99.8%
LOAD_FAST CALL 60 0.0% 99.8%
LOAD_FAST_LOAD_FAST BUILD_TUPLE 60 0.0% 99.8%
LOAD_FAST_LOAD_FAST CALL 60 0.0% 99.8%
LOAD_METHOD LOAD_FAST_LOAD_FAST 60 0.0% 99.8%
LOAD_SMALL_INT STORE_FAST 60 0.0% 99.8%
MAKE_CELL RESUME_CHECK 60 0.0% 99.8%
POP_JUMP_IF_FALSE LOAD_FAST 60 0.0% 99.8%
POP_JUMP_IF_NOT_NONE LOAD_CONST_MORTAL 60 0.0% 99.8%
POP_JUMP_IF_TRUE NOP 60 0.0% 99.8%
SET_FUNCTION_ATTRIBUTE STORE_FAST 60 0.0% 99.8%
STORE_DEREF LOAD_FAST 60 0.0% 99.8%

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
RESUME_CHECK 60 100.0%

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%

CALL_FUNCTION_EX

Successors and predecessors for CALL_FUNCTION_EX
Predecessors Count Percentage
PUSH_NULL 120 100.0%
Successors Count Percentage
RESUME_CHECK 60 100.0%

GET_ITER

Successors and predecessors for GET_ITER
Predecessors Count Percentage
CALL_BUILTIN_CLASS 60,120 100.0%
Successors Count Percentage
FOR_ITER_RANGE 60,120 100.0%

MAKE_FUNCTION

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

NOP

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

POP_ITER

Successors and predecessors for POP_ITER
Predecessors Count Percentage
ENTER_EXECUTOR 59,940 99.6%
FOR_ITER_RANGE 180 0.3%
FOR_ITER 60 0.1%
Successors Count Percentage
LOAD_FAST 60,180 100.0%

POP_TOP

Successors and predecessors for POP_TOP
Predecessors Count Percentage
CALL_BUILTIN_FAST_WITH_KEYWORDS 1,920 86.5%
RETURN_VALUE 180 8.1%
CALL_METHOD_DESCRIPTOR_O 60 2.7%
CALL_NON_PY_GENERAL 60 2.7%
Successors Count Percentage
LOAD_GLOBAL_MODULE 1,920 86.5%
LOAD_CONST_IMMORTAL 180 8.1%
LOAD_FAST 60 2.7%
JUMP_BACKWARD_JIT 60 2.7%

PUSH_NULL

Successors and predecessors for PUSH_NULL
Predecessors Count Percentage
LOAD_GLOBAL_BUILTIN 60,120 88.0%
LOAD_ATTR_MODULE 7,800 11.4%
LOAD_FAST 180 0.3%
LOAD_GLOBAL_MODULE 120 0.2%
CALL_INTRINSIC_1 60 0.1%
Successors Count Percentage
LOAD_FAST 60,300 88.2%
CALL_NON_PY_GENERAL 3,920 5.7%
CALL_BUILTIN_FAST_WITH_KEYWORDS 3,840 5.6%
CALL_FUNCTION_EX 120 0.2%
LOAD_FAST_LOAD_FAST 120 0.2%

RETURN_VALUE

Successors and predecessors for RETURN_VALUE
Predecessors Count Percentage
LOAD_FAST 180 37.5%
LOAD_CONST_IMMORTAL 180 37.5%
RETURN_VALUE 60 12.5%
CALL_NON_PY_GENERAL 60 12.5%
Successors Count Percentage
STORE_FAST 240 50.0%
POP_TOP 180 37.5%
RETURN_VALUE 60 12.5%

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 60,000 99.9%
BINARY_OP 40 0.1%
Successors Count Percentage
STORE_FAST 60,000 99.9%
BINARY_OP 40 0.1%

BUILD_LIST

Successors and predecessors for BUILD_LIST
Predecessors Count Percentage
LOAD_CONST_IMMORTAL 60,000 99.8%
LOAD_FAST 60 0.1%
RESUME_CHECK 60 0.1%
Successors Count Percentage
LOAD_FAST 60,000 99.8%
LOAD_DEREF 60 0.1%
STORE_FAST 60 0.1%

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_MORTAL 60 50.0%
CALL_METHOD_DESCRIPTOR_O 40 33.3%
CALL 20 16.7%

CALL

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

CALL_INTRINSIC_1

Successors and predecessors for CALL_INTRINSIC_1
Predecessors Count Percentage
LIST_EXTEND 60 100.0%
Successors Count Percentage
PUSH_NULL 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_JIT 60 100.0%
Successors Count Percentage
POP_ITER 60 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_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 40 40.0%
LOAD_GLOBAL_MODULE 40 40.0%
LOAD_FAST_LOAD_FAST 20 20.0%
Successors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 60 60.0%
LOAD_ATTR_MODULE 40 40.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
PUSH_NULL 60,300 24.2%
POP_ITER 60,180 24.2%
BUILD_LIST 60,000 24.1%
LOAD_FAST_LOAD_FAST 59,940 24.1%
STORE_FAST 4,080 1.6%
Successors Count Percentage
CALL_BUILTIN_CLASS 60,080 24.1%
BINARY_OP 60,000 24.1%
STORE_FAST 60,000 24.1%
STORE_SUBSCR_LIST_INT 59,940 24.1%
LOAD_SMALL_INT 1,980 0.8%

LOAD_FAST_LOAD_FAST

Successors and predecessors for LOAD_FAST_LOAD_FAST
Predecessors Count Percentage
STORE_FAST 59,940 99.5%
PUSH_NULL 120 0.2%
LOAD_METHOD 60 0.1%
LOAD_METHOD_NO_DICT 60 0.1%
LOAD_METHOD_WITH_VALUES 60 0.1%
Successors Count Percentage
LOAD_FAST 59,940 99.5%
CALL_PY_EXACT_ARGS 80 0.1%
BUILD_TUPLE 60 0.1%
CALL 60 0.1%
CALL_NON_PY_GENERAL 40 0.1%

LOAD_GLOBAL

Successors and predecessors for LOAD_GLOBAL
Predecessors Count Percentage
STORE_FAST 80 66.7%
RESUME_CHECK 40 33.3%
Successors Count Percentage
LOAD_GLOBAL_MODULE 80 66.7%
LOAD_GLOBAL_BUILTIN 40 33.3%

LOAD_METHOD

Successors and predecessors for LOAD_METHOD
Predecessors Count Percentage
LOAD_FAST 100 62.5%
LOAD_ATTR_INSTANCE_VALUE 40 25.0%
LOAD_METHOD 20 12.5%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 60 37.5%
LOAD_METHOD_NO_DICT 40 25.0%
LOAD_METHOD_WITH_VALUES 40 25.0%
LOAD_METHOD 20 12.5%

LOAD_SMALL_INT

Successors and predecessors for LOAD_SMALL_INT
Predecessors Count Percentage
LOAD_FAST 1,980 97.1%
RESUME_CHECK 60 2.9%
Successors Count Percentage
COMPARE_OP_INT 1,920 94.1%
STORE_FAST 60 2.9%
BINARY_SUBSCR_TUPLE_INT 40 2.0%
BINARY_SUBSCR 20 1.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 1,920 97.0%
TO_BOOL 60 3.0%
Successors Count Percentage
JUMP_BACKWARD_JIT 1,920 97.0%
LOAD_FAST 60 3.0%

POP_JUMP_IF_NOT_NONE

Successors and predecessors for POP_JUMP_IF_NOT_NONE
Predecessors Count Percentage
LOAD_FAST 1,980 100.0%
Successors Count Percentage
LOAD_FAST 1,920 97.0%
LOAD_CONST_MORTAL 60 3.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
FOR_ITER_RANGE 121,860 49.1%
BINARY_OP 60,000 24.2%
LOAD_FAST 60,000 24.2%
BINARY_OP_ADD_FLOAT 1,920 0.8%
CALL_BUILTIN_FAST_WITH_KEYWORDS 1,920 0.8%
Successors Count Percentage
LOAD_CONST_IMMORTAL 60,180 24.2%
LOAD_GLOBAL_BUILTIN 60,080 24.2%
JUMP_BACKWARD_JIT 60,000 24.2%
LOAD_FAST_LOAD_FAST 59,940 24.1%
LOAD_FAST 4,080 1.6%

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_FLOAT

Successors and predecessors for BINARY_OP_ADD_FLOAT
Predecessors Count Percentage
BINARY_OP_SUBTRACT_FLOAT 1,920 100.0%
Successors Count Percentage
STORE_FAST 1,920 100.0%

BINARY_OP_SUBTRACT_FLOAT

Successors and predecessors for BINARY_OP_SUBTRACT_FLOAT
Predecessors Count Percentage
LOAD_FAST 1,920 100.0%
Successors Count Percentage
BINARY_OP_ADD_FLOAT 1,920 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 60,080 99.9%
CALL 40 0.1%
Successors Count Percentage
GET_ITER 60,120 100.0%

CALL_BUILTIN_FAST_WITH_KEYWORDS

Successors and predecessors for CALL_BUILTIN_FAST_WITH_KEYWORDS
Predecessors Count Percentage
PUSH_NULL 3,840 100.0%
Successors Count Percentage
POP_TOP 1,920 50.0%
STORE_FAST 1,920 50.0%

CALL_METHOD_DESCRIPTOR_NOARGS

Successors and predecessors for CALL_METHOD_DESCRIPTOR_NOARGS
Predecessors Count Percentage
LOAD_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
BUILD_TUPLE 40 66.7%
CALL 20 33.3%
Successors Count Percentage
POP_TOP 60 100.0%

CALL_NON_PY_GENERAL

Successors and predecessors for CALL_NON_PY_GENERAL
Predecessors Count Percentage
PUSH_NULL 3,920 97.5%
CALL 60 1.5%
LOAD_FAST_LOAD_FAST 40 1.0%
Successors Count Percentage
LOAD_FAST 1,920 47.8%
STORE_FAST 1,920 47.8%
POP_TOP 60 1.5%
RETURN_VALUE 60 1.5%
STORE_DEREF 60 1.5%

CALL_PY_EXACT_ARGS

Successors and predecessors for CALL_PY_EXACT_ARGS
Predecessors Count Percentage
CALL 100 33.3%
LOAD_FAST_LOAD_FAST 80 26.7%
LOAD_FAST 40 13.3%
LOAD_ATTR_INSTANCE_VALUE 40 13.3%
LOAD_CONST_IMMORTAL 40 13.3%
Successors Count Percentage
RESUME_CHECK 240 80.0%
COPY_FREE_VARS 60 20.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 1,920 100.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 1,920 100.0%

FOR_ITER_RANGE

Successors and predecessors for FOR_ITER_RANGE
Predecessors Count Percentage
JUMP_BACKWARD_JIT 61,920 50.7%
GET_ITER 60,120 49.3%
Successors Count Percentage
STORE_FAST 121,860 99.9%
POP_ITER 180 0.1%

JUMP_BACKWARD_JIT

Successors and predecessors for JUMP_BACKWARD_JIT
Predecessors Count Percentage
STORE_FAST 60,000 96.8%
POP_JUMP_IF_FALSE 1,920 3.1%
POP_TOP 60 0.1%
Successors Count Percentage
FOR_ITER_RANGE 61,920 99.9%
FOR_ITER 60 0.1%

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_METHOD_NO_DICT 80 33.3%
TO_BOOL 60 25.0%
LOAD_METHOD 40 16.7%
CALL_PY_EXACT_ARGS 40 16.7%
CALL 20 8.3%

LOAD_ATTR_MODULE

Successors and predecessors for LOAD_ATTR_MODULE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 7,760 99.5%
LOAD_ATTR 40 0.5%
Successors Count Percentage
PUSH_NULL 7,800 100.0%

LOAD_CONST_IMMORTAL

Successors and predecessors for LOAD_CONST_IMMORTAL
Predecessors Count Percentage
STORE_FAST 60,180 99.3%
POP_TOP 180 0.3%
LOAD_FAST 120 0.2%
LOAD_CONST_IMMORTAL 120 0.2%
Successors Count Percentage
BUILD_LIST 60,000 99.0%
RETURN_VALUE 180 0.3%
STORE_FAST 120 0.2%
LOAD_CONST_IMMORTAL 120 0.2%
IS_OP 60 0.1%

LOAD_CONST_MORTAL

Successors and predecessors for LOAD_CONST_MORTAL
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_GLOBAL_BUILTIN

Successors and predecessors for LOAD_GLOBAL_BUILTIN
Predecessors Count Percentage
STORE_FAST 60,080 99.9%
LOAD_GLOBAL 40 0.1%
Successors Count Percentage
PUSH_NULL 60,120 100.0%

LOAD_GLOBAL_MODULE

Successors and predecessors for LOAD_GLOBAL_MODULE
Predecessors Count Percentage
STORE_FAST 3,920 49.5%
POP_TOP 1,920 24.2%
LOAD_FAST 1,920 24.2%
LOAD_GLOBAL 80 1.0%
RESUME_CHECK 80 1.0%
Successors Count Percentage
LOAD_ATTR_MODULE 7,760 98.0%
PUSH_NULL 120 1.5%
LOAD_ATTR 40 0.5%

LOAD_METHOD_NO_DICT

Successors and predecessors for LOAD_METHOD_NO_DICT
Predecessors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 80 66.7%
LOAD_METHOD 40 33.3%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 60 50.0%
CALL_METHOD_DESCRIPTOR_NOARGS 40 33.3%
CALL 20 16.7%

LOAD_METHOD_WITH_VALUES

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

RESUME_CHECK

Successors and predecessors for RESUME_CHECK
Predecessors Count Percentage
CALL_PY_EXACT_ARGS 240 50.0%
CACHE 60 12.5%
CALL_FUNCTION_EX 60 12.5%
COPY_FREE_VARS 60 12.5%
MAKE_CELL 60 12.5%
Successors Count Percentage
LOAD_FAST 180 37.5%
LOAD_GLOBAL_MODULE 80 16.7%
BUILD_LIST 60 12.5%
LOAD_DEREF 60 12.5%
LOAD_SMALL_INT 60 12.5%

STORE_SUBSCR_LIST_INT

Successors and predecessors for STORE_SUBSCR_LIST_INT
Predecessors Count Percentage
LOAD_FAST 59,940 100.0%
Successors Count Percentage
ENTER_EXECUTOR 59,940 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%

ENTER_EXECUTOR

Successors and predecessors for ENTER_EXECUTOR
Predecessors Count Percentage
STORE_SUBSCR_LIST_INT 59,940 100.0%
Successors Count Percentage
POP_ITER 59,940 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.

60,000 93.9%
hit

Specialized instructions that complete.

3,780 5.9%
miss

Specialized instructions that deopt.

60 0.1%
Success Count Ratio
Success 0 0.0%
Failure 40 100.0%
Failure kind Count Ratio
multiply different types 40 100.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.

64,380 99.6%
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.

1,920 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 0.0%
hit

Specialized instructions that complete.

122,040 100.0%

LOAD_ATTR

specialization stats for LOAD_ATTR family
Kind Count Ratio
hit

Specialized instructions that complete.

8,280 98.8%
Success Count Ratio
Success 100 100.0%
Failure 0 0.0%

LOAD_GLOBAL

specialization stats for LOAD_GLOBAL family
Kind Count Ratio
hit

Specialized instructions that complete.

68,040 99.8%
Success Count Ratio
Success 120 100.0%
Failure 0 0.0%

LOAD_METHOD

specialization stats for LOAD_METHOD family
Kind Count Ratio
deferred

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

60 37.5%
Success Count Ratio
Success 80 80.0%
Failure 20 20.0%

STORE_SUBSCR

specialization stats for STORE_SUBSCR family
Kind Count Ratio
hit

Specialized instructions that complete.

29,970,000 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.

876,000 62.9%
Not specialized

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

60,880 4.4%
Specialized hits

Specialized instructions, e.g. LOAD_ATTR_MODULE that complete.

455,820 32.7%
Specialized misses

Specialized instructions, e.g. LOAD_ATTR_MODULE that deopt.

60 0.0%

Deferred by instruction

Breakdown of deferred (not specialized) instruction counts by family
Name Count Ratio
BINARY_OP 60,000 99.7%
TO_BOOL 60 0.1%
FOR_ITER 60 0.1%
LOAD_METHOD 60 0.1%
BINARY_SLICE 0 0.0%
STORE_SLICE 0 0.0%
CACHE 0 0.0%
BINARY_SUBSCR 0 0.0%
CALL_FUNCTION_EX 0 0.0%
GET_ITER 0 0.0%

Misses by instruction

Breakdown of misses (specialized deopts) instruction counts by family
Name Count Ratio
BINARY_OP_ADD_FLOAT 60 100.0%
CACHE 0 0.0%
CALL_FUNCTION_EX 0 0.0%
GET_ITER 0 0.0%
MAKE_FUNCTION 0 0.0%
NOP 0 0.0%
POP_ITER 0 0.0%
POP_TOP 0 0.0%
PUSH_NULL 0 0.0%
RETURN_VALUE 0 0.0%

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 60 12.5%
Calls to Python functions inlined 420 87.5%
Calls via PyEval_EvalFrame (total) 60 12.5%
Calls via PyEval_EvalFrame (vector) 60 12.5%
Calls via PyEval_EvalFrame (generator) 0 0.0%
Calls via PyEval_EvalFrame (legacy) 0 0.0%
Calls via PyEval_EvalFrame (function vectorcall) 60 12.5%
Calls via PyEval_EvalFrame (build class) 0 0.0%
Calls via PyEval_EvalFrame (slot) 0 0.0%
Calls via PyEval_EvalFrame (function ex) 60 12.5%
Calls via PyEval_EvalFrame (api) 0 0.0%
Calls via PyEval_EvalFrame (method) 0 0.0%
Frame objects created 0 0.0%
Frames pushed 480 100.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 16,693,640 98.2%
Frees to freelist 16,697,780
Allocations 307,480 1.8%
Allocations to 512 bytes 251,320 1.5%
Allocations to 4 kbytes 26,880 0.2%
Allocations over 4 kbytes 29,280 0.2%
Frees 311,221
Inline values 0
Interpreter mortal increfs 351,420 0.4%
Interpreter mortal decrefs 621,460 0.4%
Mortal increfs 76,509,465 84.4%
Mortal decrefs 93,120,586 61.6%
Interpreter immortal increfs 155,700 0.2%
Interpreter immortal decrefs 254,160 0.2%
Immortal increfs 13,649,525 15.1%
Immortal decrefs 57,109,924 37.8%
Materialize dict (on request) 0
Materialize dict (new key) 0
Materialize dict (too big) 0
Materialize dict (str subclass) 0
Method cache hits 195
Method cache misses 25
Method cache collisions 16
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 3,840 160 4,672,568,336 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

59,940
Uops executed

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

479,040,480 799,200.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 0.0%

Uop execution stats

uop execution stats
Name Count Self Cumulative Miss ratio
_SET_IP 89,790,120 18.7% 18.7%
_CHECK_VALIDITY 59,880,060 12.5% 31.2%
_GUARD_NOT_EXHAUSTED_RANGE 29,970,000 6.3% 37.5% 0.2%
_CHECK_PERIODIC 29,970,000 6.3% 43.8%
_ITER_CHECK_RANGE 29,970,000 6.3% 50.0%
_MAKE_WARM 29,970,000 6.3% 56.3%
_STORE_SUBSCR_LIST_INT 29,910,060 6.2% 62.5%
_ITER_NEXT_RANGE 29,910,060 6.2% 68.8%
_JUMP_TO_TOP 29,910,060 6.2% 75.0%
_LOAD_FAST_1 29,910,060 6.2% 81.2%
_LOAD_FAST_3 29,910,060 6.2% 87.5%
_LOAD_FAST_4 29,910,060 6.2% 93.7%
_STORE_FAST_4 29,910,060 6.2% 100.0%
_EXIT_TRACE 59,940 0.0% 100.0%
_START_EXECUTOR 59,940 0.0% 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.

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: 2025-01-22