🕐 CLI to measure the execution time for a bat file over a period of time
$ npm install -g bat-execution-time
bat-execution-time [batfile] [args]
Options:
--times, -t run the tests `t` times [number] [default: 1]
--output, -o write the results into a json file [string]
-h, --help Show help [boolean]
Write directly to stdout
:
$ bat-execution-time .\test\fixtures\test.bat -t 5
Or write the output to a file:
$ bat-execution-time .\test\fixtures\test.bat -o results.json -t 2
{
"data": [
{
"processTime": 3.217272558,
"timeOfDay": "16:55:23"
},
{
"processTime": 3.208636087,
"timeOfDay": "16:55:26"
}
]
}