We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample code just ate all my memory:
from timeit import timeit def be(): s = 0 c = 0 while c < 100000: c += 1 s += c return s print(timeit("be()", number=100, globals={'be': be}))
RustPython version: 0.3.0 (3eda1cf3) Features: jit,flame-it,ssl,ssl-vendor
F:\UserDirs\Documents\keke>py keke.py 0.3749807000003784
F:\UserDirs\Documents\keke>rustpython keke.py memory allocation of 55834574848 bytes failed
The text was updated successfully, but these errors were encountered:
That's not related to timeit module
Same problem with code below:
def timeit(func, number): from time import time start = time() for _ in range(number): func() end = time() return end - start def be(): s = 0 c = 0 while c < 100000: c += 1 s += c return s if __name__ == '__main__': print(timeit(be, number=100))
Sorry, something went wrong.
Duplicate of #2380 sorry
No branches or pull requests
Summary
Sample code just ate all my memory:
RustPython version: 0.3.0 (3eda1cf3)
Features: jit,flame-it,ssl,ssl-vendor
Expected
F:\UserDirs\Documents\keke>py keke.py 0.3749807000003784
Actual
Python Documentation
The text was updated successfully, but these errors were encountered: