Mercurial > cpython-lru_cache-weakref
annotate Tools/pybench/Lists.py @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | df3923c36ec5 |
| children |
| rev | line source |
|---|---|
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
1 from pybench import Test |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
2 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
3 class SimpleListManipulation(Test): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
4 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
5 version = 2.0 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
6 operations = 5* (6 + 6 + 6) |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
7 rounds = 130000 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
8 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
9 def test(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
10 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
11 l = [] |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
12 append = l.append |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
13 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
14 for i in xrange(self.rounds): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
15 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
16 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
17 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
18 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
19 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
20 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
21 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
22 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
23 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
24 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
25 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
26 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
27 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
28 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
29 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
30 x = l[0] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
31 x = l[1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
32 x = l[2] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
33 x = l[3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
34 x = l[4] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
35 x = l[5] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
36 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
37 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
38 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
39 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
40 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
41 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
42 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
43 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
44 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
45 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
46 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
47 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
48 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
49 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
50 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
51 x = l[0] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
52 x = l[1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
53 x = l[2] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
54 x = l[3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
55 x = l[4] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
56 x = l[5] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
57 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
58 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
59 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
60 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
61 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
62 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
63 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
64 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
65 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
66 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
67 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
68 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
69 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
70 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
71 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
72 x = l[0] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
73 x = l[1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
74 x = l[2] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
75 x = l[3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
76 x = l[4] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
77 x = l[5] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
78 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
79 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
80 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
81 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
82 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
83 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
84 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
85 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
86 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
87 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
88 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
89 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
90 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
91 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
92 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
93 x = l[0] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
94 x = l[1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
95 x = l[2] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
96 x = l[3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
97 x = l[4] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
98 x = l[5] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
99 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
100 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
101 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
102 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
103 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
104 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
105 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
106 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
107 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
108 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
109 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
110 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
111 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
112 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
113 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
114 x = l[0] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
115 x = l[1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
116 x = l[2] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
117 x = l[3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
118 x = l[4] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
119 x = l[5] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
120 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
121 if len(l) > 10000: |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
122 # cut down the size |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
123 del l[:] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
124 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
125 def calibrate(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
126 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
127 l = [] |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
128 append = l.append |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
129 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
130 for i in xrange(self.rounds): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
131 pass |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
132 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
133 class ListSlicing(Test): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
134 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
135 version = 2.0 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
136 operations = 25*(3+1+2+1) |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
137 rounds = 800 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
138 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
139 def test(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
140 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
141 n = range(100) |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
142 r = range(25) |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
143 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
144 for i in xrange(self.rounds): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
145 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
146 l = n[:] |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
147 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
148 for j in r: |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
149 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
150 m = l[50:] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
151 m = l[:25] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
152 m = l[50:55] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
153 l[:3] = n |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
154 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
155 m = l[1:] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
156 l[-1:] = n |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
157 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
158 def calibrate(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
159 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
160 n = range(100) |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
161 r = range(25) |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
162 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
163 for i in xrange(self.rounds): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
164 for j in r: |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
165 pass |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
166 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
167 class SmallLists(Test): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
168 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
169 version = 2.0 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
170 operations = 5*(1+ 6 + 6 + 3 + 1) |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
171 rounds = 80000 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
172 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
173 def test(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
174 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
175 for i in xrange(self.rounds): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
176 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
177 l = [] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
178 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
179 append = l.append |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
180 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
181 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
182 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
183 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
184 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
185 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
186 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
187 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
188 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
189 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
190 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
191 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
192 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
193 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
194 l[:3] = [1,2,3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
195 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
196 m = l[1:] |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
197 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
198 l[-1:] = [4,5,6] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
199 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
200 l = [] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
201 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
202 append = l.append |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
203 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
204 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
205 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
206 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
207 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
208 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
209 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
210 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
211 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
212 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
213 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
214 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
215 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
216 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
217 l[:3] = [1,2,3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
218 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
219 m = l[1:] |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
220 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
221 l[-1:] = [4,5,6] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
222 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
223 l = [] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
224 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
225 append = l.append |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
226 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
227 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
228 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
229 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
230 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
231 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
232 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
233 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
234 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
235 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
236 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
237 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
238 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
239 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
240 l[:3] = [1,2,3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
241 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
242 m = l[1:] |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
243 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
244 l[-1:] = [4,5,6] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
245 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
246 l = [] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
247 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
248 append = l.append |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
249 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
250 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
251 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
252 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
253 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
254 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
255 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
256 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
257 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
258 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
259 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
260 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
261 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
262 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
263 l[:3] = [1,2,3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
264 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
265 m = l[1:] |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
266 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
267 l[-1:] = [4,5,6] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
268 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
269 l = [] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
270 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
271 append = l.append |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
272 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
273 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
274 append(4) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
275 append(2) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
276 append(3) |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
277 append(4) |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
278 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
279 l[0] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
280 l[1] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
281 l[2] = 5 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
282 l[3] = 3 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
283 l[4] = 4 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
284 l[5] = 5 |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
285 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
286 l[:3] = [1,2,3] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
287 m = l[:-1] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
288 m = l[1:] |
|
37903
56089faba056
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
37857
diff
changeset
|
289 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
290 l[-1:] = [4,5,6] |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
291 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
292 def calibrate(self): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
293 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
294 for i in xrange(self.rounds): |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
295 pass |
|
50424
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
296 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
297 class SimpleListComprehensions(Test): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
298 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
299 version = 2.0 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
300 operations = 6 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
301 rounds = 20000 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
302 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
303 def test(self): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
304 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
305 n = range(10) * 10 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
306 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
307 for i in xrange(self.rounds): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
308 l = [x for x in n] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
309 l = [x for x in n if x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
310 l = [x for x in n if not x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
311 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
312 l = [x for x in n] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
313 l = [x for x in n if x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
314 l = [x for x in n if not x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
315 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
316 def calibrate(self): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
317 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
318 n = range(10) * 10 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
319 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
320 for i in xrange(self.rounds): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
321 pass |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
322 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
323 class NestedListComprehensions(Test): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
324 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
325 version = 2.0 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
326 operations = 6 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
327 rounds = 20000 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
328 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
329 def test(self): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
330 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
331 m = range(10) |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
332 n = range(10) |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
333 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
334 for i in xrange(self.rounds): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
335 l = [x for x in n for y in m] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
336 l = [y for x in n for y in m] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
337 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
338 l = [x for x in n for y in m if y] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
339 l = [y for x in n for y in m if x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
340 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
341 l = [x for x in n for y in m if not y] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
342 l = [y for x in n for y in m if not x] |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
343 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
344 def calibrate(self): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
345 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
346 m = range(10) |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
347 n = range(10) |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
348 |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
349 for i in xrange(self.rounds): |
|
df3923c36ec5
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
Georg Brandl <georg@python.org>
parents:
38801
diff
changeset
|
350 pass |
