npm run test
$ npm run test
> [email protected] test /mnt/work/es-performance-tests
> node --harmony-async-await index.js
Testing difference between sync and async function calls: (100 000 iterations)
Async: 803ms
Sync: 52ms
Async is ~15 times slower
Testing difference between nested sync and async function calls: (100 000 iterations)
Async: 1288ms
Sync: 58ms
Async is ~22 times slower