MCPcopy Create free account
hub / github.com/BabitMF/bmf / compareProfile

Function compareProfile

bmf/demo/transcode/transcode.py:179–201  ·  view source on GitHub ↗
(graph_file)

Source from the content-addressed store, hash-verified

177
178
179def compareProfile(graph_file):
180 import os
181 import time
182 ffmpeg_comand = "python3 compare.py " + graph_file + " ffmpeg"
183 start_time = time.time()
184 os.system(ffmpeg_comand)
185 end_time = time.time()
186 runtime = end_time - start_time
187 print("ffmpeg_comand :", runtime)
188
189 start_time = time.time()
190 python_command = "python3 compare.py " + graph_file + " pythonEngine"
191 os.system(python_command)
192 end_time = time.time()
193 runtime = end_time - start_time
194 print("python_command :", runtime)
195
196 start_time = time.time()
197 c_command = "python3 compare.py " + graph_file + " cEngine"
198 os.system(c_command)
199 end_time = time.time()
200 runtime = end_time - start_time
201 print("c_command :", runtime)
202
203
204def compare():

Callers 1

compareFunction · 0.85

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected