Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def do():
- s = 0
- for i in xrange(10 ** 6):
- if '123' in str(i):
- s = s + i
- return s
- def test_simple(benchmark):
- benchmark.pedantic(do, warmup_rounds=100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement