This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
The results of the script are used in blog article called | |
"Revisiting the Mechanism Behind the `for` Statement" hosted at | |
https://mylette.rs/revisiting-the-mechanism-behind-the-for-statement. | |
Purpose: The script measures the performance of iterating over all | |
elements in an iterable with two different implementation methods, namely | |
using Pythonic and non-Pythonic design patterns. See functions | |
`loop_pythonic` and `loop_with_indexes` for details. | |
Requirements: Python version >= 3.3 | |
License: MIT License (see https://opensource.org/licenses/MIT) |