Spaces:
Sleeping
Sleeping
Download backend/test_perf.py from ascentialabs/PDC: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/spaces/ascentialabs/PDC/resolve/main/backend/test_perf.py
- Command line
-
hf download hf://spaces/ascentialabs/PDC/backend/test_perf.py
-
curl -L -o test_perf.py https://huggingface.co/spaces/ascentialabs/PDC/resolve/main/backend/test_perf.py
321 Bytes
| import time | |
| from app.services.data_service import data_service | |
| start = time.time() | |
| data_service.get_validation_report(sample_size=100) | |
| print(f"Validation time 1: {time.time() - start:.2f}s") | |
| start = time.time() | |
| data_service.get_validation_report(sample_size=100) | |
| print(f"Validation time 2: {time.time() - start:.2f}s") | |