forked from coiled/benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbenchmark_schema.py
64 lines (50 loc) · 2.09 KB
/
benchmark_schema.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from sqlalchemy import Column, DateTime, Float, Integer, String
from sqlalchemy.orm import declarative_base
Base = declarative_base()
class TestRun(Base):
__tablename__ = "test_run"
# unique run ID
id = Column(Integer, primary_key=True)
# pytest data
session_id = Column(String, nullable=False)
name = Column(String, nullable=False)
originalname = Column(String, nullable=False)
path = Column(String, nullable=True)
setup_outcome = Column(String, nullable=True)
call_outcome = Column(String, nullable=True)
teardown_outcome = Column(String, nullable=True)
# Runtime data
coiled_runtime_version = Column(String, nullable=True)
coiled_software_name = Column(String, nullable=True)
dask_version = Column(String, nullable=True)
dask_expr_version = Column(String, nullable=True)
distributed_version = Column(String, nullable=True)
python_version = Column(String, nullable=True)
platform = Column(String, nullable=True)
# CI runner data
ci_run_url = Column(String, nullable=True)
# Wall clock data
start = Column(DateTime, nullable=True)
end = Column(DateTime, nullable=True)
duration = Column(Float, nullable=True)
# Memory data
average_memory = Column(Float, nullable=True)
peak_memory = Column(Float, nullable=True)
# Durations data
compute_time = Column(Float, nullable=True)
disk_spill_time = Column(Float, nullable=True)
serializing_time = Column(Float, nullable=True)
transfer_time = Column(Float, nullable=True)
# Scheduler
scheduler_cpu_avg = Column(Float, nullable=True)
scheduler_memory_max = Column(Float, nullable=True)
# Event Loop
worker_max_tick = Column(Float, nullable=True)
scheduler_max_tick = Column(Float, nullable=True)
# Cluster name/id/details_url
cluster_name = Column(String, nullable=True)
cluster_id = Column(Integer, nullable=True)
cluster_details_url = Column(String, nullable=True)
# Artifacts
performance_report_url = Column(String, nullable=True) # Not yet collected
cluster_dump_url = Column(String, nullable=True)