-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Milestone
Description
running test/test_func.py
Line # Mem usage Increment Line Contents
==============================================
2 @profile
3 def test_1():
4 7.73 MB 0.00 MB # .. will be called twice ..
5 7.73 MB 0.00 MB a = 2.
6 7.73 MB 0.00 MB b = 3
7 7.61 MB -0.12 MB c = {}
8 7.80 MB 0.19 MB for i in range(1000):
9 7.80 MB 0.00 MB c[i] = 2
10 7.80 MB 0.00 MB c[0] = 2.
but correct results should be the same as calling the function once:
Line # Mem usage Increment Line Contents
==============================================
2 @profile
3 def test_1():
4 7.57 MB 0.00 MB # .. will be called twice ..
5 7.59 MB 0.02 MB a = 2.
6 7.59 MB 0.00 MB b = 3
7 7.59 MB 0.00 MB c = {}
8 7.73 MB 0.14 MB for i in range(1000):
9 7.73 MB 0.00 MB c[i] = 2
10 7.73 MB 0.00 MB c[0] = 2.
brondsem
Metadata
Metadata
Assignees
Labels
No labels