def getSpeed(matrix, filename):
    start = time.time()
    resultLines = subprocess.check_output((filename, matrix), stderr=subprocess.STDOUT, timeout=5).decode(sys.stdout.encoding)
    end = (time.time() - start)
    return end
def getSpeed(matrix, filename):
    start = time.time()
    resultLines = subprocess.check_output((filename, matrix), stderr=subprocess.STDOUT, timeout=5).decode(sys.stdout.encoding)
    end = (time.time() - start)
    return end