/third_party/python/Lib/test/ |
D | test_timeit.py | 1 import timeit 28 timeit._fake_timer = self 48 del timeit._fake_timer 53 self.assertEqual(timeit.reindent("", 0), "") 54 self.assertEqual(timeit.reindent("", 4), "") 57 self.assertEqual(timeit.reindent("pass", 0), "pass") 58 self.assertEqual(timeit.reindent("pass", 4), "pass") 61 self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") 62 self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ") 65 self.assertEqual(timeit.reindent( [all …]
|
/third_party/python/Doc/library/ |
D | timeit.rst | 1 :mod:`timeit` --- Measure execution time of small code snippets 4 .. module:: timeit 7 **Source code:** :source:`Lib/timeit.py` 16 a :ref:`timeit-command-line-interface` as well as a :ref:`callable <python-interface>` 25 The following example shows how the :ref:`timeit-command-line-interface` 30 $ python3 -m timeit '"-".join(str(n) for n in range(100))' 32 $ python3 -m timeit '"-".join([str(n) for n in range(100)])' 34 $ python3 -m timeit '"-".join(map(str, range(100)))' 39 >>> import timeit 40 >>> timeit.timeit('"-".join(str(n) for n in range(100))', number=10000) [all …]
|
D | debug.rst | 19 timeit.rst
|
/third_party/boost/libs/histogram/benchmark/ |
D | histogram_filling_numpy.py | 5 import timeit 10 print(timeit.timeit("np.histogram(x, bins=100, range=(0, 1))", 13 print(timeit.timeit("histogram1d(x, bins=100, range=(0, 1))",
|
/third_party/gn/build/ |
D | full_test.py | 10 import timeit 70 time_a = timeit.timeit('Trial("%s")' % in_chrome_tree_gn, number=TRIALS, 72 time_b = timeit.timeit('Trial("%s")' % our_gn, number=TRIALS,
|
/third_party/protobuf/benchmarks/python/ |
D | py_benchmark.py | 4 import timeit 128 return timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args), 138 t = timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args),
|
/third_party/python/Lib/ |
D | timeit.py | 164 def timeit(self, number=default_number): member in Timer 206 t = self.timeit(number) 224 time_taken = self.timeit(number) 231 def timeit(stmt="pass", setup="pass", timer=default_timer, function 234 return Timer(stmt, setup, timer, globals).timeit(number)
|
/third_party/python/Tools/importbench/ |
D | importbench.py | 17 import timeit 24 timer = timeit.Timer(stmt) 30 total_time += timer.timeit(1)
|
/third_party/vulkan-headers/registry/ |
D | genvk.py | 35 def startTimer(timeit): argument 37 if timeit: 41 def endTimer(timeit, msg): argument 43 if timeit:
|
/third_party/openGLES/xml/ |
D | genheaders.py | 22 timeit = False variable 37 if (timeit): 531 timeit = True variable
|
D | genglvnd.py | 22 timeit = False variable 52 timeit = True variable 71 if (timeit):
|
/third_party/skia/third_party/externals/egl-registry/api/ |
D | genheaders.py | 33 timeit = False variable 63 timeit = True variable 82 if (timeit):
|
/third_party/skia/third_party/externals/opengl-registry/xml/ |
D | genheaders.py | 33 timeit = False variable 63 timeit = True variable 82 if (timeit):
|
D | genglvnd.py | 33 timeit = False variable 63 timeit = True variable 82 if (timeit):
|
/third_party/EGL/api/ |
D | genheaders.py | 22 timeit = False variable 38 if (timeit): 573 timeit = True variable
|
/third_party/python/Doc/tutorial/ |
D | stdlib.rst | 260 instead of the traditional approach to swapping arguments. The :mod:`timeit` 263 >>> from timeit import Timer 264 >>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit() 266 >>> Timer('a,b = b,a', 'a=1; b=2').timeit() 269 In contrast to :mod:`timeit`'s fine level of granularity, the :mod:`profile` and
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0b2.rst | 75 Fixed timeit when the statement is a string and the setup is not.
|
D | 3.5.0b4.rst | 170 Fixed regression in the timeit module with multiline setup.
|
D | 3.5.0a3.rst | 374 Allow selection of output units in timeit. Patch by Julian Gindi.
|
/third_party/python/Tools/stringbench/ |
D | stringbench.py | 5 import timeit 1397 class BenchTimer(timeit.Timer): 1401 x = self.timeit(number) 1406 times.append(self.timeit(number))
|
D | README | 57 The times are computed with 'timeit.py' which repeats the test more
|
/third_party/flatbuffers/tests/ |
D | py_test.py | 25 import timeit 2317 duration = timeit.timeit(stmt=f, number=count) 2335 duration = timeit.timeit(stmt=f, number=count) 2351 duration = timeit.timeit(stmt=make_monster_from_generated_code,
|
/third_party/pcre2/pcre2/src/ |
D | pcre2test.c | 925 static int timeit = 0; variable 5478 if (timeit > 0) prmsg(&msg, "timing"); in process_pattern() 5799 if (timeit > 0) in process_pattern() 5803 for (i = 0; i < timeit; i++) in process_pattern() 5815 (((double)time_taken * 1000.0) / (double)timeit) / in process_pattern() 5830 if (timeit > 0) in process_pattern() 5835 for (i = 0; i < timeit; i++) in process_pattern() 5848 (((double)time_taken * 1000.0) / (double)timeit) / in process_pattern() 8775 if (both) timeit = timeitm; in main() 9138 if (timeit > 0) in main() [all …]
|
/third_party/python/Tools/scripts/ |
D | var_access_benchmark.py | 273 from timeit import Timer
|
/third_party/python/Doc/using/ |
D | cmdline.rst | 110 as a script. An example is the :mod:`timeit` module:: 112 python -m timeit -s 'setup here' 'benchmarked code here' 113 python -m timeit -h # for details
|