Skip to content

Latest commit

 

History

History
7828 lines (7227 loc) · 147 KB

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

File metadata and controls

7828 lines (7227 loc) · 147 KB

Pystats results

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

Execution counts

Execution counts for Tier 1 instructions.

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

Name Count Self Cumulative Miss ratio
LOAD_FAST 388,315,860 24.6% 24.6%
LOAD_ATTR_INSTANCE_VALUE 138,892,980 8.8% 33.4% 24.4%
RETURN_VALUE 134,945,800 8.5% 41.9%
STORE_FAST 96,783,040 6.1% 48.1%
LOAD_CONST 82,826,940 5.2% 53.3%
STORE_ATTR_INSTANCE_VALUE 79,248,520 5.0% 58.3% 17.7%
TO_BOOL_BOOL 70,535,560 4.5% 62.8%
LOAD_ATTR_METHOD_WITH_VALUES 59,824,760 3.8% 66.6% 26.3%
CALL_PY_EXACT_ARGS 59,794,580 3.8% 70.4% 23.4%
RESUME_CHECK 59,538,940 3.8% 74.2%
ENTER_EXECUTOR 57,394,980 3.6% 77.8%
POP_JUMP_IF_FALSE 54,090,240 3.4% 81.2%
LOAD_GLOBAL_MODULE 46,628,420 3.0% 84.2%
POP_JUMP_IF_NOT_NONE 43,982,660 2.8% 87.0%
POP_JUMP_IF_NONE 28,514,300 1.8% 88.8%
LOAD_FAST_LOAD_FAST 25,602,380 1.6% 90.4%
COMPARE_OP_INT 21,331,580 1.4% 91.7%
POP_JUMP_IF_TRUE 21,055,700 1.3% 93.1%
LOAD_GLOBAL_BUILTIN 21,053,080 1.3% 94.4%
CALL_ISINSTANCE 21,052,720 1.3% 95.7%
POP_TOP 13,909,660 0.9% 96.6%
COPY 8,568,500 0.5% 97.2%
JUMP_FORWARD 8,562,080 0.5% 97.7%
SWAP 8,548,260 0.5% 98.2%
BINARY_OP 8,002,520 0.5% 98.7%
BINARY_OP_ADD_INT 7,412,400 0.5% 99.2%
BINARY_SUBSCR_LIST_INT 6,201,740 0.4% 99.6%
BINARY_OP_SUBTRACT_INT 3,890,440 0.2% 99.9%
FOR_ITER_RANGE 745,940 0.0% 99.9%
GET_ITER 745,040 0.0% 100.0%
STORE_SUBSCR_LIST_INT 692,360 0.0% 100.0%
NOP 15,180 0.0% 100.0%
RETURN_CONST 10,880 0.0% 100.0%
UNARY_NOT 9,820 0.0% 100.0%
EXIT_INIT_CHECK 7,800 0.0% 100.0%
CALL_ALLOC_AND_ENTER_INIT 7,800 0.0% 100.0%
LOAD_ATTR 5,880 0.0% 100.0%
STORE_ATTR 4,560 0.0% 100.0%
LOAD_GLOBAL 3,520 0.0% 100.0%
CALL 3,040 0.0% 100.0%
BUILD_LIST 2,560 0.0% 100.0%
JUMP_BACKWARD 1,320 0.0% 100.0%
EXTENDED_ARG 960 0.0% 100.0%
INTERPRETER_EXIT 840 0.0% 100.0%
RESUME 740 0.0% 100.0%
PUSH_NULL 640 0.0% 100.0%
TO_BOOL 600 0.0% 100.0%
CALL_NON_PY_GENERAL 480 0.0% 100.0%
COMPARE_OP 440 0.0% 100.0%
CALL_BUILTIN_CLASS 360 0.0% 100.0%
LOAD_DEREF 160 0.0% 100.0%
FOR_ITER 120 0.0% 100.0%
LOAD_ATTR_MODULE 120 0.0% 100.0%
BINARY_SUBSCR 80 0.0% 100.0%
STORE_SUBSCR 80 0.0% 100.0%
CALL_FUNCTION_EX 80 0.0% 100.0%
COPY_FREE_VARS 80 0.0% 100.0%
BINARY_OP_SUBTRACT_FLOAT 60 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_ATTR_INSTANCE_VALUE 86,246,200 5.5% 5.5%
STORE_FAST LOAD_FAST 71,751,580 4.5% 10.0%
LOAD_FAST STORE_ATTR_INSTANCE_VALUE 65,916,940 4.2% 14.2%
CALL_PY_EXACT_ARGS RESUME_CHECK 59,530,100 3.8% 18.0%
LOAD_FAST LOAD_ATTR_METHOD_WITH_VALUES 59,519,240 3.8% 21.7%
STORE_ATTR_INSTANCE_VALUE LOAD_FAST 55,837,160 3.5% 25.3%
RETURN_VALUE RETURN_VALUE 46,580,600 3.0% 28.2%
RETURN_VALUE TO_BOOL_BOOL 46,473,860 2.9% 31.2%
LOAD_CONST LOAD_FAST 43,453,160 2.8% 33.9%
POP_JUMP_IF_NOT_NONE LOAD_FAST 37,491,600 2.4% 36.3%
LOAD_FAST POP_JUMP_IF_NOT_NONE 36,512,720 2.3% 38.6%
RESUME_CHECK LOAD_FAST 34,715,540 2.2% 40.8%
LOAD_ATTR_INSTANCE_VALUE STORE_FAST 33,103,880 2.1% 42.9%
POP_JUMP_IF_FALSE LOAD_FAST 30,249,200 1.9% 44.8%
ENTER_EXECUTOR RETURN_VALUE 29,489,300 1.9% 46.7%
LOAD_FAST POP_JUMP_IF_NONE 28,514,300 1.8% 48.5%
LOAD_FAST LOAD_GLOBAL_MODULE 27,558,080 1.7% 50.2%
LOAD_FAST RETURN_VALUE 27,257,180 1.7% 52.0%
LOAD_ATTR_INSTANCE_VALUE RETURN_VALUE 25,870,100 1.6% 53.6%
TO_BOOL_BOOL ENTER_EXECUTOR 25,418,520 1.6% 55.2%
LOAD_ATTR_INSTANCE_VALUE CALL_PY_EXACT_ARGS 24,809,480 1.6% 56.8%
RETURN_VALUE STORE_FAST 24,280,980 1.5% 58.3%
TO_BOOL_BOOL POP_JUMP_IF_FALSE 24,051,660 1.5% 59.8%
COMPARE_OP_INT POP_JUMP_IF_FALSE 21,331,580 1.4% 61.2%
LOAD_ATTR_INSTANCE_VALUE LOAD_FAST 21,305,300 1.3% 62.5%
LOAD_ATTR_METHOD_WITH_VALUES LOAD_FAST_LOAD_FAST 21,081,420 1.3% 63.9%
LOAD_FAST STORE_FAST 21,068,380 1.3% 65.2%
POP_JUMP_IF_NONE ENTER_EXECUTOR 21,057,400 1.3% 66.5%
TO_BOOL_BOOL POP_JUMP_IF_TRUE 21,055,600 1.3% 67.9%
LOAD_GLOBAL_BUILTIN LOAD_FAST 21,053,080 1.3% 69.2%
POP_JUMP_IF_TRUE LOAD_FAST 21,052,800 1.3% 70.5%
LOAD_FAST_LOAD_FAST LOAD_ATTR_INSTANCE_VALUE 21,052,760 1.3% 71.9%
STORE_FAST LOAD_GLOBAL_BUILTIN 21,052,640 1.3% 73.2%
CALL_ISINSTANCE TO_BOOL_BOOL 21,052,640 1.3% 74.5%
LOAD_GLOBAL_MODULE CALL_ISINSTANCE 21,052,640 1.3% 75.9%
ENTER_EXECUTOR LOAD_ATTR_INSTANCE_VALUE 19,174,480 1.2% 77.1%
STORE_ATTR_INSTANCE_VALUE LOAD_CONST 18,662,140 1.2% 78.3%
RESUME_CHECK LOAD_CONST 18,615,380 1.2% 79.4%
LOAD_ATTR_METHOD_WITH_VALUES CALL_PY_EXACT_ARGS 17,874,140 1.1% 80.6%
LOAD_ATTR_METHOD_WITH_VALUES LOAD_FAST 17,372,420 1.1% 81.7%
LOAD_ATTR_INSTANCE_VALUE LOAD_CONST 17,290,680 1.1% 82.8%
RETURN_VALUE POP_TOP 13,878,280 0.9% 83.7%
LOAD_FAST CALL_PY_EXACT_ARGS 13,615,480 0.9% 84.5%
POP_JUMP_IF_FALSE LOAD_CONST 13,614,080 0.9% 85.4%
LOAD_CONST STORE_FAST 13,613,120 0.9% 86.2%
LOAD_GLOBAL_MODULE COMPARE_OP_INT 10,964,360 0.7% 86.9%
ENTER_EXECUTOR POP_JUMP_IF_FALSE 8,706,620 0.6% 87.5%
COPY LOAD_ATTR_INSTANCE_VALUE 8,548,060 0.5% 88.0%
SWAP STORE_ATTR_INSTANCE_VALUE 8,548,060 0.5% 88.6%
JUMP_FORWARD LOAD_FAST 8,189,600 0.5% 89.1%
POP_TOP JUMP_FORWARD 8,184,640 0.5% 89.6%
LOAD_CONST BINARY_OP 7,997,040 0.5% 90.1%
LOAD_ATTR_INSTANCE_VALUE POP_JUMP_IF_NOT_NONE 7,469,900 0.5% 90.6%
POP_JUMP_IF_NONE LOAD_FAST 7,441,180 0.5% 91.1%
LOAD_CONST COMPARE_OP_INT 7,145,040 0.5% 91.5%
LOAD_CONST BINARY_OP_ADD_INT 6,721,860 0.4% 91.9%
LOAD_FAST ENTER_EXECUTOR 6,682,080 0.4% 92.4%
RESUME_CHECK LOAD_GLOBAL_MODULE 6,204,980 0.4% 92.8%
LOAD_FAST BINARY_SUBSCR_LIST_INT 6,201,700 0.4% 93.1%
POP_JUMP_IF_FALSE RETURN_VALUE 5,735,000 0.4% 93.5%
POP_TOP LOAD_FAST 5,720,460 0.4% 93.9%
LOAD_FAST COPY 5,547,120 0.4% 94.2%
BINARY_OP LOAD_CONST 4,797,140 0.3% 94.5%
LOAD_FAST_LOAD_FAST STORE_ATTR_INSTANCE_VALUE 4,514,200 0.3% 94.8%
LOAD_ATTR_INSTANCE_VALUE LOAD_GLOBAL_MODULE 4,465,200 0.3% 95.1%
LOAD_CONST BINARY_OP_SUBTRACT_INT 3,890,400 0.2% 95.3%
BINARY_OP_ADD_INT SWAP 3,745,960 0.2% 95.6%
RETURN_VALUE LOAD_FAST 3,726,400 0.2% 95.8%
STORE_ATTR_INSTANCE_VALUE LOAD_GLOBAL_MODULE 3,722,100 0.2% 96.1%
LOAD_GLOBAL_MODULE LOAD_ATTR_INSTANCE_VALUE 3,230,340 0.2% 96.3%
BINARY_SUBSCR_LIST_INT STORE_FAST 3,225,760 0.2% 96.5%
LOAD_ATTR_INSTANCE_VALUE COMPARE_OP_INT 3,221,960 0.2% 96.7%
STORE_FAST LOAD_CONST 3,200,000 0.2% 96.9%
BINARY_OP_SUBTRACT_INT SWAP 3,199,980 0.2% 97.1%
LOAD_GLOBAL_MODULE CALL_PY_EXACT_ARGS 3,199,880 0.2% 97.3%
LOAD_ATTR_METHOD_WITH_VALUES LOAD_GLOBAL_MODULE 3,199,600 0.2% 97.5%
POP_JUMP_IF_FALSE ENTER_EXECUTOR 3,019,260 0.2% 97.7%
LOAD_GLOBAL_MODULE COPY 3,001,100 0.2% 97.9%
POP_JUMP_IF_NOT_NONE LOAD_FAST_LOAD_FAST 2,994,520 0.2% 98.0%
LOAD_GLOBAL_MODULE TO_BOOL_BOOL 2,978,940 0.2% 98.2%
LOAD_FAST LOAD_CONST 2,976,400 0.2% 98.4%
BINARY_OP_ADD_INT LOAD_FAST 2,975,980 0.2% 98.6%
BINARY_SUBSCR_LIST_INT LOAD_FAST 2,975,980 0.2% 98.8%
POP_JUMP_IF_NOT_NONE LOAD_CONST 2,974,080 0.2% 99.0%
BINARY_OP SWAP 1,602,320 0.1% 99.1%
BINARY_OP LOAD_FAST 1,600,040 0.1% 99.2%
POP_JUMP_IF_FALSE LOAD_GLOBAL_MODULE 1,436,380 0.1% 99.3%
STORE_ATTR_INSTANCE_VALUE LOAD_FAST_LOAD_FAST 756,500 0.0% 99.3%
FOR_ITER_RANGE STORE_FAST 745,460 0.0% 99.4%
GET_ITER FOR_ITER_RANGE 744,680 0.0% 99.4%
LOAD_GLOBAL_MODULE GET_ITER 744,620 0.0% 99.5%
LOAD_GLOBAL_MODULE STORE_FAST 744,600 0.0% 99.5%
LOAD_FAST STORE_SUBSCR_LIST_INT 692,320 0.0% 99.6%
LOAD_GLOBAL_MODULE LOAD_FAST 692,260 0.0% 99.6%
BINARY_OP_ADD_INT LOAD_CONST 690,460 0.0% 99.7%
BINARY_OP_SUBTRACT_INT LOAD_FAST 690,460 0.0% 99.7%
LOAD_ATTR_INSTANCE_VALUE BINARY_OP_ADD_INT 690,440 0.0% 99.7%
STORE_SUBSCR_LIST_INT ENTER_EXECUTOR 690,140 0.0% 99.8%
LOAD_ATTR_INSTANCE_VALUE LOAD_ATTR_INSTANCE_VALUE 640,040 0.0% 99.8%
POP_JUMP_IF_NOT_NONE ENTER_EXECUTOR 522,460 0.0% 99.9%

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 620 73.8%
RESUME 220 26.2%

BINARY_SUBSCR

Successors and predecessors for BINARY_SUBSCR
Predecessors Count Percentage
LOAD_FAST 80 100.0%
Successors Count Percentage
BINARY_SUBSCR_LIST_INT 40 50.0%
LOAD_FAST 20 25.0%
STORE_FAST 20 25.0%

EXIT_INIT_CHECK

Successors and predecessors for EXIT_INIT_CHECK
Predecessors Count Percentage
RETURN_CONST 7,800 100.0%
Successors Count Percentage
RETURN_VALUE 7,800 100.0%

GET_ITER

Successors and predecessors for GET_ITER
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 744,620 99.9%
CALL_BUILTIN_CLASS 300 0.0%
LOAD_FAST 80 0.0%
CALL 20 0.0%
LOAD_GLOBAL 20 0.0%
Successors Count Percentage
FOR_ITER_RANGE 744,680 100.0%
EXTENDED_ARG 320 0.0%
FOR_ITER 40 0.0%

INTERPRETER_EXIT

Successors and predecessors for INTERPRETER_EXIT
Predecessors Count Percentage
RETURN_CONST 840 100.0%

NOP

Successors and predecessors for NOP
Predecessors Count Percentage
POP_JUMP_IF_FALSE 13,820 91.0%
ENTER_EXECUTOR 1,280 8.4%
POP_TOP 80 0.5%
Successors Count Percentage
LOAD_FAST 15,100 99.5%
LOAD_DEREF 80 0.5%

POP_TOP

Successors and predecessors for POP_TOP
Predecessors Count Percentage
RETURN_VALUE 13,878,280 99.8%
POP_JUMP_IF_FALSE 21,900 0.2%
ENTER_EXECUTOR 3,820 0.0%
POP_JUMP_IF_TRUE 2,880 0.0%
RETURN_CONST 2,240 0.0%
Successors Count Percentage
JUMP_FORWARD 8,184,640 58.8%
LOAD_FAST 5,720,460 41.1%
RETURN_CONST 1,920 0.0%
LOAD_GLOBAL_MODULE 1,680 0.0%
JUMP_BACKWARD 320 0.0%

