Skip to content

Instantly share code, notes, and snippets.

View fhpriamo's full-sized avatar
👋
Hello!

Fábio Priamo fhpriamo

👋
Hello!
View GitHub Profile
@fhpriamo
fhpriamo / profiling.py
Created September 22, 2021 02:05
Some simple profiling.
import cProfile, pstats
import operator
import contextlib
from functools import reduce
from itertools import accumulate
import sys
def cumsum(num=0):
"""Loop based"""
total = 0