https://github.com/user0332/perfcount
https://github.com/user0332/perfcount
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/user0332/perfcount
- Owner: User0332
- License: mit
- Created: 2023-05-29T16:45:23.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-30T02:27:00.000Z (about 3 years ago)
- Last Synced: 2025-07-24T23:34:19.114Z (10 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PerfCount - a Python library used for performance testing
Install it with `pip install perfcount`.
There are multiple decorators included for testing in the library, including `perf.perf`, `perfcount.perf_ns`, `perfcount.shouldtake`, and `perfcount.timeout`. The `perfcount.time_this_program` module can be imported to time the program from the time of importing the `perfcount.time_this_program` module to interpreter exit.
The command `perftcount` can be used to measure execution time of a command. Ex. `perfcount python script.py`.