Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /freqtrade_freqtrade /tests /commands /test_startup_time.py
| import subprocess # noqa: S404, RUF100 | |
| import time | |
| from tests.conftest import is_mac | |
| MAXIMUM_STARTUP_TIME = 0.7 if is_mac() else 0.5 | |
| def test_startup_time(): | |
| # warm up to generate pyc | |
| subprocess.run(["freqtrade", "-h"], check=True) | |
| start = time.time() | |
| subprocess.run(["freqtrade", "-h"], check=True) | |
| elapsed = time.time() - start | |
| assert elapsed < MAXIMUM_STARTUP_TIME, ( | |
| "The startup time is too long, try to use lazy import in the command entry function" | |
| f" (maximum {MAXIMUM_STARTUP_TIME}s, got {elapsed}s)" | |
| ) | |
Xet Storage Details
- Size:
- 563 Bytes
- Xet hash:
- 72a0b1e9e538c3b4b118d49d4e3670e6cb27f8e5f799252bc6518efe4405f7e0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.