PUSH_NULL

Successors and predecessors for PUSH_NULL
Predecessors Count Percentage
LOAD_FAST 480 75.0%
LOAD_DEREF 80 12.5%
LOAD_ATTR_MODULE 60 9.4%
LOAD_ATTR 20 3.1%
Successors Count Percentage
CALL_NON_PY_GENERAL 400 62.5%
CALL 160 25.0%
LOAD_FAST 80 12.5%

RETURN_VALUE

Successors and predecessors for RETURN_VALUE
Predecessors Count Percentage
RETURN_VALUE 46,580,600 34.5%
ENTER_EXECUTOR 29,489,300 21.9%
LOAD_FAST 27,257,180 20.2%
LOAD_ATTR_INSTANCE_VALUE 25,870,100 19.2%
POP_JUMP_IF_FALSE 5,735,000 4.2%
Successors Count Percentage
RETURN_VALUE 46,580,600 34.5%
TO_BOOL_BOOL 46,473,860 34.4%
STORE_FAST 24,280,980 18.0%
POP_TOP 13,878,280 10.3%
LOAD_FAST 3,726,400 2.8%

STORE_SUBSCR

Successors and predecessors for STORE_SUBSCR
Predecessors Count Percentage
LOAD_FAST 80 100.0%
Successors Count Percentage
STORE_SUBSCR_LIST_INT 40 50.0%
JUMP_BACKWARD 20 25.0%
RETURN_CONST 20 25.0%

TO_BOOL

Successors and predecessors for TO_BOOL
Predecessors Count Percentage
COPY 160 26.7%
RETURN_VALUE 80 13.3%
CALL 80 13.3%
CALL_ISINSTANCE 80 13.3%
LOAD_GLOBAL 60 10.0%
Successors Count Percentage
TO_BOOL_BOOL 300 50.0%
POP_JUMP_IF_FALSE 160 26.7%
POP_JUMP_IF_TRUE 100 16.7%
UNARY_NOT 40 6.7%

UNARY_NOT

Successors and predecessors for UNARY_NOT
Predecessors Count Percentage
TO_BOOL_BOOL 9,780 99.6%
TO_BOOL 40 0.4%
Successors Count Percentage
RETURN_VALUE 5,660 57.6%
COPY 4,160 42.4%

BINARY_OP

Successors and predecessors for BINARY_OP
Predecessors Count Percentage
LOAD_CONST 7,997,040 99.9%
BINARY_OP 2,840 0.0%
LOAD_GLOBAL_MODULE 2,540 0.0%
LOAD_FAST 40 0.0%
LOAD_ATTR 20 0.0%
Successors Count Percentage
LOAD_CONST 4,797,140 59.9%
SWAP 1,602,320 20.0%
LOAD_FAST 1,600,040 20.0%
BINARY_OP 2,840 0.0%
BINARY_OP_ADD_INT 100 0.0%

BUILD_LIST

Successors and predecessors for BUILD_LIST
Predecessors Count Percentage
LOAD_CONST 2,560 100.0%
Successors Count Percentage
LOAD_GLOBAL_MODULE 2,520 98.4%
LOAD_GLOBAL 40 1.6%

CALL

Successors and predecessors for CALL
Predecessors Count Percentage
LOAD_GLOBAL 540 17.8%
LOAD_GLOBAL_MODULE 540 17.8%
LOAD_ATTR 500 16.4%
LOAD_ATTR_METHOD_WITH_VALUES 400 13.2%
LOAD_FAST 360 11.8%
Successors Count Percentage
CALL_PY_EXACT_ARGS 800 26.3%
CALL_ALLOC_AND_ENTER_INIT 520 17.1%
RESUME 440 14.5%
RESUME_CHECK 360 11.8%
STORE_FAST 200 6.6%

CALL_FUNCTION_EX

Successors and predecessors for CALL_FUNCTION_EX
Predecessors Count Percentage
LOAD_FAST 80 100.0%
Successors Count Percentage
COPY_FREE_VARS 80 100.0%

COMPARE_OP

Successors and predecessors for COMPARE_OP
Predecessors Count Percentage
LOAD_CONST 240 54.5%
LOAD_GLOBAL 60 13.6%
LOAD_GLOBAL_MODULE 60 13.6%
LOAD_ATTR 40 9.1%
LOAD_ATTR_INSTANCE_VALUE 40 9.1%
Successors Count Percentage
POP_JUMP_IF_FALSE 220 50.0%
COMPARE_OP_INT 220 50.0%

COPY

Successors and predecessors for COPY
Predecessors Count Percentage
LOAD_FAST 5,547,120 64.7%
LOAD_GLOBAL_MODULE 3,001,100 35.0%
LOAD_ATTR_INSTANCE_VALUE 16,020 0.2%
UNARY_NOT 4,160 0.0%
LOAD_ATTR 60 0.0%
Successors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 8,548,060 99.8%
TO_BOOL_BOOL 20,080 0.2%
LOAD_ATTR 200 0.0%
TO_BOOL 160 0.0%

COPY_FREE_VARS

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

ENTER_EXECUTOR

Successors and predecessors for ENTER_EXECUTOR
Predecessors Count Percentage
TO_BOOL_BOOL 25,418,520 44.3%
POP_JUMP_IF_NONE 21,057,400 36.7%
LOAD_FAST 6,682,080 11.6%
POP_JUMP_IF_FALSE 3,019,260 5.3%
STORE_SUBSCR_LIST_INT 690,140 1.2%
Successors Count Percentage
RETURN_VALUE 29,489,300 51.4%
LOAD_ATTR_INSTANCE_VALUE 19,174,480 33.4%
POP_JUMP_IF_FALSE 8,706,620 15.2%
LOAD_ATTR_METHOD_WITH_VALUES 6,380 0.0%
ENTER_EXECUTOR 5,120 0.0%

EXTENDED_ARG

Successors and predecessors for EXTENDED_ARG
Predecessors Count Percentage
GET_ITER 320 33.3%
JUMP_BACKWARD 320 33.3%
POP_JUMP_IF_FALSE 320 33.3%
Successors Count Percentage
FOR_ITER_RANGE 600 62.5%
JUMP_BACKWARD 320 33.3%
FOR_ITER 40 4.2%

FOR_ITER

Successors and predecessors for FOR_ITER
Predecessors Count Percentage
GET_ITER 40 33.3%
EXTENDED_ARG 40 33.3%
JUMP_BACKWARD 40 33.3%
Successors Count Percentage
STORE_FAST 60 50.0%
FOR_ITER_RANGE 60 50.0%

JUMP_BACKWARD

Successors and predecessors for JUMP_BACKWARD
Predecessors Count Percentage
POP_JUMP_IF_NONE 340 25.8%
POP_TOP 320 24.2%
EXTENDED_ARG 320 24.2%
STORE_SUBSCR_LIST_INT 320 24.2%
STORE_SUBSCR 20 1.5%
Successors Count Percentage
FOR_ITER_RANGE 600 45.5%
EXTENDED_ARG 320 24.2%
LOAD_GLOBAL_MODULE 300 22.7%
FOR_ITER 40 3.0%
POP_TOP 20 1.5%

JUMP_FORWARD

Successors and predecessors for JUMP_FORWARD
Predecessors Count Percentage
POP_TOP 8,184,640 95.6%
STORE_FAST 377,440 4.4%
Successors Count Percentage
LOAD_FAST 8,189,600 95.6%
LOAD_FAST_LOAD_FAST 372,480 4.4%

LOAD_ATTR

Successors and predecessors for LOAD_ATTR
Predecessors Count Percentage
LOAD_FAST 2,880 49.0%
LOAD_GLOBAL_MODULE 2,000 34.0%
LOAD_ATTR 280 4.8%
LOAD_GLOBAL 240 4.1%
COPY 200 3.4%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 1,960 33.3%
LOAD_ATTR_INSTANCE_VALUE 1,100 18.7%
LOAD_ATTR_METHOD_WITH_VALUES 700 11.9%
CALL 500 8.5%
LOAD_FAST 440 7.5%

LOAD_CONST

