| 177 | |
| 178 | |
| 179 | def 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 | |
| 204 | def compare(): |