Skip to content

Latest commit

 

History

History
6327 lines (5752 loc) · 113 KB

bm-20241025-azure-x86_64-brandtbucher-justin_no_externs-3.14.0a1+-64b198a-pystats-json_loads.md

File metadata and controls

6327 lines (5752 loc) · 113 KB

Pystats results

  • benchmark: json_loads
  • fork: brandtbucher
  • ref: justin-no-externs
  • commit hash: 64b198a
  • commit date: 2024-10-25T10:03:36-07: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 4,594,480 19.2% 19.2%
RETURN_VALUE 2,764,980 11.5% 30.7%
PUSH_NULL 1,812,900 7.6% 38.3%
STORE_FAST 937,860 3.9% 42.2%
ENTER_EXECUTOR 937,100 3.9% 46.1%
POP_TOP 922,020 3.8% 50.0%
CALL_NON_PY_GENERAL 921,960 3.8% 53.8%
LOAD_FAST_LOAD_FAST 921,900 3.8% 57.7%
POP_JUMP_IF_FALSE 921,800 3.8% 61.5%
LOAD_ATTR_METHOD_NO_DICT 921,760 3.8% 65.4%
LOAD_GLOBAL_BUILTIN 921,740 3.8% 69.2%
STORE_FAST_STORE_FAST 921,660 3.8% 73.0%
COMPARE_OP_INT 921,660 3.8% 76.9%
UNPACK_SEQUENCE_TWO_TUPLE 921,660 3.8% 80.7%
CALL_METHOD_DESCRIPTOR_FAST 921,640 3.8% 84.6%
CALL_LEN 921,600 3.8% 88.4%
LOAD_GLOBAL_MODULE 891,160 3.7% 92.2%
LOAD_ATTR_MODULE 891,060 3.7% 95.9%
CALL_PY_GENERAL 890,980 3.7% 99.6%
RESUME_CHECK 15,760 0.1% 99.7% 0.3%
RETURN_CONST 15,540 0.1% 99.7%
GET_ITER 15,420 0.1% 99.8%
INTERPRETER_EXIT 15,360 0.1% 99.9%
EXTENDED_ARG 15,360 0.1% 99.9%
FOR_ITER_TUPLE 15,360 0.1% 100.0%
LOAD_CONST 700 0.0% 100.0%
POP_JUMP_IF_NOT_NONE 300 0.0% 100.0%
LOAD_ATTR 280 0.0% 100.0%
CALL 260 0.0% 100.0%
CALL_PY_EXACT_ARGS 240 0.0% 100.0%
LOAD_ATTR_INSTANCE_VALUE 240 0.0% 100.0%
LOAD_ATTR_METHOD_WITH_VALUES 160 0.0% 100.0%
TO_BOOL 140 0.0% 100.0%
TO_BOOL_BOOL 140 0.0% 100.0%
BUILD_TUPLE 120 0.0% 100.0%
JUMP_FORWARD 100 0.0% 100.0%
LOAD_GLOBAL 100 0.0% 100.0%
POP_JUMP_IF_TRUE 100 0.0% 100.0%
MAKE_FUNCTION 60 0.0% 100.0%
NOP 60 0.0% 100.0%
CALL_FUNCTION_EX 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_BACKWARD 60 0.0% 100.0%
LOAD_DEREF 60 0.0% 100.0%
MAKE_CELL 60 0.0% 100.0%
SET_FUNCTION_ATTRIBUTE 60 0.0% 100.0%
STORE_DEREF 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_METHOD_DESCRIPTOR_O 60 0.0% 100.0%
FOR_ITER_RANGE 60 0.0% 100.0%
CALL_ISINSTANCE 40 0.0% 100.0%
BINARY_SUBSCR 20 0.0% 100.0%
BINARY_OP 20 0.0% 100.0%
COMPARE_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
STORE_FAST LOAD_FAST 922,140 3.8% 3.8%
LOAD_FAST PUSH_NULL 921,900 3.8% 7.7%
LOAD_FAST RETURN_VALUE 921,720 3.8% 11.5%
POP_JUMP_IF_FALSE LOAD_FAST 921,700 3.8% 15.4%
LOAD_GLOBAL_BUILTIN LOAD_FAST 921,700 3.8% 19.2%
PUSH_NULL LOAD_FAST_LOAD_FAST 921,660 3.8% 23.1%
RETURN_VALUE POP_TOP 921,660 3.8% 26.9%
STORE_FAST_STORE_FAST LOAD_FAST 921,660 3.8% 30.8%
COMPARE_OP_INT POP_JUMP_IF_FALSE 921,660 3.8% 34.6%
UNPACK_SEQUENCE_TWO_TUPLE STORE_FAST_STORE_FAST 921,660 3.8% 38.5%
LOAD_FAST LOAD_GLOBAL_BUILTIN 921,640 3.8% 42.3%
LOAD_FAST_LOAD_FAST CALL_NON_PY_GENERAL 921,640 3.8% 46.2%
RETURN_VALUE RETURN_VALUE 921,600 3.8% 50.0%
RETURN_VALUE UNPACK_SEQUENCE_TWO_TUPLE 921,600 3.8% 53.9%
LOAD_FAST CALL_LEN 921,600 3.8% 57.7%
CALL_LEN COMPARE_OP_INT 921,600 3.8% 61.6%
CALL_METHOD_DESCRIPTOR_FAST STORE_FAST 921,600 3.8% 65.4%
CALL_NON_PY_GENERAL LOAD_ATTR_METHOD_NO_DICT 921,600 3.8% 69.3%
LOAD_ATTR_METHOD_NO_DICT CALL_METHOD_DESCRIPTOR_FAST 921,600 3.8% 73.1%
ENTER_EXECUTOR RETURN_VALUE 921,600 3.8% 76.9%
LOAD_ATTR_MODULE PUSH_NULL 891,000 3.7% 80.7%
LOAD_GLOBAL_MODULE LOAD_ATTR_MODULE 891,000 3.7% 84.4%
PUSH_NULL LOAD_FAST 890,940 3.7% 88.1%
LOAD_FAST CALL_PY_GENERAL 890,920 3.7% 91.8%
CALL_PY_GENERAL ENTER_EXECUTOR 890,920 3.7% 95.5%
POP_TOP LOAD_GLOBAL_MODULE 875,520 3.7% 99.2%
POP_TOP ENTER_EXECUTOR 46,140 0.2% 99.4%
RESUME_CHECK LOAD_FAST 15,540 0.1% 99.5%
CACHE RESUME_CHECK 15,420 0.1% 99.5%
LOAD_FAST GET_ITER 15,420 0.1% 99.6%
STORE_FAST LOAD_GLOBAL_MODULE 15,400 0.1% 99.6%
GET_ITER EXTENDED_ARG 15,360 0.1% 99.7%
EXTENDED_ARG FOR_ITER_TUPLE 15,360 0.1% 99.8%
RETURN_CONST INTERPRETER_EXIT 15,360 0.1% 99.8%
FOR_ITER_TUPLE STORE_FAST 15,360 0.1% 99.9%
ENTER_EXECUTOR RETURN_CONST 15,360 0.1% 100.0%
LOAD_FAST POP_JUMP_IF_NOT_NONE 300 0.0% 100.0%
LOAD_FAST LOAD_CONST 240 0.0% 100.0%
POP_JUMP_IF_NOT_NONE LOAD_FAST 240 0.0% 100.0%
PUSH_NULL CALL_NON_PY_GENERAL 220 0.0% 100.0%
POP_TOP RETURN_CONST 180 0.0% 100.0%
LOAD_CONST STORE_FAST 180 0.0% 100.0%
STORE_FAST LOAD_CONST 180 0.0% 100.0%
CALL_PY_EXACT_ARGS RESUME_CHECK 180 0.0% 100.0%
LOAD_FAST LOAD_ATTR 140 0.0% 100.0%
LOAD_FAST LOAD_ATTR_INSTANCE_VALUE 140 0.0% 100.0%
POP_TOP LOAD_FAST 120 0.0% 100.0%
RETURN_VALUE STORE_FAST 120 0.0% 100.0%
LOAD_CONST LOAD_CONST 120 0.0% 100.0%
RETURN_CONST POP_TOP 120 0.0% 100.0%
CALL_NON_PY_GENERAL POP_TOP 120 0.0% 100.0%
RESUME_CHECK LOAD_GLOBAL_MODULE 120 0.0% 100.0%
CALL CALL_NON_PY_GENERAL 100 0.0% 100.0%
JUMP_FORWARD LOAD_FAST 100 0.0% 100.0%
LOAD_ATTR_METHOD_WITH_VALUES LOAD_FAST 100 0.0% 100.0%
PUSH_NULL CALL 80 0.0% 100.0%
CALL CALL_PY_EXACT_ARGS 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_GLOBAL LOAD_GLOBAL_MODULE 80 0.0% 100.0%
LOAD_ATTR_INSTANCE_VALUE LOAD_ATTR_METHOD_NO_DICT 80 0.0% 100.0%
TO_BOOL_BOOL POP_JUMP_IF_FALSE 80 0.0% 100.0%
GET_ITER FOR_ITER_RANGE 60 0.0% 100.0%
MAKE_FUNCTION SET_FUNCTION_ATTRIBUTE 60 0.0% 100.0%
NOP LOAD_FAST 60 0.0% 100.0%
POP_TOP JUMP_BACKWARD 60 0.0% 100.0%
TO_BOOL POP_JUMP_IF_FALSE 60 0.0% 100.0%
BUILD_TUPLE LOAD_CONST 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%
LOAD_ATTR LOAD_FAST_LOAD_FAST 60 0.0% 100.0%
LOAD_ATTR LOAD_ATTR_INSTANCE_VALUE 60 0.0% 100.0%
LOAD_ATTR LOAD_ATTR_MODULE 60 0.0% 100.0%
LOAD_CONST MAKE_FUNCTION 60 0.0% 100.0%
LOAD_CONST IS_OP 60 0.0% 100.0%
LOAD_DEREF STORE_FAST 60 0.0% 100.0%
LOAD_FAST TO_BOOL 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_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%
POP_JUMP_IF_NOT_NONE LOAD_CONST 60 0.0% 100.0%
POP_JUMP_IF_TRUE NOP 60 0.0% 100.0%
RETURN_CONST STORE_FAST 60 0.0% 100.0%
SET_FUNCTION_ATTRIBUTE STORE_FAST 60 0.0% 100.0%
STORE_DEREF LOAD_FAST 60 0.0% 100.0%
STORE_FAST JUMP_FORWARD 60 0.0% 100.0%
STORE_FAST LOAD_DEREF 60 0.0% 100.0%
BINARY_OP_SUBTRACT_FLOAT STORE_FAST 60 0.0% 100.0%
BINARY_SUBSCR_TUPLE_INT STORE_FAST 60 0.0% 100.0%
CALL_BUILTIN_CLASS STORE_FAST 60 0.0% 100.0%
CALL_METHOD_DESCRIPTOR_O POP_TOP 60 0.0% 100.0%
CALL_NON_PY_GENERAL RETURN_VALUE 60 0.0% 100.0%
CALL_NON_PY_GENERAL LOAD_FAST 60 0.0% 100.0%
CALL_NON_PY_GENERAL STORE_DEREF 60 0.0% 100.0%
CALL_NON_PY_GENERAL STORE_FAST 60 0.0% 100.0%
CALL_PY_EXACT_ARGS COPY_FREE_VARS 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
RESUME_CHECK 15,420 100.0%

