Skip to content

Instantly share code, notes, and snippets.

View mdboom's full-sized avatar

Michael Droettboom mdboom

View GitHub Profile

darwin arm64 (darwin)

commit change
2a88001 (2a88001) 1.07x ↓📄📈🧠

windows x86_64 (pythonperf1)

commit change
ddcf45a (ddcf45a) 1.04x ↓📄📈
2024-08-19T12:33:42.3075943Z Current runner version: '2.319.1'
2024-08-19T12:33:42.3079875Z Runner name: 'CPythons-Windows'
2024-08-19T12:33:42.3080346Z Runner group name: 'Default'
2024-08-19T12:33:42.3080774Z Machine name: 'WIN-5FKPU9U7KDT'
2024-08-19T12:33:42.3090909Z Testing runner upgrade compatibility
2024-08-19T12:33:42.3503405Z ##[group]GITHUB_TOKEN Permissions
2024-08-19T12:33:42.3504566Z Actions: write
2024-08-19T12:33:42.3504833Z Attestations: write
2024-08-19T12:33:42.3505051Z Checks: write
2024-08-19T12:33:42.3505233Z Contents: write
@mdboom
mdboom / benchmark-3.12.json
Last active August 2, 2024 15:27
Python.org 3.13.0rc1 vs 3.12.4 build on macos ARM
{"benchmarks":[{"metadata":{"command":"/Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/cpython3.12-a40582696688-compat-abd8ee905c33/bin/python -m lib2to3 -f all /Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/lib/python3.12/site-packages/pyperformance/data-files/benchmarks/bm_2to3/data/2to3/template_loader.py.txt /Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/lib/python3.12/site-packages/pyperformance/data-files/benchmarks/bm_2to3/data/2to3/exceptions.py.txt /Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/lib/python3.12/site-packages/pyperformance/data-files/benchmarks/bm_2to3/data/2to3/paginator.py.txt /Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/lib/python3.12/site-packages/pyperformance/data-files/benchmarks/bm_2to3/data/2to3/xheaders.py.txt /Users/benchmarking/actions-runner/_work/benchmarking/benchmarking/venv/lib/python3.12/site-packages/pyperformance/data-files/benchmarks/bm_2to3/

linux x86_64 (linux)

commit change
d0672a4 (d0672a4) 1.02x ↑ 📄 📈
This file has been truncated, but you can view the full file.
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 998
#
# Samples: 101K of event 'cycles:Pu'
# Event count (approx.): 99011315390
#
# Children Self Command Shared Object Symbol

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.

import argparse
import os
from pathlib import Path
import shutil
import subprocess
pystats_dir = Path("/tmp/py_stats")
parser = argparse.ArgumentParser(
"""
[project]
name = "pyperformance_bm_go"
requires-python = ">=3.8"
dependencies = ["pyperf"]
urls = {repository = "https://github.com/python/pyperformance"}
dynamic = ["version"]
[tool.pyperformance]
name = "go"

darwin

commit change
b63610eJ (b63610e) 1.09x faster (100% rel.) table plot