InfLab4/done

This commit is contained in:
LeterZP
2026-02-13 19:48:08 +03:00
commit 66aad6b212
5 changed files with 791 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
from time import time
from task1 import json_to_bin
from task2 import bin_to_yaml
from task3 import json_to_yaml
from task4 import bin_to_xml
try:
timer = time()
for i in range(100):
json_to_bin("schedule.json")
bin_to_yaml("schedule.bin")
print("json -> yaml")
print(time() - timer)
timer = time()
for i in range(100):
json_to_yaml("schedule.json")
print("json -> yaml (with libraries)")
print(time() - timer)
timer = time()
for i in range(100):
json_to_bin("schedule.json")
bin_to_xml("schedule.bin")
print("json -> xml")
print(time() - timer)
except Exception as error:
print(f"Ошибка: {error}")