This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
files:python3:output_tests [2018/08/15 16:29] kericson created, added first 2 files |
files:python3:output_tests [2018/08/15 16:38] (current) kericson Added comment about timeit and link to it |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Tests make use of [[https:// | ||
| + | |||
| <file python print.py> | <file python print.py> | ||
| import timeit | import timeit | ||
| Line 39: | Line 41: | ||
| print(timeit.timeit(" | print(timeit.timeit(" | ||
| </ | </ | ||
| + | |||
| + | |||
| + | <file python read_test.py> | ||
| + | from sys import argv | ||
| + | from random import * | ||
| + | from string import * | ||
| + | |||
| + | for i in range(int(argv[1])): | ||
| + | print('' | ||
| + | </ | ||
| + | |||
| + | |||
| + | (('' | ||
| + | |||