diff options
Diffstat (limited to 'tests/bench/arrayop-3-bytearray_inplace.py')
| -rw-r--r-- | tests/bench/arrayop-3-bytearray_inplace.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/bench/arrayop-3-bytearray_inplace.py b/tests/bench/arrayop-3-bytearray_inplace.py deleted file mode 100644 index a6d628070..000000000 --- a/tests/bench/arrayop-3-bytearray_inplace.py +++ /dev/null @@ -1,12 +0,0 @@ -# Array operation -# Type: bytearray, inplace operation using for. What's good about this -# method is that it doesn't require any extra memory allocation. -import bench - -def test(num): - for i in iter(range(num//10000)): - arr = bytearray(b"\0" * 1000) - for i in range(len(arr)): - arr[i] += 1 - -bench.run(test) |
