plasma-umass/scalene
View on GitHub ↗ ★ 13,544 Python
Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
20 mentions on Hacker News by 18 people: 5 stories, 15 comments · first 2021-07-05 · latest 2026-01-10
20082026
-
Super cool! It recommended me Scalene Python profiler ( https://github.com/plasma-umass/scalene ), which looks very interesting – I haven't heard about it before..
comment by r4victor · 2026-01-10 · in Show HN: Similarity = cosine(your_GitHub_stars, Karpathy) Client-side -
…CPU+GPU+memory profiler for Python, with AI-powered optimization suggestions GitHub stars - https://github.com/plasma-umass/scalene - Coz: A causal profiler that tells you where to optimize your code (C/C++/Rust/Swift/Java) -…
comment by pella · 2025-09-09 · in ATC/OSDI '25 Joint Keynote: Accelerating Software Dev: The LLM (R)Evolution [video] -
…perf to the LLM and say 'now optimize'). This has been a feature of the Scalene Python profiler ( https://github.com/plasma-umass/scalene ) for some time (at this point, about 1.5 years) - bring your own API key for OpenAI / Azure /…
comment by emeryberger · 2025-01-07 · in LLMs and Code Optimization -
…C++ or Rust or whatever) is a classic strategy. Just profile your code with something like Scalene: https://github.com/plasma-umass/scalene Alternatively, you can just write it in Julia.
comment by sn9 · 2024-10-26 · in Ask HN: Are my HPC professors right? Is Python worthless compared to C? -
▲ 183
Scalene: A high-performance, high-precision CPU, GPU, memory profiler for Pythonstory by kristianp · 2024-10-21 · 23 comments
-
…had they used a profiler like scalene [0] to find where the unnecessary copying was happening. [0] https://github.com/plasma-umass/scalene
comment by sn9 · 2024-07-26 · in Using Rust to corrode insane Python run-times (2021) -
…where exactly (in this case, it's not a problem of GPU memory, but CPU memory). I tried Scalene ( https://github.com/plasma-umass/scalene ), which seems to be powerful, but somehow the output it gives me is not useful at all? It doesn't…
comment by albertzeyer · 2024-02-10 · in Memray – A Memory Profiler for Python -
Does anyone know how it compares to scalene? https://github.com/plasma-umass/scalene
comment by emmanueloga_ · 2023-12-08 · in Memray: Python memory profiler -
…'fatter' python is vs c++ (eg: slide 29) b) shows Scalene improving performance (eg: 90x slide 111) https://github.com/plasma-umass/scalene
comment by andromaton · 2023-08-30 · in Triangulating Python Performance Issues with Scalene [pdf] -
▲ 36
Scalene: A high-performance, CPU, GPU, and memory profiler for Pythonstory by KolmogorovComp · 2023-06-18 · 4 comments
-
You should take a look at Scalene - it's even better. https://github.com/plasma-umass/scalene
comment by dralley · 2023-03-30 · in Making Python faster with Rust -
▲ 15
Scalene: A Python CPU/GPU/memory profiler with optimization proposalsstory by pkkm · 2023-02-19 · 1 comment
-
▲ 6
Scalene: A Python memory profiler with AI-powered optimization proposalsstory by samwillis · 2023-01-05 · 0 comments
-
▲ 4
Scalene now incorporates AI-powered optimization suggestionsstory by bkgh · 2023-01-02 · 2 comments
-
…you c time vs python time (numpy calls, etc), and it's faster than most other python profilers. https://github.com/plasma-umass/scalene
comment by eyegor · 2022-12-15 · in Python 3.11 Delivers -
…JIT or FFI? I think I've only ever seen the Python profiler, scalene[0], handle these cases. [0]: https://github.com/plasma-umass/scalene
comment by jzelinskie · 2022-11-29 · in DWARF-Based Stack Walking Using eBPF -
https://github.com/plasma-umass/scalene check out scalene!
comment by kungfufrog · 2022-04-20 · in Memray: a memory profiler for Python -
I haven't tried it yet, but Scalene looks interesting: https://github.com/plasma-umass/scalene .
comment by memco · 2021-11-06 · in Pyheatmagic: Profile and view your Python code as a heat map -
…and memory usage in a performant way. The author gave a talk about it on last PyCon US [1]. [0]: https://github.com/plasma-umass/scalene [1]: https://www.youtube.com/watch?v=nrQPqy3YY5A
comment by tbabej · 2021-07-05 · in Measuring memory usage in Python: it’s tricky