def runTest(conversion_type, reuse): process = bytebuffer.runJava(TEST, (conversion_type, reuse, INPUT)) results = [] for line in process.stdout: results.append(float(line.split()[0])) # Drop the first result due to optimization sucking at first return results[1:]
def runTest(encoder_type, input): process = bytebuffer.runJava(TEST, (encoder_type, input)) results = [] skip = 2 for line in process.stdout: if skip > 0: skip -= 1 else: results.append(float(line.split()[0])) # Drop the first two results due to optimization sucking at first return results[2:]