summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bench/bytealloc-2-repeat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bench/bytealloc-2-repeat.py')
-rw-r--r--tests/bench/bytealloc-2-repeat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bench/bytealloc-2-repeat.py b/tests/bench/bytealloc-2-repeat.py
new file mode 100644
index 0000000000..786a804622
--- /dev/null
+++ b/tests/bench/bytealloc-2-repeat.py
@@ -0,0 +1,7 @@
+import bench
+
+def test(num):
+ for i in iter(range(num // 1000)):
+ b"\0" * 10000
+
+bench.run(test)