BINARY_SUBSCR

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

GET_ITER

Successors and predecessors for GET_ITER
Predecessors Count Percentage
LOAD_FAST 15,420 100.0%
Successors Count Percentage
EXTENDED_ARG 15,360 99.6%
FOR_ITER_RANGE 60 0.4%

INTERPRETER_EXIT

Successors and predecessors for INTERPRETER_EXIT
Predecessors Count Percentage
RETURN_CONST 15,360 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
POP_JUMP_IF_TRUE 60 100.0%
Successors Count Percentage
LOAD_FAST 60 100.0%

POP_TOP

Successors and predecessors for POP_TOP
Predecessors Count Percentage
RETURN_VALUE 921,660 100.0%
RETURN_CONST 120 0.0%
CALL_NON_PY_GENERAL 120 0.0%
CALL_METHOD_DESCRIPTOR_O 60 0.0%
ENTER_EXECUTOR 60 0.0%
Successors Count Percentage
LOAD_GLOBAL_MODULE 875,520 95.0%
ENTER_EXECUTOR 46,140 5.0%
RETURN_CONST 180 0.0%
LOAD_FAST 120 0.0%
JUMP_BACKWARD 60 0.0%

PUSH_NULL

Successors and predecessors for PUSH_NULL
Predecessors Count Percentage
LOAD_FAST 921,900 50.9%
LOAD_ATTR_MODULE 891,000 49.1%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 921,660 50.8%
LOAD_FAST 890,940 49.1%
CALL_NON_PY_GENERAL 220 0.0%
CALL 80 0.0%

RETURN_VALUE

Successors and predecessors for RETURN_VALUE
Predecessors Count Percentage
LOAD_FAST 921,720 33.3%
RETURN_VALUE 921,600 33.3%
ENTER_EXECUTOR 921,600 33.3%
CALL_NON_PY_GENERAL 60 0.0%
Successors Count Percentage
POP_TOP 921,660 33.3%
RETURN_VALUE 921,600 33.3%
UNPACK_SEQUENCE_TWO_TUPLE 921,600 33.3%
STORE_FAST 120 0.0%

TO_BOOL

Successors and predecessors for TO_BOOL
Predecessors Count Percentage
LOAD_FAST 60 42.9%
LOAD_ATTR_INSTANCE_VALUE 60 42.9%
TO_BOOL 20 14.3%
Successors Count Percentage
POP_JUMP_IF_FALSE 60 42.9%
POP_JUMP_IF_TRUE 40 28.6%
TO_BOOL 20 14.3%
TO_BOOL_BOOL 20 14.3%

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_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 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
LOAD_FAST 60 100.0%

COMPARE_OP

Successors and predecessors for COMPARE_OP
Predecessors Count Percentage
LOAD_CONST 20 100.0%
Successors Count Percentage
COMPARE_OP_INT 20 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%

EXTENDED_ARG

