Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Adjust README.md and package.json in prep for Lo-Dash v.1.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 10, 2013
1 parent 7650014 commit a74594d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
26 changes: 9 additions & 17 deletions README.md
Expand Up @@ -15,13 +15,16 @@ For a list of upcoming features, check out our [roadmap](https://github.com/best


## Support ## Support


Benchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1-15, IE 6-9, Opera 9.25-12, Safari 3-6, Node.js 0.8.8, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5. Benchmark.js has been tested in at least Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5.


## Installation and usage ## Installation and usage


In a browser or Adobe AIR: Benchmark.js’ only hard dependency is [Lo-Dash](http://lodash.com/).

In a browser:


```html ```html
<script src="lodash.js"></script>
<script src="benchmark.js"></script> <script src="benchmark.js"></script>
``` ```


Expand Down Expand Up @@ -68,25 +71,14 @@ load('benchmark.js');
In an AMD loader like [RequireJS](http://requirejs.org/): In an AMD loader like [RequireJS](http://requirejs.org/):


```js ```js
require({
'paths': {
'benchmark': 'path/to/benchmark'
}
},
['benchmark'], function(Benchmark) {
console.log(Benchmark.version);
});

// or with platform.js
// https://github.com/bestiejs/platform.js
require({ require({
'paths': { 'paths': {
'benchmark': 'path/to/benchmark', 'benchmark': 'path/to/benchmark',
'lodash': 'path/to/lodash',
'platform': 'path/to/platform' 'platform': 'path/to/platform'
} }
}, },
['benchmark', 'platform'], function(Benchmark, platform) { ['benchmark'], function(Benchmark) {
Benchmark.platform = platform;
console.log(Benchmark.platform.name); console.log(Benchmark.platform.name);
}); });
``` ```
Expand All @@ -108,7 +100,7 @@ suite.add('RegExp#test', function() {
console.log(String(event.target)); console.log(String(event.target));
}) })
.on('complete', function() { .on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name')); console.log('Fastest is ' + _.pluck(this.filter('fastest'), 'name'));
}) })
// run async // run async
.run({ 'async': true }); .run({ 'async': true });
Expand All @@ -121,7 +113,7 @@ suite.add('RegExp#test', function() {


## BestieJS ## 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, and plenty of documentation. Benchmark.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.


## Authors ## Authors


Expand Down
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -53,5 +53,9 @@
}, },
"scripts": { "scripts": {
"test": "node test/test" "test": "node test/test"
},
"dependencies": {
"lodash": "~1.1.0",
"platform": "~1.0.0"
} }
} }
3 changes: 2 additions & 1 deletion test/benchmark.air/src/index.html
Expand Up @@ -7,6 +7,7 @@
<script> <script>
var console = air.Introspector.Console; var console = air.Introspector.Console;
</script> </script>
<script src="lodash.js"></script>
<script src="benchmark.js"></script> <script src="benchmark.js"></script>
</head> </head>
<body> <body>
Expand All @@ -26,7 +27,7 @@
console.log(event.target); console.log(event.target);
}) })
.on('complete', function() { .on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name')); console.log('Fastest is ' + _.pluck(this.filter('fastest'), 'name'));
}) })
// don't run async to avoid JavaScript security errors // don't run async to avoid JavaScript security errors
// http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html // http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html
Expand Down
2 changes: 1 addition & 1 deletion vendor/lodash/README.md
Expand Up @@ -263,7 +263,7 @@ The full changelog is available [here](https://github.com/bestiejs/lodash/wiki/C


## BestieJS ## BestieJS


Lo-Dash is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation. Lo-Dash is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.


## Author ## Author


Expand Down
2 changes: 1 addition & 1 deletion vendor/platform.js/README.md
Expand Up @@ -8,7 +8,7 @@ Platform.js is for informational purposes only and **not** intended as a substit


## BestieJS ## BestieJS


Platform.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation. Platform.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.


## Documentation ## Documentation


Expand Down

0 comments on commit a74594d

Please sign in to comment.