forked from richelbilderbeek/programming_formalisms_testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (21 loc) · 697 Bytes
/
main.py
File metadata and controls
26 lines (21 loc) · 697 Bytes
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
"""The Medium Project.
Medium-sized project uses in the UPPMAX Programming Formalisms course.
"""
import cProfile
from pftesting_richelbilderbeek.testing_solutions import (
get_datas,
get_sorting_functions,
get_speed_measurements,
save_speed_measurements,
)
if __name__ == "__main__":
speed_measurements = get_speed_measurements(
datas = get_datas(data_lengths = [2, 4, 6, 8, 10]),
functions = get_sorting_functions(),
)
save_speed_measurements(speed_measurements, "speeds.csv")
cProfile.run(
"get_speed_measurements("
"datas = get_datas(data_lengths = [2, 4, 6, 8, 10]), "
"functions = get_sorting_functions())",
)