Successors and predecessors for EXTENDED_ARG
Predecessors Count Percentage
GET_ITER 15,360 100.0%
Successors Count Percentage
FOR_ITER_TUPLE 15,360 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%

IS_OP

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

JUMP_BACKWARD

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

JUMP_FORWARD

Successors and predecessors for JUMP_FORWARD
Predecessors Count Percentage
STORE_FAST 60 60.0%
POP_JUMP_IF_FALSE 40 40.0%
Successors Count Percentage
LOAD_FAST 100 100.0%

LOAD_ATTR

Successors and predecessors for LOAD_ATTR
Predecessors Count Percentage
LOAD_FAST 140 50.0%
LOAD_GLOBAL_MODULE 60 21.4%
LOAD_ATTR_INSTANCE_VALUE 40 14.3%
LOAD_ATTR 20 7.1%
LOAD_FAST_LOAD_FAST 20 7.1%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 60 21.4%
LOAD_ATTR_INSTANCE_VALUE 60 21.4%
LOAD_ATTR_MODULE 60 21.4%
LOAD_ATTR_METHOD_NO_DICT 40 14.3%
LOAD_ATTR_METHOD_WITH_VALUES 40 14.3%

LOAD_CONST

Successors and predecessors for LOAD_CONST
Predecessors Count Percentage
LOAD_FAST 240 34.3%
STORE_FAST 180 25.7%
LOAD_CONST 120 17.1%
BUILD_TUPLE 60 8.6%
POP_JUMP_IF_NOT_NONE 60 8.6%
Successors Count Percentage
STORE_FAST 180 25.7%
LOAD_CONST 120 17.1%
MAKE_FUNCTION 60 8.6%
IS_OP 60 8.6%
CALL 40 5.7%

LOAD_DEREF

Successors and predecessors for LOAD_DEREF
Predecessors Count Percentage
STORE_FAST 60 100.0%
Successors Count Percentage
STORE_FAST 60 100.0%

LOAD_FAST

Successors and predecessors for LOAD_FAST
Predecessors Count Percentage
STORE_FAST 922,140 20.1%
POP_JUMP_IF_FALSE 921,700 20.1%
LOAD_GLOBAL_BUILTIN 921,700 20.1%
STORE_FAST_STORE_FAST 921,660 20.1%
PUSH_NULL 890,940 19.4%
Successors Count Percentage
PUSH_NULL 921,900 20.1%
RETURN_VALUE 921,720 20.1%
LOAD_GLOBAL_BUILTIN 921,640 20.1%
CALL_LEN 921,600 20.1%
CALL_PY_GENERAL 890,920 19.4%

LOAD_FAST_LOAD_FAST

Successors and predecessors for LOAD_FAST_LOAD_FAST
Predecessors Count Percentage
PUSH_NULL 921,660 100.0%
LOAD_ATTR 60 0.0%
LOAD_ATTR_METHOD_NO_DICT 60 0.0%
LOAD_ATTR_METHOD_WITH_VALUES 60 0.0%
LOAD_GLOBAL_MODULE 60 0.0%
Successors Count Percentage
CALL_NON_PY_GENERAL 921,640 100.0%
CALL_PY_EXACT_ARGS 80 0.0%
BUILD_TUPLE 60 0.0%
CALL 60 0.0%
LOAD_ATTR_INSTANCE_VALUE 40 0.0%

LOAD_GLOBAL

