You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really wasn't expecting this result. But, after writing a simple solution to the first advent of code problem, I thought I would see what performance can be gained by compiling it with mypyc. It was about 20% slower!
> python3 -m timeit 'from test import solve1' 'solve1()'
500 loops, best of 5: 439 usec per loop
> python3 -m timeit 'from test import solve1' 'solve1()'
500 loops, best of 5: 438 usec per loop
> mypyc --strict test.py
...
> python3 -m timeit 'from test import solve1' 'solve1()'
500 loops, best of 5: 513 usec per loop
> python3 -m timeit 'from test import solve1' 'solve1()'
500 loops, best of 5: 513 usec per loop
Bug Report
I really wasn't expecting this result. But, after writing a simple solution to the first advent of code problem, I thought I would see what performance can be gained by compiling it with mypyc. It was about 20% slower!
To Reproduce
Full file with input data included:
mypy-test.txt
Expected Behavior
At worst, equal performance to pure Python.
Your Environment
The text was updated successfully, but these errors were encountered: