CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 21:44:44 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=5e1513e38133229520b8bfde53e464749ec06ec63c1134a1abc595f266f86517a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22b-AdLHZiQ2xEF2JXG11Eo1vh9esoh7Pw%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d18a58fe02755c-BLR
# itertools_repeat_timeit.py - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # itertools_repeat_timeit.py
- from itertools import repeat
- import timeit
- amount = 1_000_000
- n = 25
- def while_true():
- count = 0
- while (count < amount):
- count += 1
- def itertools_repeat():
- for _ in repeat(None, amount):
- pass
- def for_range():
- for _ in range(amount):
- pass
- while_true_time: float = timeit.timeit(while_true, number=n)
- repeat_time: float = timeit.timeit(itertools_repeat, number=n)
- range_time: float = timeit.timeit(for_range, number=n)
- print(f'while_true_time = {while_true_time:.3f}s')
- print(f'repeat_time = {repeat_time:.3f}s')
- print(f'range_time = {range_time:.3f}s')
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 1
JavaScript | 5 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ R
JavaScript | 8 sec ago | 0.25 KB
-
📝 EASY MONEY GUIDE ✅ Working
JavaScript | 9 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ J
JavaScript | 14 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 8
JavaScript | 18 sec ago | 0.25 KB
-
📌 ChangeNOW Exploit
JavaScript | 20 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ Q
JavaScript | 23 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 26 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand