bustle / streaming-iterables

A Swiss army knife for async iterables. Designed to replace your streams.
https://www.npmjs.com/package/streaming-iterables
MIT License
43 stars 4 forks source link

chore: add some benchmarks #17

Closed reconbot closed 5 years ago

reconbot commented 5 years ago

From my laptop the ratios are what's important I suppose

async batch x 33.01 ops/sec ±1.33% (74 runs sampled)
async collect x 33.57 ops/sec ±1.22% (75 runs sampled)
async consume x 33.84 ops/sec ±1.08% (76 runs sampled)
async buffer x 29.49 ops/sec ±0.86% (68 runs sampled)
async flatTransform x 6.94 ops/sec ±3.41% (37 runs sampled)
async map x 14.94 ops/sec ±1.51% (69 runs sampled)
async map sync func x 25.47 ops/sec ±1.44% (61 runs sampled)
async parallelFlatMap x 6.25 ops/sec ±3.00% (34 runs sampled)
async parallelMap x 15.71 ops/sec ±2.27% (71 runs sampled)
async parallelMap sync func x 16.48 ops/sec ±1.33% (74 runs sampled)
async tap x 14.94 ops/sec ±1.85% (69 runs sampled)
async transform x 13.03 ops/sec ±2.42% (62 runs sampled)
async transform sync func x 20.37 ops/sec ±3.20% (51 runs sampled)
sync batch x 3,879 ops/sec ±1.14% (83 runs sampled)
sync collect x 5,452 ops/sec ±1.22% (89 runs sampled)
sync consume x 6,608 ops/sec ±1.48% (80 runs sampled)
sync buffer x 1,560 ops/sec ±1.70% (83 runs sampled)