Socket
Socket
Sign inDemoInstall

benchmarked

Package Overview
Dependencies
184
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

20

index.js

@@ -60,6 +60,5 @@ 'use strict';

this.format = function(benchmark) {
return ' ' + benchmark;
};
if (typeof this.options.format === 'function') {
this.format = this.options.format;
}
if (this.options.fixtures) {

@@ -74,2 +73,12 @@ this.addFixtures(this.options.fixtures);

/**
* Default formatter for benchmark.
*
* @param {Benchmark} `benchmark` The Benchmark to produce a string from.
*/
Benchmarked.prototype.format = function(benchmark) {
return ' ' + benchmark;
};
/**
* Create a vinyl file object.

@@ -278,2 +287,3 @@ *

var opts = this.options;
var format = this.format;

@@ -301,3 +311,3 @@ if (opts.dryRun === true) {

cursor.eraseLine();
cursor.write(opts.format(event.target));
cursor.write(format(event.target));
},

@@ -304,0 +314,0 @@ fn: function() {

{
"name": "benchmarked",
"description": "Easily generate benchmarks from a glob of files.",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/jonschlinkert/benchmarked",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
"Eli Doran (http://www.elidoran.com)",
"James Costian (jamescostian.com)",
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
"leesei (https://leesei.github.io)"

@@ -11,0 +12,0 @@ ],

@@ -1,2 +0,2 @@

# benchmarked [![NPM version](https://img.shields.io/npm/v/benchmarked.svg?style=flat)](https://www.npmjs.com/package/benchmarked) [![NPM monthly downloads](https://img.shields.io/npm/dm/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![NPM total downloads](https://img.shields.io/npm/dt/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/benchmarked.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/benchmarked)
# benchmarked [![NPM version](https://img.shields.io/npm/v/benchmarked.svg?style=flat)](https://www.npmjs.com/package/benchmarked) [![NPM monthly downloads](https://img.shields.io/npm/dm/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![NPM total downloads](https://img.shields.io/npm/dt/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/benchmarked.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/benchmarked)

@@ -13,8 +13,2 @@ > Easily generate benchmarks from a glob of files.

Install with [yarn](https://yarnpkg.com):
```sh
$ yarn add benchmarked
```
This is an opinionated wrapper for [benchmarked.js](http://benchmarkjs.com/) to make it easier to do benchmarks. Concept is from [remarkable](https://github.com/jonschlinkert/remarkable/tree/master/benchmark)

@@ -58,3 +52,3 @@

### [.addFixtures](index.js#L244)
### [.addFixtures](index.js#L253)

@@ -74,3 +68,3 @@ Add fixtures to run benchmarks against.

### [.addCode](index.js#L260)
### [.addCode](index.js#L269)

@@ -90,3 +84,3 @@ Specify the functions to be benchmarked.

### [.addSuite](index.js#L272)
### [.addSuite](index.js#L281)

@@ -99,3 +93,3 @@ Add benchmark suite to the given `fixture` file.

### [.run](index.js#L338)
### [.run](index.js#L348)

@@ -131,8 +125,8 @@ Run the benchmarks.

| **Commits** | **Contributor** |
| --- | --- |
| 36 | [jonschlinkert](https://github.com/jonschlinkert) |
| 2 | [elidoran](https://github.com/elidoran) |
| 2 | [jamescostian](https://github.com/jamescostian) |
| 1 | [leesei](https://github.com/leesei) |
| **Commits** | **Contributor** |
| --- | --- |
| 39 | [jonschlinkert](https://github.com/jonschlinkert) |
| 3 | [elidoran](https://github.com/elidoran) |
| 2 | [jamescostian](https://github.com/jamescostian) |
| 1 | [leesei](https://github.com/leesei) |

@@ -171,2 +165,2 @@ ### Building docs

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 26, 2017._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 08, 2017._
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc