Feature or enhancement
Proposal:
Taking inspiration from CLI tools such as hyperfine:
Let's add colour to the CLI output of python -m timeit.
Standard and verbose:
./python.exe -m timeit "'-'.join(str(n) for n in range(100))"
./python.exe -m timeit --verbose "'-'.join(str(n) for n in range(100))"
With a warning:
./python.exe -m timeit --verbose "import time, random; time.sleep(random.random() * 0.5)"
As usual, environment variables can control colour output.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
Feature or enhancement
Proposal:
Taking inspiration from CLI tools such as hyperfine:
Let's add colour to the CLI output of
python -m timeit.Standard and verbose:
With a warning:
./python.exe -m timeit --verbose "import time, random; time.sleep(random.random() * 0.5)"As usual, environment variables can control colour output.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
timeitCLI output #146610