Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to Profile a Python Program - Block 1
import cProfile
from math import sqrt
BIG_NUMBER = 10**25
def slow_function(n: int) -> None:
for _ in range(10**5):
def fast_function(n: int) -> None:
for _ in range(10**5):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment