bat-execution-time

0.0.3 • Public • Published

bat-execution-time

🕐 CLI to measure the execution time for a bat file over a period of time

NPM version Dependency Status License Js Standard Style

Installation

$ npm install -g bat-execution-time

Usage

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]

Examples

Write directly to stdout:

$ bat-execution-time .\test\fixtures\test.bat -t 5

example

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"
    }
  ]
}

License

MIT

Package Sidebar

Install

npm i bat-execution-time

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • kanton-aargau