Successors and predecessors for LOAD_GLOBAL
Predecessors Count Percentage
RESUME_CHECK 60 60.0%
POP_JUMP_IF_FALSE 20 20.0%
STORE_FAST 20 20.0%
Successors Count Percentage
LOAD_GLOBAL_MODULE 80 80.0%
LOAD_GLOBAL_BUILTIN 20 20.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 921,660 100.0%
TO_BOOL_BOOL 80 0.0%
TO_BOOL 60 0.0%
Successors Count Percentage
LOAD_FAST 921,700 100.0%
JUMP_FORWARD 40 0.0%
LOAD_GLOBAL_BUILTIN 40 0.0%
LOAD_GLOBAL 20 0.0%

POP_JUMP_IF_NOT_NONE

Successors and predecessors for POP_JUMP_IF_NOT_NONE
Predecessors Count Percentage
LOAD_FAST 300 100.0%
Successors Count Percentage
LOAD_FAST 240 80.0%
LOAD_CONST 60 20.0%

POP_JUMP_IF_TRUE

Successors and predecessors for POP_JUMP_IF_TRUE
Predecessors Count Percentage
TO_BOOL_BOOL 60 60.0%
TO_BOOL 40 40.0%
Successors Count Percentage
NOP 60 60.0%
LOAD_GLOBAL_MODULE 40 40.0%

RETURN_CONST

Successors and predecessors for RETURN_CONST
Predecessors Count Percentage
ENTER_EXECUTOR 15,360 98.8%
POP_TOP 180 1.2%
Successors Count Percentage
INTERPRETER_EXIT 15,360 98.8%
POP_TOP 120 0.8%
STORE_FAST 60 0.4%

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
CALL_METHOD_DESCRIPTOR_FAST 921,600 98.3%
FOR_ITER_TUPLE 15,360 1.6%
LOAD_CONST 180 0.0%
RETURN_VALUE 120 0.0%
IS_OP 60 0.0%
Successors Count Percentage
LOAD_FAST 922,140 98.3%
LOAD_GLOBAL_MODULE 15,400 1.6%
LOAD_CONST 180 0.0%
JUMP_FORWARD 60 0.0%
LOAD_DEREF 60 0.0%

STORE_FAST_STORE_FAST

Successors and predecessors for STORE_FAST_STORE_FAST
Predecessors Count Percentage
UNPACK_SEQUENCE_TWO_TUPLE 921,660 100.0%
Successors Count Percentage
LOAD_FAST 921,660 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_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
STORE_FAST 60 100.0%

BINARY_SUBSCR_TUPLE_INT

Successors and predecessors for BINARY_SUBSCR_TUPLE_INT
Predecessors Count Percentage
LOAD_CONST 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_ISINSTANCE

Successors and predecessors for CALL_ISINSTANCE
Predecessors Count Percentage
LOAD_GLOBAL_BUILTIN 40 100.0%
Successors Count Percentage
TO_BOOL_BOOL 40 100.0%

CALL_LEN

Successors and predecessors for CALL_LEN
Predecessors Count Percentage
LOAD_FAST 921,600 100.0%
Successors Count Percentage
COMPARE_OP_INT 921,600 100.0%

CALL_METHOD_DESCRIPTOR_FAST

Successors and predecessors for CALL_METHOD_DESCRIPTOR_FAST
Predecessors Count Percentage
LOAD_ATTR_METHOD_NO_DICT 921,600 100.0%
LOAD_CONST 40 0.0%
Successors Count Percentage
STORE_FAST 921,600 100.0%
TO_BOOL_BOOL 40 0.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
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
LOAD_FAST_LOAD_FAST 921,640 100.0%
PUSH_NULL 220 0.0%
CALL 100 0.0%
Successors Count Percentage
LOAD_ATTR_METHOD_NO_DICT 921,600 100.0%
POP_TOP 120 0.0%
RETURN_VALUE 60 0.0%
LOAD_FAST 60 0.0%
STORE_DEREF 60 0.0%

CALL_PY_EXACT_ARGS

Successors and predecessors for CALL_PY_EXACT_ARGS
Predecessors Count Percentage
CALL 80 33.3%
LOAD_FAST_LOAD_FAST 80 33.3%
LOAD_CONST 40 16.7%
LOAD_ATTR_INSTANCE_VALUE 40 16.7%
Successors Count Percentage
RESUME_CHECK 180 75.0%
COPY_FREE_VARS 60 25.0%

CALL_PY_GENERAL

Successors and predecessors for CALL_PY_GENERAL
Predecessors Count Percentage
LOAD_FAST 890,920 100.0%
LOAD_CONST 40 0.0%
CALL 20 0.0%
Successors Count Percentage
ENTER_EXECUTOR 890,920 100.0%
MAKE_CELL 60 0.0%

