Fastbench is a simple tool to benchmark the execution time of commands, scripts, or compiled programs. It uses C++ to measure and report the time taken for a given command to run.
Clone this repository to your local machine using the following command:
git clone https://github.com/luvth/fastbench
Change into the project directory:
cd fastbench
Give execution permissions to the setup.sh
script:
chmod +x setup.sh
Now you're ready to set up the project. Run the setup.sh
script:
./setup.sh
This will complete the setup process.
Once the setup is done, you can use the program to benchmark any command or script by running the following:
./benchmark "your-command-here"
For example, to benchmark the ls
command:
./benchmark "ls -la"
Have fun !