mirror of
https://github.com/vale981/ray
synced 2025-03-12 14:16:39 -04:00
17 lines
475 B
Python
17 lines
475 B
Python
![]() |
import subprocess
|
||
|
import time
|
||
|
import os
|
||
|
import json
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
start = time.time()
|
||
|
# 10GB shuffle
|
||
|
subprocess.check_call([
|
||
|
"python", "-m", "ray.experimental.shuffle", "--ray-address={}".format(
|
||
|
os.environ["RAY_ADDRESS"]), "--num-partitions=50",
|
||
|
"--partition-size=200e6"
|
||
|
])
|
||
|
delta = time.time() - start
|
||
|
with open(os.environ["TEST_OUTPUT_JSON"], "w") as f:
|
||
|
f.write(json.dumps({"shuffle_time": delta}))
|