test_bookkeeping_overhead.py 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. """Bookkeeping overhead (1 node, 10k trials)
  2. In this run, we will start a large number of trials (10k) that take just a
  3. second to run. We thus measure overhead that comes with dealing with a
  4. large number of trials, e.g. experiment checkpointing.
  5. Cluster: cluster_1x16.yaml
  6. Test owner: krfricke
  7. Acceptance criteria: Should run faster than 800 seconds.
  8. Theoretical minimum time: 10000/16 = 625 seconds
  9. """
  10. import os
  11. import ray
  12. from ray.tune.utils.release_test_util import timed_tune_run
  13. def main():
  14. os.environ["TUNE_GLOBAL_CHECKPOINT_S"] = "100" # Tweak
  15. ray.init(address="auto")
  16. num_samples = 10000
  17. results_per_second = 1
  18. trial_length_s = 1
  19. max_runtime = 800
  20. timed_tune_run(
  21. name="bookkeeping overhead",
  22. num_samples=num_samples,
  23. results_per_second=results_per_second,
  24. trial_length_s=trial_length_s,
  25. max_runtime=max_runtime,
  26. )
  27. if __name__ == "__main__":
  28. main()