This project is a python script to test how long another program takes to run
- Python 3.x
Clone the repository:
git clone https://github.com/Bhim-Rao/Benchmark.git
cd benchmarkpython benchmark.py your_file.pycd dist
benchmark your_file.pymake sure to replace
your_file.pywith an existing filename. We've provided the example filehello.pymake sure your file is in the same directory as the program
0
64
256
...
63744256
63872064
52.0 msusage: benchmark [option] ... [file]
-p : ignores print statements from the running file
-s : outputs elapsed time in seconds
-ms : outputs elapsed time in milliseconds
-mcs : outputs elapsed time in microseconds
-r num : run's the code num times
Arguments: file : program to be benchmarked
This project is licensed under the MIT License - see the LICENSE file for details.
