Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "tinybench", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A benchmarking library that supports high-resolution timers & returns statistically significant results.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,12 +0,5 @@ | ||
# Benchmark.js v2.1.4 | ||
# tinybench | ||
<div align="center"> | ||
A [robust](https://mathiasbynens.be/notes/javascript-benchmarking "Bulletproof JavaScript benchmarks") benchmarking library based on benchmark.js | ||
[![Build Status](https://github.com/cthulhu-node/benchmark.js/workflows/ci/badge.svg)](https://github.com/cthulhu-node/benchmark.js/actions) | ||
[![Coverage Status](https://coveralls.io/repos/github/cthulhu-node/benchmark.js/badge.svg?branch=master)](https://coveralls.io/github/cthulhu-node/benchmark.js?branch=master) | ||
</div> | ||
A [robust](https://mathiasbynens.be/notes/javascript-benchmarking "Bulletproof JavaScript benchmarks") benchmarking library that supports high-resolution timers & returns statistically significant results. As seen on [jsPerf](https://jsperf.com/). | ||
## Documentation | ||
@@ -16,37 +9,10 @@ | ||
## Download | ||
* [Development source](https://raw.githubusercontent.com/bestiejs/benchmark.js/2.1.4/benchmark.js) | ||
## Installation | ||
In a browser: | ||
```html | ||
<script src="benchmark.js"></script> | ||
``` | ||
In an AMD loader: | ||
```js | ||
require({ | ||
'paths': { | ||
'benchmark': 'path/to/benchmark' | ||
} | ||
}, | ||
['benchmark'], function(Benchmark) {/*…*/}); | ||
``` | ||
Using npm: | ||
```shell | ||
$ npm i --save benchmark | ||
$ npm i --save tinybench | ||
``` | ||
In Node.js: | ||
```js | ||
var Benchmark = require('benchmark'); | ||
``` | ||
Optionally, use the [microtime module](https://github.com/wadey/node-microtime) by Wade Simmons: | ||
@@ -61,2 +27,4 @@ | ||
```js | ||
var Benchmark = require('tinybench'); | ||
var suite = new Benchmark.Suite; | ||
@@ -86,9 +54,1 @@ | ||
``` | ||
## Support | ||
Tested in Chrome 54-55, Firefox 49-50, IE 11, Edge 14, Safari 9-10, Node.js 6-7, & PhantomJS 2.1.1. | ||
## BestieJS | ||
Benchmark.js is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, & plenty of documentation. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106690
3035
52
3