sahiljagtap's picture
Drums launch benchmarks reproduction + paired Drums/Prime/E2B re-run (scrubbed)
4ef198a
Raw History Blame Contribute Delete
371 Bytes
import sys, json, time
sys.path.insert(0, "/opt/drums/src/drumsd/python")
import drums
c = drums.connect("http://127.0.0.1:7070", open("/etc/drums/token").read().strip())
env = drums.Env(c, c.call("GET", f"/v1/slots/{sys.argv[1]}"))
k = env.fork(int(sys.argv[2]) if len(sys.argv) > 2 else 1)
print(json.dumps([x.record.get("timings") for x in k]))
import os; os._exit(0)