Skip to content
Snippets Groups Projects
Commit e918fc5e authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/bench: Add testcase to compare bytes(N) vs b"\0" * N.

Based on python-dev discussion regarding PEP467.
parent bba77a2d
No related branches found
No related tags found
No related merge requests found
import bench
def test(num):
for i in iter(range(num // 1000)):
bytes(10000)
bench.run(test)
import bench
def test(num):
for i in iter(range(num // 1000)):
b"\0" * 10000
bench.run(test)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment