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
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment