{"id":16037982,"url":"https://github.com/joseluisq/node-benchmark-async","last_synced_at":"2025-10-07T07:29:27.890Z","repository":{"id":146283620,"uuid":"139965590","full_name":"joseluisq/node-benchmark-async","owner":"joseluisq","description":"Native promises, Co generators, Native Async/Await and Bluebird promises comparative benchmark.","archived":false,"fork":false,"pushed_at":"2018-07-06T09:49:05.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T00:40:49.745Z","etag":null,"topics":["async-await","benchmark","bluebird-promise","generators","nodejs","promises","v8"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-07-06T09:44:11.000Z","updated_at":"2020-10-27T08:04:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"a845d4b3-a460-49e0-a22e-3b89d5e9e185","html_url":"https://github.com/joseluisq/node-benchmark-async","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"93df88489f89f641e0704e8b1b56ba548f478894"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joseluisq/node-benchmark-async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fnode-benchmark-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fnode-benchmark-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fnode-benchmark-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fnode-benchmark-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/node-benchmark-async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fnode-benchmark-async/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278739935,"owners_count":26037474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-await","benchmark","bluebird-promise","generators","nodejs","promises","v8"],"created_at":"2024-10-08T22:22:47.317Z","updated_at":"2025-10-07T07:29:27.871Z","avatar_url":"https://github.com/joseluisq.png","language":"JavaScript","readme":"# NodeJS Benchmark Async\n\n\u003e [Native promises](https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_util_promisify_original), [Co generators](https://github.com/tj/co), [Native Async/Await](https://nodejs.org/en/blog/release/v8.0.0/) and [Bluebird promises](http://bluebirdjs.com/docs/getting-started.html) comparative [benchmark](https://benchmarkjs.com/). \n\n__Note:__ These are __not__ _\"[Non plus ultra](https://en.wikipedia.org/wiki/Plus_ultra)\"_ benchmarks but can give us an idea about the Node/V8 performance improvements on time. So, feel free to contribute.\n\n## Usage\n\n```sh\nyarn start\n```\n\n## Benchmarks\n\n### 1. Node v8\n\n- __Node:__ v8.11.3\n- __V8:__ v6.2.414.54\n\n| suite | ops/sec | rme\n--- | --- | ---\nCo generators | 194,937 | ±0.94% (82 runs sampled)\nNative async/await | 516,104 | ±0.60% (84 runs sampled)\nNative promises | 1,364,965 | ±0.41% (85 runs sampled)\nBluebird promises | 1,852,194 | ±2.52%  (81 runs sampled)\n-------------\n\n⚡️ Fastest is __*Bluebird Promises*__\n\n_Benchmark done in 24.47s._\n\n### 2. Node v10\n\n- __Node:__ v10.6.0\n- __V8:__ v6.7.288.46-node.13\n\n| suite | ops/sec | rme\n--- | --- | ---\nCo generators | 277,943 ops/sec | ±0.73% (82 runs sampled)\nNative async/await | 656,739 ops/sec | ±0.58% (84 runs sampled)\nNative promises | 3,661,503 ops/sec | ±0.29% (85 runs sampled)\nBluebird promises | 2,561,876 ops/sec | ±0.41% (81 runs sampled)\n-------------\n\n⚡️ Fastest is __*Native Promises*__\n\n_Benchmark done in 24.23s._\n\n## References\n- [Asynchronous performance improvements in V8 v6.6](https://v8project.blogspot.com/2018/03/v8-release-66.html)\n- [You're Missing the Point of Promises](https://gist.github.com/domenic/3889970)\n- [BenchmarkJS](https://benchmarkjs.com/)\n\n## License\n\n[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/)\n\nTo the extent possible under law, [José Luis Quintana](http://git.io/joseluisq) has waived all copyright and related or neighboring rights to this work.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fnode-benchmark-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fnode-benchmark-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fnode-benchmark-async/lists"}