Skip to content

Instantly share code, notes, and snippets.

View mdboom's full-sized avatar

Michael Droettboom mdboom

View GitHub Profile
====
Benchmark: django_template
Object method cache dunder misses: 2353.294117647059
Object method cache collisions: 2287.504761904762
Object method cache misses: 2225.3703703703704
Object immortal increfs: 1.0039206501770555
Object immortal decrefs: 1.0034565222003073
Object mortal decrefs: 1.0009515004198075
Object mortal increfs: 1.0008433608988452
====
Benchmark: logging
opcode[LOAD_FAST_BORROW].execution_count: 162406735
Object interpreter mortal decrefs: 138927768
Object mortal decrefs: -138444597
Object immortal decrefs: -133119691
Object immortal increfs: -109095099
Object mortal increfs: -106495872
Object interpreter mortal increfs: 103834062
opcode[LOAD_ATTR].specialization.hit: 98509057
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 441 of event 'cycles:Pu'
# Event count (approx.): 481011981
#
# Overhead Period Pid:Command Symbol Shared Object IPC [IPC Coverage]
# ........ ............ ............... .................................................................................................................................... .......................................... ....................
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Comparisons

commit change
tailcall 1.315x ↑📄📈
Using "c:\cpython\PCbuild\\..\externals\pythonx86\tools\python.exe" (found in externals directory)
Fetching external libraries...
bzip2-1.0.8 already exists, skipping.
mpdecimal-4.0.0 already exists, skipping.
sqlite-3.45.3.0 already exists, skipping.
xz-5.2.5 already exists, skipping.
zlib-1.3.1 already exists, skipping.
Fetching external binaries...
libffi-3.4.4 already exists, skipping.
openssl-bin-3.0.15 already exists, skipping.
2025-03-06T19:18:15.3991721Z Current runner version: '2.322.0'
2025-03-06T19:18:15.3997167Z Runner name: 'CPythons-Linux'
2025-03-06T19:18:15.3997824Z Runner group name: 'Default'
2025-03-06T19:18:15.3998550Z Machine name: 'pyperf'
2025-03-06T19:18:15.4002252Z ##[group]GITHUB_TOKEN Permissions
2025-03-06T19:18:15.4004280Z Actions: write
2025-03-06T19:18:15.4004748Z Attestations: write
2025-03-06T19:18:15.4005182Z Checks: write
2025-03-06T19:18:15.4005599Z Contents: write
2025-03-06T19:18:15.4006035Z Deployments: write
Bytecode % time count % count time per count (μs)
LOAD_FAST 9.39% 37493180620 17.73% 10.371034
LOAD_GLOBAL_BUILTIN 4.88% 5783991967 2.74% 34.913583
STORE_FAST 4.19% 13496553043 6.38% 12.855703
LOAD_FAST_LOAD_FAST 3.86% 11054418342 5.23% 14.456627
CALL_PY_EXACT_ARGS 3.74% 3213705626 1.52% 48.208125
LOAD_ATTR_INSTANCE_VALUE 3.41% 4851620533 2.29% 29.071453
LOAD_GLOBAL_MODULE 3.39% 3350520281 1.58% 41.905893
FOR_ITER_LIST 3.32% 2200274562 1.04% 62.401681
BINARY_OP_SUBSCR_LIST_INT 3.05% 2720924671 1.29% 46.348191
@mdboom
mdboom / profile-type_new.py
Last active January 14, 2025 20:22 — forked from ericsnowcurrently/profile-type_new.py
a script to instrument and profile type_new()
from collections import namedtuple
import logging
import os
import os.path
import re
import shutil
import subprocess
import sys
import textwrap
import time