Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

b

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

b - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

.travis.yml

5

package.json
{
"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" : {

41

Readme.md
[![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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc