diff options
Diffstat (limited to 'tests/internal_bench/bytebuf-2-join_map_bytes.py')
-rw-r--r-- | tests/internal_bench/bytebuf-2-join_map_bytes.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/internal_bench/bytebuf-2-join_map_bytes.py b/tests/internal_bench/bytebuf-2-join_map_bytes.py index daa622991f..9ecee47978 100644 --- a/tests/internal_bench/bytebuf-2-join_map_bytes.py +++ b/tests/internal_bench/bytebuf-2-join_map_bytes.py @@ -4,9 +4,11 @@ # this is slowest way to do it. import bench + def test(num): - for i in iter(range(num//10000)): + for i in iter(range(num // 10000)): ba = bytearray(b"\0" * 1000) - ba2 = b''.join(map(lambda x:bytes([x + 1]), ba)) + ba2 = b"".join(map(lambda x: bytes([x + 1]), ba)) + bench.run(test) |