Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivanhuay/micron-runner
Run your performance benchmark easier than ever
https://github.com/ivanhuay/micron-runner
benchmark benchmark-framework nodejs-library tests utility
Last synced: 3 months ago
JSON representation
Run your performance benchmark easier than ever
- Host: GitHub
- URL: https://github.com/ivanhuay/micron-runner
- Owner: ivanhuay
- Created: 2019-02-18T04:05:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T16:04:33.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T21:59:52.112Z (3 months ago)
- Topics: benchmark, benchmark-framework, nodejs-library, tests, utility
- Language: JavaScript
- Size: 57.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Micron Runner
Run your performance benchmark easier than ever.### Installation:
```
npm i --save micron-runner
```or global
```
npm i --save -g micron-runner
```## Usage:
run with [default params](#defaults).
```
micron-runnner
```
with some custom params:
```
micron-runner --end 10100 --step 1000
```
require a `tests` folder, example:
```
── tests
├── console-log.js
└── stdout.js
```help:
```
micron-runner --h
```
```█▀▄▀█ ▄█ ▄█▄ █▄▄▄▄ ████▄ ▄ ▄
█ █ █ ██ █▀ ▀▄ █ ▄▀ █ █ █ █
█ ▄ █ ██ █ ▀ █▀▀▌ █ █ ██ █ █
█ █ ▐█ █▄ ▄▀ █ █ ▀████ █ █ █ █
█ ▐ ▀███▀ █ █ █ █
▀ ▀ █ ██ ▀Micron - benchmark runner
Run your performance benchmark easier than ever.
Options
--folder dir The input folder.
--start integer Initial amount of executions in the loop.
--end integer End amount of executions in the loop.
--step integer Step from start to end.
--repeats integer Reapets for each loop.
--outdir path Outdir for save results.
--help Print this usage guide.Examples
Basic Example: $ micron test
With Args: $ micron test --start 200 --end 2200 --step 500 -r 3```
### Defaults:
default configuration values
```
start: 100
end: 2100
step: 500
repeats: 3
folder: 'tests'
outdir: 'results'
verbose: false
```
## Test file format:
Example: `tests/index.js`
```
function beforeAll() {
//do somethink
}
function test() {
//do somethink
}
function afterAll() {
//do somethink
}
module.exports = {
beforeAll,
test,
adterAll
}
```
# Example:
code example [HERE](https://github.com/ivanhuay/micron-runner-example).view results [HERE](https://ivanhuay.github.io/micron-runner-example/)
## Changelog
* v0.0.12: Fixed labels to general chart.
* v0.0.11: Axis labels added & fixed loop label.
* v0.0.4: test folder validation added.
* v0.0.5: fix results html template.
* v0.0.6: fix stdout in micron.js file.