diff --git a/concat-test/concat-test.py b/concat-test/concat-test.py index 1620e4d..1518cc8 100755 --- a/concat-test/concat-test.py +++ b/concat-test/concat-test.py @@ -8,10 +8,11 @@ def main(): test_runs = 1000000 + test_range = 1000 w = csv.writer(sys.stdout) styles = ['plus', 'join', 'format'] w.writerow([''] + styles) - for i in range(10): + for i in range(test_range): sr = {} for style in styles: tr = timeit.timeit( @@ -21,6 +22,7 @@ def main(): ) sr[style] = tr w.writerow([str(i+1)] + ['%.3f' % (sr[s] * MICRO / test_runs) for s in styles]) + sys.stdout.flush() if __name__ == '__main__': main()