https://github.com/pganssle/noop_timer
https://github.com/pganssle/noop_timer
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pganssle/noop_timer
- Owner: pganssle
- License: other
- Created: 2019-07-11T15:08:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T16:10:04.000Z (almost 7 years ago)
- Last Synced: 2025-02-26T16:46:53.797Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NOP Timer
This is a script that calculates how much time it takes to run a function consisting of N NOP bytecode operations (these have no effect and are usually removed as part of the peephole optimization step), as a function of N.
## Installation
To use this, run `pip install noop_timer`. For convenience, it is probably best to use a virtual environment:
```
python -m virtualenv noop_venv --python=3.7
source noop_venv/bin/activate
pip install noop_timer
```
## Use
To run, execute the module with `python -m noop_timer`.