Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "b" | ||
, "version": "0.0.0" | ||
, "version": "0.0.1" | ||
, "description": "Benchmarks for Node.js." | ||
, "keywords": ["benchmarks", "benchmarking"] | ||
, "author": "Veselin Todorov <hi@vesln.com>" | ||
, "dependencies": { | ||
} | ||
, "devDependencies": { | ||
"mocha": "0.3.3" | ||
, "should": "0.3.2" | ||
, "super": "0.0.1" | ||
} | ||
@@ -13,0 +12,0 @@ , "repository" : { |
[![Build Status](https://secure.travis-ci.org/vesln/b.png)](http://travis-ci.org/vesln/b) | ||
# B - | ||
# B - Benchmarks for Node.js | ||
## Description | ||
B is small and elegant module for Node.js that makes benchmarking fun. | ||
## Features | ||
- Async & sync benchmarks. | ||
- Custom streams. | ||
- Benchmark names. Useful when running multiple benchmarks at the same time. | ||
## Synopsis | ||
```js | ||
var benchmark = require('b'); | ||
benchmark(function(done) { | ||
for (var i = -1; ++i < 10000000;) var foo = 3; | ||
done(); | ||
}); | ||
``` | ||
```js | ||
var benchmark = require('b'); | ||
var b = benchmark('Simple bench.'); | ||
b.start(); | ||
for (var i = -1; ++i < 10000000;) var foo = 3; | ||
b.end(); | ||
``` | ||
```js | ||
var benchmark = require('b').Benchmark; | ||
var b = new Benchmark('Testing cool stuff', process.stdout, function(done) { | ||
for (var i = -1; ++i < 10000000;) var foo = 3; | ||
done(); | ||
}).run(); | ||
``` | ||
## Requirements | ||
@@ -12,0 +51,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
7942
10
227
90
3