-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbench.py
31 lines (30 loc) · 1.08 KB
/
bench.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
import assets.cpu_bench as cpu_bench
import assets.gpu as gpu
from rich.markdown import Markdown
from rich import print
from rich.table import Table
if __name__ == "__main__":
main_banner = """
_______ _______ _______ _______ __ _ _______ __ __
| || || _ || || | | || || | | |
| _ || || |_| || ___|| |_| || || |_| |
| |_| || || || |___ | || || |
| ___|| _|| _ | | ___|| _ || _|| |
| | | |_ | |_| || |___ | | | || |_ | _ |
|___| |_______||_______||_______||_| |__||_______||__| |__|
By: Morpheuslord
"""
banner = Markdown(main_banner)
print(banner)
main_table = Table()
main_table.add_column("options")
main_table.add_column("Name")
main_table.add_row("1", "CPU Bench")
main_table.add_row("2", "GPU Bench")
print(main_table)
opt = input("Enter options:")
match opt:
case "1":
cpu_bench.cpu_bench()
case "2":
gpu.gpu_bench_menu()