COMPARE_OP_INT

Successors and predecessors for COMPARE_OP_INT
Predecessors Count Percentage
CALL_LEN 921,600 100.0%
LOAD_CONST 40 0.0%
COMPARE_OP 20 0.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 921,660 100.0%

FOR_ITER_RANGE

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

FOR_ITER_TUPLE

Successors and predecessors for FOR_ITER_TUPLE
Predecessors Count Percentage
EXTENDED_ARG 15,360 100.0%
Successors Count Percentage
STORE_FAST 15,360 100.0%

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
CALL_NON_PY_GENERAL 921,600 100.0%
LOAD_ATTR_INSTANCE_VALUE 80 0.0%
LOAD_ATTR 40 0.0%
LOAD_FAST 40 0.0%
Successors Count Percentage
CALL_METHOD_DESCRIPTOR_FAST 921,600 100.0%
LOAD_FAST_LOAD_FAST 60 0.0%
LOAD_CONST 40 0.0%
CALL_METHOD_DESCRIPTOR_NOARGS 40 0.0%
CALL 20 0.0%

LOAD_ATTR_METHOD_WITH_VALUES

Successors and predecessors for LOAD_ATTR_METHOD_WITH_VALUES
Predecessors Count Percentage
LOAD_FAST 80 50.0%
LOAD_ATTR 40 25.0%
LOAD_GLOBAL_MODULE 40 25.0%
Successors Count Percentage
LOAD_FAST 100 62.5%
LOAD_FAST_LOAD_FAST 60 37.5%

LOAD_ATTR_MODULE

Successors and predecessors for LOAD_ATTR_MODULE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 891,000 100.0%
LOAD_ATTR 60 0.0%
Successors Count Percentage
PUSH_NULL 891,000 100.0%
STORE_FAST 60 0.0%

LOAD_GLOBAL_BUILTIN

Successors and predecessors for LOAD_GLOBAL_BUILTIN
Predecessors Count Percentage
LOAD_FAST 921,640 100.0%
POP_JUMP_IF_FALSE 40 0.0%
RESUME_CHECK 40 0.0%
LOAD_GLOBAL 20 0.0%
Successors Count Percentage
LOAD_FAST 921,700 100.0%
CALL_ISINSTANCE 40 0.0%

LOAD_GLOBAL_MODULE

Successors and predecessors for LOAD_GLOBAL_MODULE
Predecessors Count Percentage
POP_TOP 875,520 98.2%
STORE_FAST 15,400 1.7%
RESUME_CHECK 120 0.0%
LOAD_GLOBAL 80 0.0%
POP_JUMP_IF_TRUE 40 0.0%
Successors Count Percentage
LOAD_ATTR_MODULE 891,000 100.0%
LOAD_ATTR 60 0.0%
LOAD_FAST_LOAD_FAST 60 0.0%
LOAD_ATTR_METHOD_WITH_VALUES 40 0.0%

RESUME_CHECK

Successors and predecessors for RESUME_CHECK
Predecessors Count Percentage
CACHE 15,420 97.8%
CALL_PY_EXACT_ARGS 180 1.1%
COPY_FREE_VARS 60 0.4%
MAKE_CELL 60 0.4%
ENTER_EXECUTOR 40 0.3%
Successors Count Percentage
LOAD_FAST 15,540 98.6%
LOAD_GLOBAL_MODULE 120 0.8%
LOAD_GLOBAL 60 0.4%
LOAD_GLOBAL_BUILTIN 40 0.3%

TO_BOOL_BOOL

Successors and predecessors for TO_BOOL_BOOL
Predecessors Count Percentage
LOAD_FAST 40 28.6%
CALL_ISINSTANCE 40 28.6%
CALL_METHOD_DESCRIPTOR_FAST 40 28.6%
TO_BOOL 20 14.3%
Successors Count Percentage
POP_JUMP_IF_FALSE 80 57.1%
POP_JUMP_IF_TRUE 60 42.9%

UNPACK_SEQUENCE_TWO_TUPLE

Successors and predecessors for UNPACK_SEQUENCE_TWO_TUPLE
Predecessors Count Percentage
RETURN_VALUE 921,600 100.0%
CALL_METHOD_DESCRIPTOR_NOARGS 40 0.0%
UNPACK_SEQUENCE 20 0.0%
Successors Count Percentage
STORE_FAST_STORE_FAST 921,660 100.0%

ENTER_EXECUTOR

