-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyperf_schema.py
More file actions
124 lines (119 loc) · 4.17 KB
/
pyperf_schema.py
File metadata and controls
124 lines (119 loc) · 4.17 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import pydantic
import datetime
from enum import Enum
class TestNames(Enum):
two_to_three = "2to3"
async_generators = "async_generators"
async_tree_none = "async_tree_none"
async_tree_cpu_io_mixed = "async_tree_cpu_io_mixed"
async_tree_cpu_io_mixed_tg = "async_tree_cpu_io_mixed_tg"
async_tree_eager = "async_tree_eager"
async_tree_eager_cpu_io_mixed = "async_tree_eager_cpu_io_mixed"
async_tree_eager_cpu_io_mixed_tg = "async_tree_eager_cpu_io_mixed_tg"
async_tree_eager_io = "async_tree_eager_io"
async_tree_eager_io_tg = "async_tree_eager_io_tg"
async_tree_eager_memoization = "async_tree_eager_memoization"
async_tree_eager_memoization_tg = "async_tree_eager_memoization_tg"
async_tree_eager_tg = "async_tree_eager_tg"
async_tree_io = "async_tree_io"
async_tree_io_tg = "async_tree_io_tg"
async_tree_memoization = "async_tree_memoization"
async_tree_memoization_tg = "async_tree_memoization_tg"
async_tree_none_tg = "async_tree_none_tg"
asyncio_tcp = "asyncio_tcp"
asyncio_tcp_ssl = "asyncio_tcp_ssl"
asyncio_websockets = "asyncio_websockets"
chameleon = "chameleon"
chaos = "chaos"
comprehensions = "comprehensions"
bench_mp_pool = "bench_mp_pool"
bench_thread_pool = "bench_thread_pool"
coroutines = "coroutines"
coverage = "coverage"
crypto_pyaes = "crypto_pyaes"
dask = "dask"
deepcopy = "deepcopy"
deepcopy_reduce = "deepcopy_reduce"
deepcopy_memo = "deepcopy_memo"
deltablue = "deltablue"
django_template = "django_template"
docutils = "docutils"
dulwich_log = "dulwich_log"
fannkuch = "fannkuch"
float_test = "float"
create_gc_cycles = "create_gc_cycles"
gc_traversal = "gc_traversal"
generators = "generators"
genshi_text = "genshi_text"
genshi_xml = "genshi_xml"
go = "go"
hexiom = "hexiom"
html5lib = "html5lib"
json_dumps = "json_dumps"
json_loads = "json_loads"
logging_format = "logging_format"
logging_silent = "logging_silent"
logging_simple = "logging_simple"
mako = "mako"
mdp = "mdp"
meteor_contest = "meteor_contest"
nbody = "nbody"
nqueens = "nqueens"
pathlib = "pathlib"
pickle = "pickle"
pickle_dict = "pickle_dict"
pickle_list = "pickle_list"
pickle_pure_python = "pickle_pure_python"
pidigits = "pidigits"
pprint_safe_repr = "pprint_safe_repr"
pprint_pformat = "pprint_pformat"
pyflate = "pyflate"
python_startup = "python_startup"
python_startup_no_site = "python_startup_no_site"
raytrace = "raytrace"
regex_compile = "regex_compile"
regex_dna = "regex_dna"
regex_effbot = "regex_effbot"
regex_v8 = "regex_v8"
richards = "richards"
richards_super = "richards_super"
scimark_fft = "scimark_fft"
scimark_lu = "scimark_lu"
scimark_monte_carlo = "scimark_monte_carlo"
scimark_sor = "scimark_sor"
scimark_sparse_mat_mult = "scimark_sparse_mat_mult"
spectral_norm = "spectral_norm"
sqlalchemy_declarative = "sqlalchemy_declarative"
sqlalchemy_imperative = "sqlalchemy_imperative"
sqlglot_normalize = "sqlglot_normalize"
sqlglot_optimize = "sqlglot_optimize"
sqlglot_parse = "sqlglot_parse"
sqlglot_transpile = "sqlglot_transpile"
sqlite_synth = "sqlite_synth"
sympy_expand = "sympy_expand"
sympy_integrate = "sympy_integrate"
sympy_sum = "sympy_sum"
sympy_str = "sympy_str"
telco = "telco"
tomli_loads = "tomli_loads"
tornado_http = "tornado_http"
typing_runtime_protocols = "typing_runtime_protocols"
unpack_sequence = "unpack_sequence"
unpickle = "unpickle"
unpickle_list = "unpickle_list"
unpickle_pure_python = "unpickle_pure_python"
xml_etree_parse = "xml_etree_parse"
xml_etree_iterparse = "xml_etree_iterparse"
xml_etree_generate = "xml_etree_generate"
xml_etree_process = "xml_etree_process"
class DurationUnits(Enum):
second = "sec"
millisecond = "ms"
microsecond = "us"
nanosecond = "ns"
class PyperfResults(pydantic.BaseModel):
Test: TestNames
Avg: float = pydantic.Field(gt=0, allow_inf_nan=False)
Unit: DurationUnits
Start_Date: datetime.datetime
End_Date: datetime.datetime