Successors and predecessors for LOAD_CONST
Predecessors Count Percentage
STORE_ATTR_INSTANCE_VALUE 18,662,140 22.5%
RESUME_CHECK 18,615,380 22.5%
LOAD_ATTR_INSTANCE_VALUE 17,290,680 20.9%
POP_JUMP_IF_FALSE 13,614,080 16.4%
BINARY_OP 4,797,140 5.8%
Successors Count Percentage
LOAD_FAST 43,453,160 52.5%
STORE_FAST 13,613,120 16.4%
BINARY_OP 7,997,040 9.7%
COMPARE_OP_INT 7,145,040 8.6%
BINARY_OP_ADD_INT 6,721,860 8.1%

LOAD_DEREF

Successors and predecessors for LOAD_DEREF
Predecessors Count Percentage
NOP 80 50.0%
STORE_FAST 80 50.0%
Successors Count Percentage
PUSH_NULL 80 50.0%
STORE_FAST 80 50.0%

LOAD_FAST

Successors and predecessors for LOAD_FAST
Predecessors Count Percentage
STORE_FAST 71,751,580 18.5%
STORE_ATTR_INSTANCE_VALUE 55,837,160 14.4%
LOAD_CONST 43,453,160 11.2%
POP_JUMP_IF_NOT_NONE 37,491,600 9.7%
RESUME_CHECK 34,715,540 8.9%
Successors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 86,246,200 22.2%
STORE_ATTR_INSTANCE_VALUE 65,916,940 17.0%
LOAD_ATTR_METHOD_WITH_VALUES 59,519,240 15.3%
POP_JUMP_IF_NOT_NONE 36,512,720 9.4%
POP_JUMP_IF_NONE 28,514,300 7.3%

LOAD_FAST_LOAD_FAST

Successors and predecessors for LOAD_FAST_LOAD_FAST
Predecessors Count Percentage
LOAD_ATTR_METHOD_WITH_VALUES 21,081,420 82.3%
POP_JUMP_IF_NOT_NONE 2,994,520 11.7%
STORE_ATTR_INSTANCE_VALUE 756,500 3.0%
JUMP_FORWARD 372,480 1.5%
STORE_FAST 372,160 1.5%
Successors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 21,052,760 82.2%
STORE_ATTR_INSTANCE_VALUE 4,514,200 17.6%
CALL_PY_EXACT_ARGS 30,380 0.1%
LOAD_FAST_LOAD_FAST 3,200 0.0%
STORE_ATTR 1,280 0.0%

LOAD_GLOBAL

Successors and predecessors for LOAD_GLOBAL
Predecessors Count Percentage
LOAD_FAST 640 18.2%
STORE_FAST 560 15.9%
RETURN_VALUE 280 8.0%
LOAD_CONST 280 8.0%
POP_TOP 240 6.8%
Successors Count Percentage
LOAD_GLOBAL_MODULE 1,640 46.6%
CALL 540 15.3%
LOAD_FAST 260 7.4%
LOAD_ATTR 240 6.8%
LOAD_GLOBAL 240 6.8%

POP_JUMP_IF_FALSE

Successors and predecessors for POP_JUMP_IF_FALSE
Predecessors Count Percentage
TO_BOOL_BOOL 24,051,660 44.5%
COMPARE_OP_INT 21,331,580 39.4%
ENTER_EXECUTOR 8,706,620 16.1%
COMPARE_OP 220 0.0%
TO_BOOL 160 0.0%
Successors Count Percentage
LOAD_FAST 30,249,200 55.9%
LOAD_CONST 13,614,080 25.2%
RETURN_VALUE 5,735,000 10.6%
ENTER_EXECUTOR 3,019,260 5.6%
LOAD_GLOBAL_MODULE 1,436,380 2.7%

POP_JUMP_IF_NONE

Successors and predecessors for POP_JUMP_IF_NONE
Predecessors Count Percentage
LOAD_FAST 28,514,300 100.0%
Successors Count Percentage
ENTER_EXECUTOR 21,057,400 73.8%
LOAD_FAST 7,441,180 26.1%
LOAD_FAST_LOAD_FAST 15,040 0.1%
JUMP_BACKWARD 340 0.0%
LOAD_GLOBAL_MODULE 300 0.0%

POP_JUMP_IF_NOT_NONE

Successors and predecessors for POP_JUMP_IF_NOT_NONE
Predecessors Count Percentage
LOAD_FAST 36,512,720 83.0%
LOAD_ATTR_INSTANCE_VALUE 7,469,900 17.0%
LOAD_ATTR 40 0.0%
Successors Count Percentage
LOAD_FAST 37,491,600 85.2%
LOAD_FAST_LOAD_FAST 2,994,520 6.8%
LOAD_CONST 2,974,080 6.8%
ENTER_EXECUTOR 522,460 1.2%

POP_JUMP_IF_TRUE

Successors and predecessors for POP_JUMP_IF_TRUE
Predecessors Count Percentage
TO_BOOL_BOOL 21,055,600 100.0%
TO_BOOL 100 0.0%
Successors Count Percentage
LOAD_FAST 21,052,800 100.0%
POP_TOP 2,880 0.0%
RETURN_VALUE 20 0.0%

RETURN_CONST

Successors and predecessors for RETURN_CONST
Predecessors Count Percentage
STORE_ATTR_INSTANCE_VALUE 6,280 57.7%
POP_TOP 1,920 17.6%
STORE_SUBSCR_LIST_INT 1,900 17.5%
FOR_ITER_RANGE 320 2.9%
ENTER_EXECUTOR 300 2.8%
Successors Count Percentage
EXIT_INIT_CHECK 7,800 71.7%
POP_TOP 2,240 20.6%
INTERPRETER_EXIT 840 7.7%

STORE_ATTR

Successors and predecessors for STORE_ATTR
Predecessors Count Percentage
LOAD_FAST 2,640 57.9%
LOAD_FAST_LOAD_FAST 1,280 28.1%
STORE_ATTR 320 7.0%
SWAP 200 4.4%
LOAD_GLOBAL 60 1.3%
Successors Count Percentage
LOAD_FAST 1,380 30.3%
STORE_ATTR_INSTANCE_VALUE 1,320 28.9%
LOAD_FAST_LOAD_FAST 940 20.6%
LOAD_CONST 400 8.8%
STORE_ATTR 320 7.0%

STORE_FAST

Successors and predecessors for STORE_FAST
Predecessors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 33,103,880 34.2%
RETURN_VALUE 24,280,980 25.1%
LOAD_FAST 21,068,380 21.8%
LOAD_CONST 13,613,120 14.1%
BINARY_SUBSCR_LIST_INT 3,225,760 3.3%
Successors Count Percentage
LOAD_FAST 71,751,580 74.1%
LOAD_GLOBAL_BUILTIN 21,052,640 21.8%
LOAD_CONST 3,200,000 3.3%
JUMP_FORWARD 377,440 0.4%
LOAD_FAST_LOAD_FAST 372,160 0.4%

SWAP

Successors and predecessors for SWAP
Predecessors Count Percentage
BINARY_OP_ADD_INT 3,745,960 43.8%
BINARY_OP_SUBTRACT_INT 3,199,980 37.4%
BINARY_OP 1,602,320 18.7%
Successors Count Percentage
STORE_ATTR_INSTANCE_VALUE 8,548,060 100.0%
STORE_ATTR 200 0.0%

RESUME

Successors and predecessors for RESUME
Predecessors Count Percentage
CALL 440 59.5%
CACHE 220 29.7%
CALL_PY_EXACT_ARGS 60 8.1%
COPY_FREE_VARS 20 2.7%
Successors Count Percentage
LOAD_FAST 300 40.5%
LOAD_GLOBAL 220 29.7%
LOAD_CONST 200 27.0%
LOAD_FAST_LOAD_FAST 20 2.7%

BINARY_OP_ADD_INT

Successors and predecessors for BINARY_OP_ADD_INT
Predecessors Count Percentage
LOAD_CONST 6,721,860 90.7%
LOAD_ATTR_INSTANCE_VALUE 690,440 9.3%
BINARY_OP 100 0.0%
Successors Count Percentage
SWAP 3,745,960 50.5%
LOAD_FAST 2,975,980 40.1%
LOAD_CONST 690,460 9.3%

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_OP_SUBTRACT_INT

