Skip to content

Instantly share code, notes, and snippets.

View mdboom's full-sized avatar

Michael Droettboom mdboom

View GitHub Profile
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

2to3

percentage object symbol category
26.48% python _PyEval_EvalFrameDefault interpreter
3.04% python unicodekeys_lookup_unicode lookup
3.01% python _PyObject_Malloc memory
2.94% python gc_collect_region.isra.0 gc
2.35% python _Py_dict_lookup lookup
from collections import defaultdict
import json
from operator import itemgetter
import math
from matplotlib import pyplot as plt
import numpy as np
excluded = set(
from collections import defaultdict
import json
from operator import itemgetter
import math
from matplotlib import pyplot as plt
import numpy as np
excluded = set(