Skip to content

Commit

Permalink
Merge pull request alsotang#92 from HaloWang/master
Browse files Browse the repository at this point in the history
Lesson10 README.md Update
  • Loading branch information
alsotang committed Apr 6, 2016
2 parents 6515cab + 08d3b5f commit 1d0b088
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lesson10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

首先去弄个 benchmark 库,https://github.com/bestiejs/benchmark.js

这个库已经两年没有更新了,两年前发了个 1.0.0 版本,直到现在。
<del> 这个库已经两年没有更新了,两年前发了个 1.0.0 版本,直到现在。 </del>

这个库的最新版本是 2.1.0

用法也特别简单,照着官网的 copy 下来就好。

Expand Down Expand Up @@ -58,7 +60,7 @@ suite
console.log(String(event.target));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name'));
console.log('Fastest is ' + this.filter('fastest').map('name'));
})
// 这里的 async 不是 mocha 测试那个 async 的意思,这个选项与它的时间计算有关,默认勾上就好了。
.run({ 'async': true });
Expand Down
2 changes: 1 addition & 1 deletion lesson10/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ suite
console.log(String(event.target));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name'));
console.log('Fastest is ' + this.filter('fastest').map('name'));
})
// run async
.run({ 'async': true });
2 changes: 1 addition & 1 deletion lesson10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"author": "alsotang <alsotang@gmail.com>",
"license": "MIT",
"dependencies": {
"benchmark": "^1.0.0"
"benchmark": "^2.1.0"
}
}

0 comments on commit 1d0b088

Please sign in to comment.