Successors and predecessors for BINARY_OP_SUBTRACT_INT
Predecessors Count Percentage
LOAD_CONST 3,890,400 100.0%
BINARY_OP 40 0.0%
Successors Count Percentage
SWAP 3,199,980 82.3%
LOAD_FAST 690,460 17.7%

BINARY_SUBSCR_LIST_INT

Successors and predecessors for BINARY_SUBSCR_LIST_INT
Predecessors Count Percentage
LOAD_FAST 6,201,700 100.0%
BINARY_SUBSCR 40 0.0%
Successors Count Percentage
STORE_FAST 3,225,760 52.0%
LOAD_FAST 2,975,980 48.0%

CALL_ALLOC_AND_ENTER_INIT

Successors and predecessors for CALL_ALLOC_AND_ENTER_INIT
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 5,600 71.8%
RETURN_VALUE 1,680 21.5%
CALL 520 6.7%
Successors Count Percentage
RESUME_CHECK 7,800 100.0%

CALL_BUILTIN_CLASS

Successors and predecessors for CALL_BUILTIN_CLASS
Predecessors Count Percentage
LOAD_FAST 320 88.9%
CALL 40 11.1%
Successors Count Percentage
GET_ITER 300 83.3%
STORE_FAST 60 16.7%

CALL_ISINSTANCE

Successors and predecessors for CALL_ISINSTANCE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 21,052,640 100.0%
CALL 80 0.0%
Successors Count Percentage
TO_BOOL_BOOL 21,052,640 100.0%
TO_BOOL 80 0.0%

CALL_NON_PY_GENERAL

Successors and predecessors for CALL_NON_PY_GENERAL
Predecessors Count Percentage
PUSH_NULL 400 83.3%
CALL 80 16.7%
Successors Count Percentage
POP_TOP 360 75.0%
LOAD_FAST 60 12.5%
STORE_FAST 60 12.5%

CALL_PY_EXACT_ARGS

Successors and predecessors for CALL_PY_EXACT_ARGS
Predecessors Count Percentage
LOAD_ATTR_INSTANCE_VALUE 24,809,480 41.5%
LOAD_ATTR_METHOD_WITH_VALUES 17,874,140 29.9%
LOAD_FAST 13,615,480 22.8%
LOAD_GLOBAL_MODULE 3,199,880 5.4%
CALL_PY_EXACT_ARGS 264,420 0.4%
Successors Count Percentage
RESUME_CHECK 59,530,100 99.6%
CALL_PY_EXACT_ARGS 264,420 0.4%
RESUME 60 0.0%

COMPARE_OP_INT

Successors and predecessors for COMPARE_OP_INT
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 10,964,360 51.4%
LOAD_CONST 7,145,040 33.5%
LOAD_ATTR_INSTANCE_VALUE 3,221,960 15.1%
COMPARE_OP 220 0.0%
Successors Count Percentage
POP_JUMP_IF_FALSE 21,331,580 100.0%

FOR_ITER_RANGE

Successors and predecessors for FOR_ITER_RANGE
Predecessors Count Percentage
GET_ITER 744,680 99.8%
EXTENDED_ARG 600 0.1%
JUMP_BACKWARD 600 0.1%
FOR_ITER 60 0.0%
Successors Count Percentage
STORE_FAST 745,460 99.9%
RETURN_CONST 320 0.0%
LOAD_FAST 160 0.0%

LOAD_ATTR_INSTANCE_VALUE

Successors and predecessors for LOAD_ATTR_INSTANCE_VALUE
Predecessors Count Percentage
LOAD_FAST 86,246,200 62.1%
LOAD_FAST_LOAD_FAST 21,052,760 15.2%
ENTER_EXECUTOR 19,174,480 13.8%
COPY 8,548,060 6.2%
LOAD_GLOBAL_MODULE 3,230,340 2.3%
Successors Count Percentage
STORE_FAST 33,103,880 23.8%
RETURN_VALUE 25,870,100 18.6%
CALL_PY_EXACT_ARGS 24,809,480 17.9%
LOAD_FAST 21,305,300 15.3%
LOAD_CONST 17,290,680 12.4%

LOAD_ATTR_METHOD_WITH_VALUES

Successors and predecessors for LOAD_ATTR_METHOD_WITH_VALUES
Predecessors Count Percentage
LOAD_FAST 59,519,240 99.5%
LOAD_ATTR_METHOD_WITH_VALUES 296,740 0.5%
ENTER_EXECUTOR 6,380 0.0%
RETURN_VALUE 1,680 0.0%
LOAD_ATTR 700 0.0%
Successors Count Percentage
LOAD_FAST_LOAD_FAST 21,081,420 35.2%
CALL_PY_EXACT_ARGS 17,874,140 29.9%
LOAD_FAST 17,372,420 29.0%
LOAD_GLOBAL_MODULE 3,199,600 5.3%
LOAD_ATTR_METHOD_WITH_VALUES 296,740 0.5%

LOAD_ATTR_MODULE

Successors and predecessors for LOAD_ATTR_MODULE
Predecessors Count Percentage
LOAD_GLOBAL_MODULE 80 66.7%
LOAD_ATTR 40 33.3%
Successors Count Percentage
PUSH_NULL 60 50.0%
STORE_FAST 60 50.0%

LOAD_GLOBAL_BUILTIN

Successors and predecessors for LOAD_GLOBAL_BUILTIN
Predecessors Count Percentage
STORE_FAST 21,052,640 100.0%
RESUME_CHECK 280 0.0%
LOAD_GLOBAL 120 0.0%
POP_JUMP_IF_FALSE 40 0.0%
Successors Count Percentage
LOAD_FAST 21,053,080 100.0%

LOAD_GLOBAL_MODULE

Successors and predecessors for LOAD_GLOBAL_MODULE
Predecessors Count Percentage
LOAD_FAST 27,558,080 59.1%
RESUME_CHECK 6,204,980 13.3%
LOAD_ATTR_INSTANCE_VALUE 4,465,200 9.6%
STORE_ATTR_INSTANCE_VALUE 3,722,100 8.0%
LOAD_ATTR_METHOD_WITH_VALUES 3,199,600 6.9%
Successors Count Percentage
CALL_ISINSTANCE 21,052,640 45.1%
COMPARE_OP_INT 10,964,360 23.5%
LOAD_ATTR_INSTANCE_VALUE 3,230,340 6.9%
CALL_PY_EXACT_ARGS 3,199,880 6.9%
COPY 3,001,100 6.4%

RESUME_CHECK

Successors and predecessors for RESUME_CHECK
Predecessors Count Percentage
CALL_PY_EXACT_ARGS 59,530,100 100.0%
CALL_ALLOC_AND_ENTER_INIT 7,800 0.0%
CACHE 620 0.0%
CALL 360 0.0%
COPY_FREE_VARS 60 0.0%
Successors Count Percentage
LOAD_FAST 34,715,540 58.3%
LOAD_CONST 18,615,380 31.3%
LOAD_GLOBAL_MODULE 6,204,980 10.4%
LOAD_FAST_LOAD_FAST 2,540 0.0%
LOAD_GLOBAL_BUILTIN 280 0.0%

STORE_ATTR_INSTANCE_VALUE

Successors and predecessors for STORE_ATTR_INSTANCE_VALUE
Predecessors Count Percentage
LOAD_FAST 65,916,940 83.2%
SWAP 8,548,060 10.8%
LOAD_FAST_LOAD_FAST 4,514,200 5.7%
STORE_ATTR_INSTANCE_VALUE 264,280 0.3%
LOAD_GLOBAL_MODULE 2,440 0.0%
Successors Count Percentage
LOAD_FAST 55,837,160 70.5%
LOAD_CONST 18,662,140 23.5%
LOAD_GLOBAL_MODULE 3,722,100 4.7%
LOAD_FAST_LOAD_FAST 756,500 1.0%
STORE_ATTR_INSTANCE_VALUE 264,280 0.3%

STORE_SUBSCR_LIST_INT

Successors and predecessors for STORE_SUBSCR_LIST_INT
Predecessors Count Percentage
LOAD_FAST 692,320 100.0%
STORE_SUBSCR 40 0.0%
Successors Count Percentage
ENTER_EXECUTOR 690,140 99.7%
RETURN_CONST 1,900 0.3%
JUMP_BACKWARD 320 0.0%

TO_BOOL_BOOL

Successors and predecessors for TO_BOOL_BOOL
Predecessors Count Percentage
RETURN_VALUE 46,473,860 65.9%
CALL_ISINSTANCE 21,052,640 29.8%
LOAD_GLOBAL_MODULE 2,978,940 4.2%
COPY 20,080 0.0%
LOAD_ATTR_INSTANCE_VALUE 9,740 0.0%
Successors Count Percentage
ENTER_EXECUTOR 25,418,520 36.0%
POP_JUMP_IF_FALSE 24,051,660 34.1%
POP_JUMP_IF_TRUE 21,055,600 29.9%
UNARY_NOT 9,780 0.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.

7,999,520 41.4%
hit

Specialized instructions that complete.

11,302,900 58.5%
Success Count Ratio
Success 160 5.3%
Failure 2,840 94.7%
Failure kind Count Ratio
floor divide 1,160 40.8%
and int 980 34.5%
xor 580 20.4%
multiply different types 120 4.2%

BINARY_SUBSCR

specialization stats for BINARY_SUBSCR family
Kind Count Ratio
deferred

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

40 0.0%
hit

Specialized instructions that complete.

6,201,740 100.0%
Success Count Ratio
Success 40 100.0%
Failure 0 0.0%

CALL

specialization stats for CALL family
Kind Count Ratio
deferred

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

13,751,820 17.0%
hit

Specialized instructions that complete.

66,840,740 82.7%
miss

Specialized instructions that deopt.

14,014,720 17.3%
Success Count Ratio
Success 265,940 100.0%
Failure 0 0.0%

COMPARE_OP

specialization stats for COMPARE_OP family
Kind Count Ratio
deferred

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

220 0.0%
hit

Specialized instructions that complete.

21,331,580 100.0%
Success Count Ratio
Success 220 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.0%
hit

Specialized instructions that complete.

745,940 100.0%
Success Count Ratio
Success 60 100.0%
Failure 0 0.0%

LOAD_ATTR

specialization stats for LOAD_ATTR family
Kind Count Ratio
deferred

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

48,722,600 24.5%
hit

Specialized instructions that complete.

149,062,240 75.0%
miss

Specialized instructions that deopt.

49,655,620 25.0%
Success Count Ratio
Success 938,620 100.0%
Failure 280 0.0%
Failure kind Count Ratio
metaclass attribute 280 100.0%

LOAD_GLOBAL

specialization stats for LOAD_GLOBAL family
Kind Count Ratio
deferred

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

1,760 0.0%
hit

Specialized instructions that complete.

67,681,500 100.0%
Success Count Ratio
Success 1,760 100.0%
Failure 0 0.0%

POP_JUMP_IF_FALSE

specialization stats for POP_JUMP_IF_FALSE family

POP_JUMP_IF_NONE

specialization stats for POP_JUMP_IF_NONE family

POP_JUMP_IF_NOT_NONE

specialization stats for POP_JUMP_IF_NOT_NONE family

POP_JUMP_IF_TRUE

specialization stats for POP_JUMP_IF_TRUE family

STORE_ATTR

specialization stats for STORE_ATTR family
Kind Count Ratio
deferred

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

13,750,020 17.3%
hit

Specialized instructions that complete.

65,237,140 82.3%
miss

Specialized instructions that deopt.

14,011,380 17.7%
Success Count Ratio
Success 265,600 99.9%
Failure 320 0.1%
Failure kind Count Ratio
not in keys 320 100.0%

STORE_SUBSCR

specialization stats for STORE_SUBSCR family
Kind Count Ratio
deferred

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

40 0.0%
hit

Specialized instructions that complete.

692,360 100.0%
Success Count Ratio
Success 40 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.

300 0.0%
hit

Specialized instructions that complete.

70,535,560 100.0%
Success Count Ratio
Success 300 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.

826,253,600 52.3%
Not specialized

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

155,663,740 9.9%
Specialized hits

Specialized instructions, e.g. LOAD_ATTR_MODULE that complete.

519,171,120 32.9%
Specialized misses

Specialized instructions, e.g. LOAD_ATTR_MODULE that deopt.

77,681,720 4.9%

Deferred by instruction

Breakdown of deferred (not specialized) instruction counts by family
Name Count Ratio
LOAD_ATTR 48,722,600 57.8%
CALL 13,751,820 16.3%
STORE_ATTR 13,750,020 16.3%
BINARY_OP 7,999,520 9.5%
LOAD_GLOBAL 1,760 0.0%
TO_BOOL 300 0.0%
COMPARE_OP 220 0.0%
FOR_ITER 60 0.0%
BINARY_SUBSCR 40 0.0%
STORE_SUBSCR 40 0.0%

Misses by instruction

Breakdown of misses (specialized deopts) instruction counts by family
Name Count Ratio
LOAD_ATTR_INSTANCE_VALUE 33,925,960 43.7%
LOAD_ATTR_METHOD_WITH_VALUES 15,729,660 20.2%
CALL_PY_EXACT_ARGS 14,014,720 18.0%
STORE_ATTR_INSTANCE_VALUE 14,011,380 18.0%
CACHE 0 0.0%
EXIT_INIT_CHECK 0 0.0%
GET_ITER 0 0.0%
INTERPRETER_EXIT 0 0.0%
NOP 0 0.0%
POP_TOP 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 840 0.0%
Calls to Python functions inlined 154,030,920 100.0%
Calls via PyEval_EvalFrame (total) 840 0.0%
Calls via PyEval_EvalFrame (vector) 840 0.0%
Calls via PyEval_EvalFrame (generator) 0 0.0%
Calls via PyEval_EvalFrame (legacy) 0 0.0%
Calls via PyEval_EvalFrame (function vectorcall) 840 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) 80 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 154,039,560 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 3,260 0.0%
Frees to freelist 2,940
Allocations 18,894,340 100.0%
Allocations to 512 bytes 18,893,960 100.0%
Allocations to 4 kbytes 380 0.0%
Allocations over 4 kbytes 0 0.0%
Frees 18,882,223
Inline values 8,320
Interpreter increfs 1,382,528,820 92.1%
Interpreter decrefs 1,494,060,120 98.3%
Increfs 117,985,124 7.9%
Decrefs 25,324,439 1.7%
Materialize dict (on request) 0 0.0%
Materialize dict (new key) 0 0.0%
Materialize dict (too big) 0 0.0%
Materialize dict (str subclass) 0 0.0%
Method cache hits 144,188,237
Method cache misses 6,717,763
Method cache collisions 6,717,267
Method cache dunder hits 4,618
Method cache dunder misses 542

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.

16,460
Traces created

The number of traces that were successfully created.

540 3.3%
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.

16,260 98.8%
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.

15,920 96.7%
Inner loop found

A trace is truncated because it has an inner loop

60 0.4%
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.

120 0.7%
Executors invalidated

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

0 0.0%
Traces executed

The number of traces that were executed

245,216,620
Uops executed

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

3,311,308,160 1,350.4%
Count Ratio
Optimizer attempts

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

540
Optimizer successes

The number of traces that were successfully optimized.

540 100.0%
Optimizer no memory

The number of optimizations that failed due to no memory.

0 0.0%
Remove globals builtins changed

The builtins changed during optimization

0 0.0%
Remove globals incorrect keys

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

0 0.0%

Trace length histogram

trace length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 0 0.0%
<= 8 20 3.7%
<= 16 120 22.2%
<= 32 120 22.2%
<= 64 160 29.6%
<= 128 80 14.8%
<= 256 40 7.4%

Optimized trace length histogram

optimized trace length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 20 3.7%
<= 8 80 14.8%
<= 16 100 18.5%
<= 32 140 25.9%
<= 64 140 25.9%
<= 128 60 11.1%

Trace run length histogram

trace run length histogram
Range Count Ratio
<= 1 0 0.0%
<= 2 0 0.0%
<= 4 19,457,720 7.9%
<= 8 55,046,560 22.4%
<= 16 47,549,740 19.4%
<= 32 35,822,000 14.6%
<= 64 26,236,720 10.7%
<= 128 3,021,000 1.2%
<= 256 687,280 0.3%

Uop execution stats

uop execution stats
Name Count Self Cumulative Miss ratio
_GUARD_TYPE_VERSION 329,626,160 10.0% 10.0% 30.3%
_LOAD_FAST_0 277,087,660 8.4% 18.3%
_EXIT_TRACE 187,821,020 5.7% 24.0%
_START_EXECUTOR 187,821,020 5.7% 29.7%
_CHECK_MANAGED_OBJECT_HAS_VALUES 150,381,160 4.5% 34.2%
_LOAD_ATTR_INSTANCE_VALUE_0 150,381,160 4.5% 38.7%
_TO_BOOL_BOOL 140,444,500 4.2% 43.0%
_SET_IP 135,981,340 4.1% 47.1%
_COPY 110,319,660 3.3% 50.4%
_RESUME_CHECK 94,492,080 2.9% 53.3%
_CHECK_FUNCTION_EXACT_ARGS 94,492,080 2.9% 56.1%
_PUSH_FRAME 94,492,080 2.9% 59.0%
_SAVE_RETURN_OFFSET 94,492,080 2.9% 61.8%
_LOAD_ATTR 86,974,400 2.6% 64.5%
_GUARD_IS_FALSE_POP 83,549,960 2.5% 67.0% 19.5%
_CHECK_STACK_SPACE_OPERAND 78,412,380 2.4% 69.4%
_INIT_CALL_PY_EXACT_ARGS_0 76,220,420 2.3% 71.7%
_POP_TOP 72,837,860 2.2% 73.9%
_CHECK_FUNCTION 64,876,840 2.0% 75.8%
_COLD_EXIT 57,395,600 1.7% 77.6%
_LOAD_FAST_1 56,656,300 1.7% 79.3%
_GUARD_IS_TRUE_POP 49,476,040 1.5% 80.8% 26.4%
_CHECK_VALIDITY_AND_SET_IP 45,741,540 1.4% 82.1%
_CHECK_VALIDITY 41,489,260 1.3% 83.4%
_GUARD_DORV_VALUES_INST_ATTR_FROM_DICT 39,856,240 1.2% 84.6%
_GUARD_KEYS_VERSION 39,856,240 1.2% 85.8%
_LOAD_ATTR_METHOD_WITH_VALUES 39,856,240 1.2% 87.0%
_UNARY_NOT 39,771,140 1.2% 88.2%
_GUARD_DORV_NO_DICT 39,657,880 1.2% 89.4%
_STORE_ATTR_INSTANCE_VALUE 39,657,880 1.2% 90.6%
_LOAD_FAST_2 37,199,540 1.1% 91.7%
_TIER2_RESUME_CHECK 37,105,280 1.1% 92.8%
_LOAD_CONST_INLINE_BORROW 31,386,660 0.9% 93.8%
_GUARD_IS_NOT_NONE_POP 23,447,200 0.7% 94.5% 1.1%
_POP_FRAME 19,082,880 0.6% 95.1%
_STORE_FAST_2 18,159,100 0.5% 95.6%
_LOAD_CONST_INLINE 14,825,240 0.4% 96.1%
_STORE_FAST_0 13,069,920 0.4% 96.5%
_BINARY_OP_ADD_INT 11,934,380 0.4% 96.8%
_GUARD_NOS_INT 11,879,980 0.4% 97.2%
_INIT_CALL_PY_EXACT_ARGS_1 10,861,600 0.3% 97.5%
_GUARD_IS_NONE_POP 10,483,680 0.3% 97.8% 26.8%
_LOAD_FAST_3 10,307,960 0.3% 98.1%
_SWAP 9,646,300 0.3% 98.4%
_BINARY_SUBSCR_LIST_INT 7,412,620 0.2% 98.7%
_INIT_CALL_PY_EXACT_ARGS_2 7,410,060 0.2% 98.9%
_COMPARE_OP_INT 6,934,200 0.2% 99.1%
_GUARD_BOTH_INT 4,700,520 0.1% 99.2%
_STORE_FAST_3 3,333,860 0.1% 99.3%
_GUARD_NOT_EXHAUSTED_RANGE 2,978,240 0.1% 99.4% 25.0%
_ITER_CHECK_RANGE 2,978,240 0.1% 99.5%
_STORE_SUBSCR_LIST_INT 2,288,080 0.1% 99.6%
_BINARY_OP_SUBTRACT_INT 2,288,080 0.1% 99.7%
_GUARD_TOS_INT 2,288,080 0.1% 99.7%
_LOAD_FAST_5 2,288,080 0.1% 99.8%
_ITER_NEXT_RANGE 2,233,680 0.1% 99.9%
_STORE_FAST_5 2,233,680 0.1% 99.9%
_JUMP_TO_TOP 2,176,400 0.1% 100.0%
_STORE_ATTR 256,400 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.

