Comparing version 0.3.0 to 1.0.0
@@ -1,2 +0,2 @@ | ||
Copyright 2010-2011 Mathias Bynens <http://mathiasbynens.be/> | ||
Copyright 2010-2012 Mathias Bynens <http://mathiasbynens.be/> | ||
Based on JSLitmus.js, copyright Robert Kieffer <http://broofa.com/> | ||
@@ -22,2 +22,2 @@ Modified by John-David Dalton <http://allyoucanleet.com/> | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
{ | ||
"name": "benchmark", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "A benchmarking library that works on nearly all JavaScript platforms, supports high-resolution timers, and returns statistically significant results.", | ||
@@ -9,4 +9,4 @@ "homepage": "http://benchmarkjs.com/", | ||
"benchmark", | ||
"narwhal", | ||
"node", | ||
"narwhal", | ||
"performance", | ||
@@ -30,3 +30,3 @@ "ringo", | ||
"name": "John-David Dalton", | ||
"email": "john@fusejs.com", | ||
"email": "john.david.dalton@gmail.com", | ||
"web": "http://allyoucanleet.com/" | ||
@@ -53,5 +53,5 @@ }, | ||
"directories": { | ||
"doc": "docs", | ||
"test": "tests" | ||
"doc": "./doc", | ||
"test": "./test" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Benchmark.js | ||
# Benchmark.js <sup>v1.0.0</sup> | ||
@@ -15,2 +15,6 @@ A [robust](http://calendar.perfplanet.com/2010/bulletproof-javascript-benchmarks/ "Bulletproof JavaScript benchmarks") benchmarking library that works on nearly all JavaScript platforms<sup><a name="fnref1" href="#fn1">1</a></sup>, supports high-resolution timers, and returns statistically significant results. As seen on [jsPerf](http://jsperf.com/). | ||
## Support | ||
Benchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1.5-13, IE 6-9, Opera 9.25-12.01, Safari 3-6, Node.js 0.8.6, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5. | ||
## Installation and usage | ||
@@ -40,3 +44,3 @@ | ||
In [Node.js](http://nodejs.org/): | ||
In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/): | ||
@@ -53,3 +57,3 @@ ~~~ js | ||
In [Narwhal](http://narwhaljs.org/) and [RingoJS](http://ringojs.org/): | ||
In [RingoJS v0.7.0-](http://ringojs.org/): | ||
@@ -66,15 +70,24 @@ ~~~ js | ||
In [RequireJS](http://requirejs.org/): | ||
In an AMD loader like [RequireJS](http://requirejs.org/): | ||
~~~ js | ||
require(['path/to/benchmark'], function(Benchmark) { | ||
require({ | ||
'paths': { | ||
'benchmark': 'path/to/benchmark' | ||
} | ||
}, | ||
['benchmark'], function(Benchmark) { | ||
console.log(Benchmark.version); | ||
}); | ||
// auto-require platform.js | ||
// or with platform.js | ||
// https://github.com/bestiejs/platform.js | ||
require({ | ||
'paths': { 'platform': 'path/to/platform' } | ||
'paths': { | ||
'benchmark': 'path/to/benchmark', | ||
'platform': 'path/to/platform' | ||
} | ||
}, | ||
['path/to/benchmark'], function(Benchmark) { | ||
['benchmark', 'platform'], function(Benchmark, platform) { | ||
Benchmark.platform = platform; | ||
console.log(Benchmark.platform.name); | ||
@@ -97,4 +110,4 @@ }); | ||
// add listeners | ||
.on('cycle', function(event, bench) { | ||
console.log(String(bench)); | ||
.on('cycle', function(event) { | ||
console.log(String(event.target)); | ||
}) | ||
@@ -113,26 +126,2 @@ .on('complete', function() { | ||
## Cloning this repo | ||
To clone this repository including all submodules, using git 1.6.5 or later: | ||
~~~ bash | ||
git clone --recursive https://github.com/bestiejs/benchmark.js.git | ||
cd benchmark.js | ||
~~~ | ||
For older git versions, just use: | ||
~~~ bash | ||
git clone https://github.com/bestiejs/benchmark.js.git | ||
cd benchmark.js | ||
git submodule update --init | ||
~~~ | ||
Feel free to fork if you see possible improvements! | ||
## Footnotes | ||
1. Benchmark.js has been tested in at least Adobe AIR 2.6, Chrome 5-15, Firefox 1.5-8, IE 6-10, Opera 9.25-11.52, Safari 2-5.1.1, Node.js 0.4.8-0.6.1, Narwhal 0.3.2, Ringo 0.7, and Rhino 1.7RC3. | ||
<a name="fn1" title="Jump back to footnote 1 in the text." href="#fnref1">↩</a> | ||
## Authors | ||
@@ -148,2 +137,2 @@ | ||
* [Kit Cambridge](http://kitcambridge.github.com/) | ||
[![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | ||
[![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") |
Sorry, the diff of this file is too big to display
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5223
0
251004
7
132
1