GeistHaus
log in · sign up

GitHub - benfred/py-spy: Sampling profiler for Python programs

github.com

Sampling profiler for Python programs. Contribute to benfred/py-spy development by creating an account on GitHub.

24 pages link to this URL
Python Profiling : Deterministic vs Statistical Profilers - Performance Engineering

Different python profiling tools use different methodologies for gathering performance data and hence have different runtime overhead. Before choosing a profiler tool it is helpful to understand two commonly employed techniques for collecting performance data : Deterministic profiling Deterministic profilers execute trace functions at various points of interest (e.g. function call, function return) and record […]

0 inbound links article en
Summary Of Python Profiling Tools – Part I - Performance Engineering

If you are working in the area of scientific computing, in academia or industry, most likely you are using Python in some form. Traditionally Python is described as slow when it comes to performance and there are number of discussions about speed compared to native C/C++ applications 1 2. The goal of this post is […]

1 inbound link article en ProfilerPython
Awesome Django

A curated list of awesome things related to Django. Maintained by William Vincent and Jeff Triplett

0 inbound links website en
How to Profile Your Python Script/Module

In my previous post, I shared how to profile a single function using line_profiler. In this post, I want to share how to profile Python script/module and visualize the profile stat to pinpoint the slow part of the code.

0 inbound links article en Posts profiling
The Dog Park Sabbatical: Monthly Logs

I’m taking a year off work in what I’m calling the Dog Park Sabbatical, and here are summaries of what happened each month. Prior to work ending: Serving a long notice, and Leonid Space…

0 inbound links article en
py-spy in Azure Batch

Today, I was debugging a hanging task in Azure Batch. This short post records how I used py-spy to investigate the problem. Background Azure Batch is a compute service that we use to run container workloads. In this case, we start up a container that processes a bunch of GOES-GLM data to create STAC items for the Planetary Computer . The workflow is essentially a big for url in urls: local_file = download_url(url) stac.create_item(local_file) We noticed that some Azure Batch tasks were hanging. Based on our logs, we knew it was somewhere in that for loop, but couldn’t determine exactly where things were hanging. The goes-glm stactools package we used does read a NetCDF file, and my experience with Dask biased me towards thinking the netcdf library (or the HDF5 reader it uses) was hanging. But I wanted to confirm that before trying to implement a fix.

0 inbound links article en posts
Optimization story - quantum mechanics simulation speedup

As part of my PhD I do computational modeling of quantum-biological systems. One of my simulations was misbehaving and in certain cases could take 8 hours to complete. That's really bad when you're trying to iterate quickly. This post describes how I made a series of optimizations to reduce the runtime by 250x via profiler driven algorithmic improvements, rewriting the core in Rust, and making use of parallelism.

1 inbound link article en
Lip Colour Finder – Profiling for Speedup

I’ve been working to improve the turnaround time for Lip Colour Finder results. In order to find the areas of my code most amenable to tweaking I turned to profiling.

0 inbound links article en Uncategorized
InferenceMAX™: Open Source Inference Benchmarking

NVIDIA GB200 NVL72, AMD MI355X, Throughput Token per GPU, Latency Tok/s/user, Perf per Dollar, Tokens per Provisioned Megawatt, DeepSeek R1 670B, GPTOSS 120B, Llama3 70B

3 inbound links article en