Skip to content

Native promises, Co generators, Native Async/Await and Bluebird promises comparative benchmark.

Notifications You must be signed in to change notification settings

joseluisq/node-benchmark-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Benchmark Async

Native promises, Co generators, Native Async/Await and Bluebird promises comparative benchmark.

Note: These are not "Non plus ultra" benchmarks but can give us an idea about the Node/V8 performance improvements on time. So, feel free to contribute.

Usage

yarn start

Benchmarks

1. Node v8

  • Node: v8.11.3
  • V8: v6.2.414.54
suite ops/sec rme
Co generators 194,937 ±0.94% (82 runs sampled)
Native async/await 516,104 ±0.60% (84 runs sampled)
Native promises 1,364,965 ±0.41% (85 runs sampled)
Bluebird promises 1,852,194 ±2.52% (81 runs sampled)

⚡️ Fastest is Bluebird Promises

Benchmark done in 24.47s.

2. Node v10

  • Node: v10.6.0
  • V8: v6.7.288.46-node.13
suite ops/sec rme
Co generators 277,943 ops/sec ±0.73% (82 runs sampled)
Native async/await 656,739 ops/sec ±0.58% (84 runs sampled)
Native promises 3,661,503 ops/sec ±0.29% (85 runs sampled)
Bluebird promises 2,561,876 ops/sec ±0.41% (81 runs sampled)

⚡️ Fastest is Native Promises

Benchmark done in 24.23s.

References

License

CC0

To the extent possible under law, José Luis Quintana has waived all copyright and related or neighboring rights to this work.

About

Native promises, Co generators, Native Async/Await and Bluebird promises comparative benchmark.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published