Successors and predecessors for ENTER_EXECUTOR
Predecessors Count Percentage
CALL_PY_GENERAL 890,920 95.1%
POP_TOP 46,140 4.9%
ENTER_EXECUTOR 40 0.0%
Successors Count Percentage
RETURN_VALUE 921,600 98.3%
RETURN_CONST 15,360 1.6%
POP_TOP 60 0.0%
RESUME_CHECK 40 0.0%
ENTER_EXECUTOR 40 0.0%

Specialization stats

Specialization stats by family

BINARY_OP

specialization stats for BINARY_OP family
Kind Count Ratio
hit

Specialized instructions that complete.

60 75.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.

4,608,420 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.

921,660 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.

60 0.4%
hit

Specialized instructions that complete.

15,420 99.6%

LOAD_ATTR

specialization stats for LOAD_ATTR family
Kind Count Ratio
deferred

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

60 0.0%
hit

Specialized instructions that complete.

6,421,140 100.0%
Success Count Ratio
Success 200 90.9%
Failure 20 9.1%

LOAD_GLOBAL

specialization stats for LOAD_GLOBAL family
Kind Count Ratio
hit

Specialized instructions that complete.

1,812,900 100.0%
Success Count Ratio
Success 100 100.0%
Failure 0 0.0%

TO_BOOL

specialization stats for TO_BOOL family
Kind Count Ratio
deferred

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

100 0.0%
hit

Specialized instructions that complete.

1,843,260 100.0%
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.

1,843,260 100.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.

14,798,300 61.8%
Not specialized

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

920 0.0%
Specialized hits

Specialized instructions, e.g. LOAD_ATTR_MODULE that complete.

9,157,480 38.2%
Specialized misses

Specialized instructions, e.g. LOAD_ATTR_MODULE that deopt.

40 0.0%

Deferred by instruction

Breakdown of deferred (not specialized) instruction counts by family
Name Count Ratio
TO_BOOL 100 45.5%
FOR_ITER 60 27.3%
LOAD_ATTR 60 27.3%
BINARY_SLICE 0 0.0%
STORE_SLICE 0 0.0%
CACHE 0 0.0%
BINARY_SUBSCR 0 0.0%
GET_ITER 0 0.0%
INTERPRETER_EXIT 0 0.0%
MAKE_FUNCTION 0 0.0%

Misses by instruction

Breakdown of misses (specialized deopts) instruction counts by family
Name Count Ratio
RESUME 40 50.0%
RESUME_CHECK 40 50.0%
CACHE 0 0.0%
GET_ITER 0 0.0%
INTERPRETER_EXIT 0 0.0%
MAKE_FUNCTION 0 0.0%
NOP 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 15,420 0.6%
Calls to Python functions inlined 2,765,100 99.4%
Calls via PyEval_EvalFrame (total) 15,420 0.6%
Calls via PyEval_EvalFrame (vector) 15,420 0.6%
Calls via PyEval_EvalFrame (generator) 0 0.0%
Calls via PyEval_EvalFrame (legacy) 0 0.0%
Calls via PyEval_EvalFrame (function vectorcall) 15,420 0.6%
Calls via PyEval_EvalFrame (build class) 0 0.0%
Calls via PyEval_EvalFrame (slot) 0 0.0%
Calls via PyEval_EvalFrame (function ex) 0 0.0%
Calls via PyEval_EvalFrame (api) 0 0.0%
Calls via PyEval_EvalFrame (method) 0 0.0%
Frame objects created 0 0.0%
Frames pushed 2,780,520 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 8,909,180 7.8%
Frees to freelist 8,909,120
Allocations 105,999,680 92.2%
Allocations to 512 bytes 104,156,480 90.6%
Allocations to 4 kbytes 1,843,200 1.6%
Allocations over 4 kbytes 0 0.0%
Frees 109,074,283
Inline values 0
Interpreter mortal increfs 15,670,840 4.7%
Interpreter mortal decrefs 26,791,880 7.7%
Mortal increfs 192,190,127 58.2%
Mortal decrefs 286,764,532 82.7%
Interpreter immortal increfs 938,860 0.3%
Interpreter immortal decrefs 8,295,520 2.4%
Immortal increfs 121,666,967 36.8%
Immortal decrefs 24,929,722 7.2%
Materialize dict (on request) 0
Materialize dict (new key) 0
Materialize dict (too big) 0
Materialize dict (str subclass) 0
Method cache hits 193
Method cache misses 27
Method cache collisions 21
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.

260
Traces created

The number of traces that were successfully created.

0 0.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.

260 100.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.

260 100.0%
Inner loop found

A trace is truncated because it has an inner loop

0 0.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
Traces executed

The number of traces that were executed

2,826,300
Uops executed

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

95,951,500 3,395.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 7,480,100 7.8% 7.8%
_CHECK_VALIDITY 5,606,220 5.8% 13.6%
_GUARD_IS_NONE_POP 5,529,360 5.8% 19.4%
_GUARD_TYPE_VERSION 4,607,920 4.8% 24.2%
_LOAD_FAST_0 4,607,880 4.8% 29.0%
_CHECK_PERIODIC 3,763,100 3.9% 32.9%
_LOAD_FAST_1 3,717,080 3.9% 36.8%
_MAKE_WARM 2,841,600 3.0% 39.8%
_START_EXECUTOR 2,826,300 2.9% 42.7%
_LOAD_CONST_INLINE 2,795,440 2.9% 45.6%
_TIER2_RESUME_CHECK 2,764,800 2.9% 48.5% 0.0%
_LOAD_FAST_2 2,764,760 2.9% 51.4%
_DYNAMIC_EXIT 1,873,880 2.0% 53.3%
_PUSH_FRAME 1,873,880 2.0% 55.3%
_SAVE_RETURN_OFFSET 1,873,880 2.0% 57.2%
_CALL_NON_PY_GENERAL 1,858,500 1.9% 59.2%
_CHECK_IS_NOT_PY_CALLABLE 1,858,500 1.9% 61.1%
_LOAD_FAST_3 1,858,460 1.9% 63.1%
_CALL_METHOD_DESCRIPTOR_FAST 1,843,160 1.9% 65.0%
_GUARD_DORV_VALUES_INST_ATTR_FROM_DICT 1,843,160 1.9% 66.9%
_GUARD_KEYS_VERSION 1,843,160 1.9% 68.8%
_LOAD_ATTR_METHOD_NO_DICT 1,843,160 1.9% 70.7%
_LOAD_ATTR_METHOD_WITH_VALUES 1,843,160 1.9% 72.7%
_LOAD_CONST_INLINE_BORROW 1,843,160 1.9% 74.6%
_LOAD_FAST_4 1,843,160 1.9% 76.5%
_TO_BOOL_BOOL 1,843,120 1.9% 78.4%
_GUARD_IS_FALSE_POP 1,843,120 1.9% 80.3%
_PUSH_NULL 967,620 1.0% 81.4%
_EXIT_TRACE 952,380 1.0% 82.3%
_CHECK_FUNCTION 952,280 1.0% 83.3%
_CHECK_FUNCTION_VERSION 952,280 1.0% 84.3%
_PY_FRAME_GENERAL 952,280 1.0% 85.3%
_BUILD_TUPLE 921,600 1.0% 86.3%
_UNPACK_SEQUENCE_TWO_TUPLE 921,600 1.0% 87.2%
_CHECK_FUNCTION_VERSION_KW 921,600 1.0% 88.2%
_CHECK_MANAGED_OBJECT_HAS_VALUES 921,600 1.0% 89.2%
_LOAD_ATTR_INSTANCE_VALUE_1 921,600 1.0% 90.1%
_PY_FRAME_KW 921,600 1.0% 91.1%
_STORE_FAST_3 921,600 1.0% 92.0%
_STORE_FAST_4 921,600 1.0% 93.0%
_CALL_ISINSTANCE 921,560 1.0% 94.0%
_GUARD_IS_TRUE_POP 921,560 1.0% 94.9%
_LOAD_CONST_INLINE_WITH_NULL 921,560 1.0% 95.9%
_LOAD_FAST_5 921,560 1.0% 96.8%
_LOAD_FAST_6 921,560 1.0% 97.8%
_LOAD_FAST_7 921,560 1.0% 98.8%
_TO_BOOL 921,560 1.0% 99.7%
_GUARD_NOT_EXHAUSTED_TUPLE 46,080 0.0% 99.8% 33.3%
_ITER_CHECK_TUPLE 46,080 0.0% 99.8%
_ITER_NEXT_TUPLE 30,720 0.0% 99.9%
_STORE_FAST_1 30,720 0.0% 99.9%
_POP_TOP 30,660 0.0% 99.9%
_GUARD_NOT_EXHAUSTED_RANGE 15,360 0.0% 99.9% 0.4%
_ITER_CHECK_RANGE 15,360 0.0% 100.0%
_ITER_NEXT_RANGE 15,300 0.0% 100.0%
_JUMP_TO_TOP 15,300 0.0% 100.0%
_STORE_FAST_0 15,300 0.0% 100.0%
_DEOPT 40 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: 2024-10-25