Skip to content

Commit

Permalink
version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Nov 15, 2021
1 parent 9d2000e commit d13dbdd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 24 deletions.
50 changes: 29 additions & 21 deletions README.md
Expand Up @@ -13,7 +13,7 @@ run <a href="https://github.com/caderek/benny">benny</a> benchmarks in the brows
· <a href="https://github.com/stagas/benny-vipu/issues"> 🖐️ <strong>Help</strong></a>
</p>

***
---

## Install

Expand All @@ -23,15 +23,20 @@ $ npm i benny-vipu -g

## CLI

Usage: benny-vipu [options] <file>

<file> Benchmark filename to run

-c, --clear Clear screen between page reloads
-f, --force Force cache renewal
-d, --debug Print debug information
--min=n Minimum iteration samples (default: 3)
--max=n Maximum time in seconds (default: 1)
```
Usage: benny-vipu [options] <file>
<file> Benchmark filename to run
-c, --clear Clear screen between page reloads
-f, --force Force cache renewal
-d, --debug Print debug information
-p, --precision=n Results decimal precision digits (default: 2)
-s, --sort Sort results by winners (default: false)
-w, --width=n Ascii chart width (default: 30)
--min=n Minimum iteration samples (default: 3)
--max=n Maximum time in seconds (default: 1)
```

## Example

Expand Down Expand Up @@ -83,25 +88,28 @@ bench().then(finish)

#### Table of Contents

* [run](#run)
* [Parameters](#parameters)
- [run](#run)
- [Parameters](#parameters)

### run

[src/index.ts:46-86](https://github.com/stagas/benny-vipu/blob/a1ca7fe73f1c5f952c7624c5c10560d5ea7316aa/src/index.ts#L46-L86 "Source code on GitHub")
[src/index.ts:58-105](https://github.com/stagas/benny-vipu/blob/9d2000e013e6d7c5a17179c5486c5333a8bbbf77/src/index.ts#L58-L105 'Source code on GitHub')

Runs a given benchmark file.

#### Parameters

* `filename` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The benchmark filename
* `options` **Options** (optional, default `new Options()`)

* `options.clear` Clear screen between page reloads
* `options.force` Force cache renewal
* `options.debug` Print debug information
* `options.minSamples` Minimum iteration samples (default: 3)
* `options.maxTime` Maximum time in seconds (default: 1)
- `filename` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The benchmark filename
- `options` **Options** (optional, default `new Options()`)

- `options.clear` Clear screen between page reloads
- `options.force` Force cache renewal
- `options.debug` Print debug information
- `options.precision` Results decimal precision digits (default: 2)
- `options.sort` Sort results by winners (default: false)
- `options.width` Ascii chart width (default: 30)
- `options.minSamples` Minimum iteration samples (default: 3)
- `options.maxTime` Maximum time in seconds (default: 1)

## Contribute

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"author": "stagas",
"short": "stagas/benny-vipu",
"description": "run benny benchmarks in the browser headless using vipu",
"version": "1.0.1",
"version": "1.1.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit d13dbdd

Please sign in to comment.