mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests: Rename "bench" tests to "internal_bench" and run-internalbench.py
To emphasise these benchmark tests compare the internal performance of features amongst themselves, rather than absolute performance testing.
This commit is contained in:
7
tests/internal_bench/bytealloc-2-repeat.py
Normal file
7
tests/internal_bench/bytealloc-2-repeat.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import bench
|
||||
|
||||
def test(num):
|
||||
for i in iter(range(num // 1000)):
|
||||
b"\0" * 10000
|
||||
|
||||
bench.run(test)
|
||||
Reference in New Issue
Block a user