# node-generator-vs-async **Repository Path**: mirrors_mingchen/node-generator-vs-async ## Basic Information - **Project Name**: node-generator-vs-async - **Description**: generator v.s. async/await performance - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # generator v.s. async/await performance ## Introduction A [simple test](https://medium.com/@markherhold/generators-vs-async-await-performance-806d8375a01a) to compare generator v.s. async/await performance. ## Result async/await is much faster than generator. ## Run $ node -v v7.7.1 $ npm install $ node index.js co x 98,861 ops/sec ±3.58% (73 runs sampled) async/await x 204,399 ops/sec ±2.30% (76 runs sampled) Fastest is async/await ## References * [Generators VS Async/Await Performance](https://medium.com/@markherhold/generators-vs-async-await-performance-806d8375a01a)