-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I have installed the package but I only achieve ~30.000 pps (puns per second). Is it because Python is slow? I would like to maximize the pun rate for maximum entertainment. Is there anything I can do to get a higher pun rate?
Here is the code snipped I used for benchmarking:
import timeit
from functools import partial
from scipyconference import create_puns
n_puns = 10_000
func = partial(create_puns, n_puns)
timer = timeit.Timer(func)
puns_per_second = n_puns / timer.timeit(10)
print(f"Puns per second {puns_per_second:.2f}")Which gives:
Puns per second 31695.19
Metadata
Metadata
Assignees
Labels
No labels