Home
last modified time | relevance | path

Searched refs:fake_stmt (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_timeit.py89 fake_stmt = "import timeit; timeit._fake_timer.inc()" variable in TestTimeit
115 self.timeit(self.fake_stmt, self.fake_setup, number=0)
118 self.timeit(self.fake_stmt, self.fake_setup, number=3)
124 self.timeit(self.fake_stmt, self.fake_callable_setup, number=3)
137 delta_time = timeit.timeit(self.fake_stmt, self.fake_setup, number=0,
163 self.repeat(self.fake_stmt, self.fake_setup, repeat=0)
166 self.repeat(self.fake_stmt, self.fake_setup, number=0)
169 self.repeat(self.fake_stmt, self.fake_setup, repeat=3, number=5)
176 self.repeat(self.fake_stmt, self.fake_callable_setup,
190 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, repeat=0,
[all …]
/external/python/cpython3/Lib/test/
Dtest_timeit.py91 fake_stmt = "import timeit\ntimeit._fake_timer.inc()" variable in TestTimeit
118 self.timeit(self.fake_stmt, self.fake_setup, number=0)
121 self.timeit(self.fake_stmt, self.fake_setup, number=3)
127 self.timeit(self.fake_stmt, self.fake_callable_setup, number=3)
140 delta_time = timeit.timeit(self.fake_stmt, self.fake_setup, number=0,
177 self.repeat(self.fake_stmt, self.fake_setup, repeat=0)
180 self.repeat(self.fake_stmt, self.fake_setup, number=0)
183 self.repeat(self.fake_stmt, self.fake_setup, repeat=3, number=5)
190 self.repeat(self.fake_stmt, self.fake_callable_setup,
204 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, repeat=0,
[all …]