diff options
Diffstat (limited to 'tests/internal_bench/bytebuf-1-inplace.py')
-rw-r--r-- | tests/internal_bench/bytebuf-1-inplace.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/internal_bench/bytebuf-1-inplace.py b/tests/internal_bench/bytebuf-1-inplace.py index 7e7d9391c..e1b6016a5 100644 --- a/tests/internal_bench/bytebuf-1-inplace.py +++ b/tests/internal_bench/bytebuf-1-inplace.py @@ -2,10 +2,12 @@ # Inplace - the most memory efficient way import bench + def test(num): - for i in iter(range(num//10000)): + for i in iter(range(num // 10000)): ba = bytearray(b"\0" * 1000) for i in range(len(ba)): ba[i] += 1 + bench.run(test) |