Skip to content

Commit

Permalink
chore(benchmark): update benchmark [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
suguru03 committed Feb 21, 2019
1 parent 5bdfd12 commit 62b2a7b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ website/build/
website/yarn.lock
website/node_modules
website/i18n/*

.idea
32 changes: 16 additions & 16 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
(using [benchmark.js](https://github.com/bestiejs/benchmark.js))

### Environment
- Node v8.6.0
- Node v11.10.0

### Libraries
- Aigle v1.8.1
- Bluebird v3.5.0
- native v8.6.0
- Aigle v1.13.0
- Bluebird v3.5.3
- native v11.10.0

### Results
|benchmark|aigle|bluebird|native|
|---|---|---|---|
|all|**42.8μs**|45.6μs [0.937]|66.0μs [0.648]|
|join|**7.93μs**|11.5μs [0.689]||
|map|**41.8μs**|73.4μs [0.570]||
|mapSeries|**132μs**|252μs [0.521]||
|mapSeries:class|**132μs**|254μs [0.521]||
|promise:then|**146μs**|254μs [0.574]|216μs [0.674]|
|promisify|**1.52μs**|21.8μs [0.0698]|15.7μs [0.0972]|
|promisify:promisified|**1.40μs**|1.53μs [0.917]|2.59μs [0.541]|
|promisifyAll|**12.0μs**|77.8μs [0.155]||
|props|**53.3μs**|57.4μs [0.928]||
|race|**43.9μs**|44.0μs [0.998]||
|using|**2.36μs**|7.63μs [0.309]||
|all|**22.2μs**|28.9μs [0.766]|31.8μs [0.697]|
|join|**5.52μs**|10.7μs [0.518]||
|map|**21.4μs**|36.5μs [0.587]||
|mapSeries|**195μs**|442μs [0.442]||
|mapSeries:class|**194μs**|437μs [0.444]||
|promise:then|**201μs**|437μs [0.461]|218μs [0.921]|
|promisify|**2.35μs**|19.7μs [0.119]|8.57μs [0.274]|
|promisify:promisified|**2.23μs**|2.64μs [0.844]|2.54μs [0.877]|
|promisifyAll|**12.4μs**|62.8μs [0.197]||
|props|**32.0μs**|42.5μs [0.753]||
|race|**22.3μs**|32.5μs [0.684]||
|using|**2.69μs**|7.51μs [0.358]||
5 changes: 4 additions & 1 deletion benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ async function execute() {
};
const map = _.omit(obj, 'config');
for (const [name, tasks] of Object.entries(map)) {
result[name] = await executeTasks(config, tasks, name);
const res = await executeTasks(config, tasks, name);
if (res) {
result[name] = res;
}
}
}
makeDoc && makeDocs(result);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"devDependencies": {
"babili": "0.1.4",
"benchmark": "^2.1.1",
"bluebird": "^3.5.1",
"bluebird": "^3.5.3",
"browserify": "^16.0.0",
"buble": "^0.19.6",
"codecov": "^3.0.0",
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,12 @@ bluebird@^2.9.34:
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
integrity sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=

bluebird@^3.5.1, bluebird@~3.5.0:
bluebird@^3.5.3:
version "3.5.3"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.3.tgz#7d01c6f9616c9a51ab0f8c549a79dfe6ec33efa7"
integrity sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==

bluebird@~3.5.0:
version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
integrity sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==
Expand Down

0 comments on commit 62b2a7b

Please sign in to comment.