PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/profiletest_runme.py

#
Python | 32 lines | 30 code | 2 blank | 0 comment | 1 complexity | 6d0e09dcc2e80f07cea71f27546d946f MD5 | raw file
 1import _profiletest       
 2import profiletest       
 3
 4a = profiletest.A()
 5print a
 6print a.this
 7
 8b = profiletest.B()
 9fn = b.fn
10i = 50000
11while i:
12  a = fn(a) #1
13  a = fn(a) #2
14  a = fn(a) #3
15  a = fn(a) #4
16  a = fn(a) #5
17  a = fn(a) #6
18  a = fn(a) #7
19  a = fn(a) #8
20  a = fn(a) #9
21  a = fn(a) #10
22  a = fn(a) #1
23  a = fn(a) #2
24  a = fn(a) #3
25  a = fn(a) #4
26  a = fn(a) #5
27  a = fn(a) #6
28  a = fn(a) #7
29  a = fn(a) #8
30  a = fn(a) #9
31  a = fn(a) #20
32  i -= 1