Pair Count Self Cumulative
_LOAD_FAST_0 _GUARD_TYPE_VERSION 252,385,820 7.6% 7.6%
_CHECK_MANAGED_OBJECT_HAS_VALUES _LOAD_ATTR_INSTANCE_VALUE_0 150,381,160 4.5% 12.2%
_GUARD_TYPE_VERSION _CHECK_MANAGED_OBJECT_HAS_VALUES 150,381,160 4.5% 16.7%
_COPY _TO_BOOL_BOOL 100,673,360 3.0% 19.7%
_GUARD_TYPE_VERSION _EXIT_TRACE 99,730,880 3.0% 22.8%
_PUSH_FRAME _RESUME_CHECK 94,492,080 2.9% 25.6%
_SAVE_RETURN_OFFSET _PUSH_FRAME 94,492,080 2.9% 28.5%
_START_EXECUTOR _SET_IP 87,230,800 2.6% 31.1%
_SET_IP _LOAD_ATTR 86,974,400 2.6% 33.7%
_RESUME_CHECK _LOAD_FAST_0 84,373,760 2.5% 36.3%
_CHECK_FUNCTION_EXACT_ARGS _CHECK_STACK_SPACE_OPERAND 78,412,380 2.4% 38.6%
_INIT_CALL_PY_EXACT_ARGS_0 _SAVE_RETURN_OFFSET 76,220,420 2.3% 40.9%
_POP_TOP _LOAD_FAST_0 72,837,860 2.2% 43.1%
_CHECK_STACK_SPACE_OPERAND _INIT_CALL_PY_EXACT_ARGS_0 65,810,140 2.0% 45.1%
_LOAD_ATTR_INSTANCE_VALUE_0 _COPY 56,503,020 1.7% 46.8%
_CHECK_FUNCTION _LOAD_FAST_0 55,176,140 1.7% 48.5%
_SET_IP _CHECK_FUNCTION_EXACT_ARGS 48,750,540 1.5% 50.0%
_CHECK_VALIDITY_AND_SET_IP _CHECK_FUNCTION_EXACT_ARGS 45,741,540 1.4% 51.4%
_LOAD_ATTR _CHECK_VALIDITY_AND_SET_IP 45,741,540 1.4% 52.7%
_TO_BOOL_BOOL _GUARD_IS_FALSE_POP 44,230,980 1.3% 54.1%
_LOAD_ATTR _CHECK_VALIDITY 41,232,860 1.2% 55.3%
_GUARD_DORV_VALUES_INST_ATTR_FROM_DICT _GUARD_KEYS_VERSION 39,856,240 1.2% 56.5%
_GUARD_KEYS_VERSION _LOAD_ATTR_METHOD_WITH_VALUES 39,856,240 1.2% 57.7%
_GUARD_TYPE_VERSION _GUARD_DORV_VALUES_INST_ATTR_FROM_DICT 39,856,240 1.2% 58.9%
_TO_BOOL_BOOL _UNARY_NOT 39,771,140 1.2% 60.1%
_GUARD_DORV_NO_DICT _STORE_ATTR_INSTANCE_VALUE 39,657,880 1.2% 61.3%
_GUARD_TYPE_VERSION _GUARD_DORV_NO_DICT 39,657,880 1.2% 62.5%
_TO_BOOL_BOOL _GUARD_IS_TRUE_POP 38,816,820 1.2% 63.7%
_GUARD_IS_TRUE_POP _POP_TOP 35,396,120 1.1% 64.8%
_START_EXECUTOR _TIER2_RESUME_CHECK 34,928,880 1.1% 65.8%
_TIER2_RESUME_CHECK _CHECK_FUNCTION 34,127,040 1.0% 66.9%
_START_EXECUTOR _GUARD_IS_FALSE_POP 34,121,580 1.0% 67.9%
_GUARD_IS_FALSE_POP _POP_TOP 32,338,080 1.0% 68.9%
_UNARY_NOT _COPY 32,336,800 1.0% 69.8%
_LOAD_ATTR_METHOD_WITH_VALUES _SET_IP 30,478,880 0.9% 70.8%
_LOAD_ATTR_INSTANCE_VALUE_0 _TO_BOOL_BOOL 29,880,260 0.9% 71.7%
_LOAD_FAST_1 _GUARD_TYPE_VERSION 27,230,360 0.8% 72.5%
_GUARD_IS_FALSE_POP _CHECK_FUNCTION 23,225,500 0.7% 73.2%
_LOAD_FAST_2 _GUARD_TYPE_VERSION 18,671,320 0.6% 73.7%
_TO_BOOL_BOOL _EXIT_TRACE 17,625,560 0.5% 74.3%
_GUARD_IS_FALSE_POP _EXIT_TRACE 16,316,120 0.5% 74.8%
_CHECK_VALIDITY _LOAD_FAST_1 13,341,920 0.4% 75.2%
_GUARD_IS_NOT_NONE_POP _EXIT_TRACE 13,328,880 0.4% 75.6%
_GUARD_IS_TRUE_POP _EXIT_TRACE 13,083,660 0.4% 76.0%
_START_EXECUTOR _LOAD_FAST_0 13,071,200 0.4% 76.4%
_LOAD_FAST_0 _GUARD_IS_NOT_NONE_POP 13,069,920 0.4% 76.8%
_STORE_FAST_0 _LOAD_FAST_0 13,069,920 0.4% 77.2%
_STORE_ATTR_INSTANCE_VALUE _LOAD_FAST_0 12,113,140 0.4% 77.5%
_LOAD_FAST_1 _LOAD_FAST_0 12,111,860 0.4% 77.9%
_LOAD_ATTR_INSTANCE_VALUE_0 _LOAD_CONST_INLINE_BORROW 11,879,980 0.4% 78.2%
_LOAD_CONST_INLINE_BORROW _GUARD_NOS_INT 11,879,980 0.4% 78.6%
_STORE_ATTR_INSTANCE_VALUE _LOAD_CONST_INLINE_BORROW 11,856,740 0.4% 79.0%
_CHECK_VALIDITY _COPY 11,833,540 0.4% 79.3%
_POP_FRAME _EXIT_TRACE 11,670,260 0.4% 79.7%
_INIT_CALL_PY_EXACT_ARGS_1 _SAVE_RETURN_OFFSET 10,861,600 0.3% 80.0%
_STORE_FAST_2 _LOAD_FAST_2 10,746,480 0.3% 80.3%
_CHECK_FUNCTION_EXACT_ARGS _INIT_CALL_PY_EXACT_ARGS_0 10,410,280 0.3% 80.6%
_LOAD_ATTR_INSTANCE_VALUE_0 _LOAD_FAST_1 10,376,340 0.3% 81.0%
_LOAD_FAST_2 _POP_FRAME 10,376,340 0.3% 81.3%
_LOAD_ATTR_INSTANCE_VALUE_0 _SET_IP 10,118,320 0.3% 81.6%
_CHECK_VALIDITY _TO_BOOL_BOOL 9,890,880 0.3% 81.9%
_COPY _GUARD_TYPE_VERSION 9,646,300 0.3% 82.2%
_SWAP _GUARD_TYPE_VERSION 9,646,300 0.3% 82.5%
_BINARY_OP_ADD_INT _SWAP 9,646,300 0.3% 82.7%
_GUARD_NOS_INT _BINARY_OP_ADD_INT 9,646,300 0.3% 83.0%
_START_EXECUTOR _GUARD_IS_TRUE_POP 8,922,420 0.3% 83.3%
_GUARD_IS_FALSE_POP _POP_FRAME 8,706,540 0.3% 83.6%
_CHECK_STACK_SPACE_OPERAND _INIT_CALL_PY_EXACT_ARGS_1 8,155,900 0.2% 83.8%
_LOAD_ATTR_INSTANCE_VALUE_0 _STORE_FAST_0 7,643,260 0.2% 84.0%
_UNARY_NOT _EXIT_TRACE 7,434,340 0.2% 84.3%
_BINARY_SUBSCR_LIST_INT _STORE_FAST_2 7,412,620 0.2% 84.5%
_RESUME_CHECK _LOAD_CONST_INLINE 7,412,620 0.2% 84.7%
_CHECK_FUNCTION _LOAD_CONST_INLINE 7,412,620 0.2% 84.9%
_GUARD_IS_NOT_NONE_POP _LOAD_FAST_2 7,412,620 0.2% 85.2%
_LOAD_CONST_INLINE _COPY 7,412,620 0.2% 85.4%
_LOAD_CONST_INLINE _GUARD_TYPE_VERSION 7,412,620 0.2% 85.6%
_LOAD_CONST_INLINE_BORROW _LOAD_FAST_1 7,412,620 0.2% 85.8%
_LOAD_FAST_1 _BINARY_SUBSCR_LIST_INT 7,412,620 0.2% 86.1%
_LOAD_FAST_2 _GUARD_IS_NOT_NONE_POP 7,412,620 0.2% 86.3%
_POP_FRAME _STORE_FAST_2 7,412,620 0.2% 86.5%
_STORE_FAST_2 _CHECK_FUNCTION 7,412,620 0.2% 86.7%
_STORE_ATTR_INSTANCE_VALUE _LOAD_FAST_2 7,411,340 0.2% 87.0%
_INIT_CALL_PY_EXACT_ARGS_2 _SAVE_RETURN_OFFSET 7,410,060 0.2% 87.2%
_LOAD_FAST_0 _SET_IP 7,410,060 0.2% 87.4%
_LOAD_CONST_INLINE_BORROW _LOAD_FAST_0 7,406,220 0.2% 87.6%
_LOAD_ATTR_METHOD_WITH_VALUES _LOAD_FAST_1 6,671,660 0.2% 87.8%
_STORE_ATTR_INSTANCE_VALUE _LOAD_FAST_1 5,931,300 0.2% 88.0%
_CHECK_VALIDITY _STORE_FAST_0 5,426,660 0.2% 88.2%
_COMPARE_OP_INT _GUARD_IS_FALSE_POP 5,197,400 0.2% 88.3%
_START_EXECUTOR _POP_TOP 5,103,660 0.2% 88.5%
_GUARD_BOTH_INT _COMPARE_OP_INT 4,700,520 0.1% 88.6%
_LOAD_ATTR_INSTANCE_VALUE_0 _GUARD_BOTH_INT 4,700,520 0.1% 88.8%
_LOAD_ATTR_INSTANCE_VALUE_0 _LOAD_FAST_2 4,700,520 0.1% 88.9%
_LOAD_FAST_3 _GUARD_TYPE_VERSION 4,633,440 0.1% 89.0%
_CHECK_STACK_SPACE_OPERAND _INIT_CALL_PY_EXACT_ARGS_2 4,446,340 0.1% 89.2%
_GUARD_IS_NONE_POP _LOAD_FAST_1 4,444,120 0.1% 89.3%
_LOAD_ATTR_INSTANCE_VALUE_0 _GUARD_IS_NONE_POP 3,704,260 0.1% 89.4%
_START_EXECUTOR _LOAD_FAST_1 3,484,560 0.1% 89.5%
_LOAD_ATTR_INSTANCE_VALUE_0 _STORE_FAST_3 3,333,860 0.1% 89.6%
_LOAD_FAST_3 _GUARD_IS_NONE_POP 3,333,860 0.1% 89.7%

Unsupported opcodes

unsupported opcodes

Optimizer errored out with opcode

Optimization stopped after encountering this opcode

Rare events

Counts of rare/unlikely events
Event Count
set class

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

0
set bases

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

0
set eval frame func

Setting the PEP 523 frame eval function _PyInterpreterState_SetFrameEvalFunc()

0
builtin dict

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

0
func modification

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

0
watched dict modification

A watched dict has been modified

0
watched globals modification

A watched globals() dict has been modified

0

Meta stats

Meta statistics
Count
Number of data files 20

Stats gathered on: 2024-06-16