Skip to content

Instantly share code, notes, and snippets.

View mdboom's full-sized avatar

Michael Droettboom mdboom

View GitHub Profile

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
2023-12-31T00:30:27.4691199Z Requested labels: self-hosted, linux, bare-metal, linux-x86_64-linux
2023-12-31T00:30:27.4691475Z Job defined at: faster-cpython/benchmarking/.github/workflows/_benchmark.yml@refs/heads/main
2023-12-31T00:30:27.4691774Z Reusable workflow chain:
2023-12-31T00:30:27.4691923Z faster-cpython/benchmarking/.github/workflows/_weekly.yml@refs/heads/main (e97cf79d30b8163794b858c4c9d89b9694c31226)
2023-12-31T00:30:27.4692056Z -> faster-cpython/benchmarking/.github/workflows/_benchmark.yml@refs/heads/main (e97cf79d30b8163794b858c4c9d89b9694c31226)
2023-12-31T00:30:27.4692184Z Waiting for a runner to pick up this job...
2023-12-31T01:44:19.2714060Z Job is about to start running on the runner: CPythons-Linux (repository)
2023-12-31T01:44:21.6935871Z Current runner version: '2.311.0'
2023-12-31T01:44:21.6941461Z Runner name: 'CPythons-Linux'
2023-12-31T01:44:21.6942017Z Runner group name: 'Default'
2023-12-31T00:30:27.3540307Z Requested labels: self-hosted, windows, bare-metal, windows-x86_64-pythonperf1
2023-12-31T00:30:27.3540708Z Job defined at: faster-cpython/benchmarking/.github/workflows/_benchmark.yml@refs/heads/main
2023-12-31T00:30:27.3540994Z Reusable workflow chain:
2023-12-31T00:30:27.3541127Z faster-cpython/benchmarking/.github/workflows/_weekly.yml@refs/heads/main (e97cf79d30b8163794b858c4c9d89b9694c31226)
2023-12-31T00:30:27.3541285Z -> faster-cpython/benchmarking/.github/workflows/_benchmark.yml@refs/heads/main (e97cf79d30b8163794b858c4c9d89b9694c31226)
2023-12-31T00:30:27.3541446Z Waiting for a runner to pick up this job...
2023-12-31T00:30:28.0696890Z Job is about to start running on the runner: CPythons-Windows (repository)
2023-12-31T00:30:32.4453009Z Current runner version: '2.311.0'
2023-12-31T00:30:32.4456607Z Runner name: 'CPythons-Windows'
2023-12-31T00:30:32.4456912Z Runner group name: 'Default'

Execution counts

execution counts for all instructions
Name Count Self Cumulative Miss ratio
LOAD_FAST 72,565 15.8% 15.8%
LOAD_CONST 38,180 8.3% 24.1%
LOAD_GLOBAL_MODULE 21,118 4.6% 28.7% 5.8%