Skip to content

Instantly share code, notes, and snippets.

@myndzi
Last active August 29, 2015 14:16
Show Gist options
  • Save myndzi/7a4d74d17c1e9f05f395 to your computer and use it in GitHub Desktop.
Save myndzi/7a4d74d17c1e9f05f395 to your computer and use it in GitHub Desktop.
[kris.re@krisre data.task]$ make benchmark
cd test/benchmarks && npm install
node test/benchmarks/runner
Benchmarks for: Serial (light tasks)...
o Callbacks (baseline) x 830 ops/sec ±0.80% (126 runs sampled)
o Callbacks (Async) x 809 ops/sec ±0.70% (124 runs sampled)
o Tasks (Data.Future) x 821 ops/sec ±0.79% (124 runs sampled)
o Promises/A+ (Bluebird) x 767 ops/sec ±0.97% (120 runs sampled)
o Promises/A+ (Bluebird - modified) x 792 ops/sec ±0.82% (123 runs sampled)
Fastest: Callbacks (baseline)
Slowest: Promises/A+ (Bluebird)
---
Benchmarks for: Serial (mixed sync/light tasks)...
o Callbacks (baseline) x 836 ops/sec ±0.72% (126 runs sampled)
o Callbacks (Async) x 786 ops/sec ±0.70% (121 runs sampled)
o Tasks (Data.Future) x 799 ops/sec ±1.01% (123 runs sampled)
o Promises/A+ (Bluebird) x 735 ops/sec ±0.89% (118 runs sampled)
o Promises/A+ (Bluebird - modified) x 781 ops/sec ±0.76% (121 runs sampled)
Fastest: Callbacks (baseline)
Slowest: Promises/A+ (Bluebird)
---
Benchmarks for: Serial (all synchronous)...
o Callbacks (baseline) x 808 ops/sec ±1.34% (124 runs sampled)
o Callbacks (Async) x 672 ops/sec ±1.43% (112 runs sampled)
o Tasks (Data.Future) x 705 ops/sec ±1.84% (115 runs sampled)
o Promises/A+ (Bluebird) x 700 ops/sec ±1.06% (114 runs sampled)
o Promises/A+ (Bluebird - modified) x 816 ops/sec ±0.91% (124 runs sampled)
Fastest: Promises/A+ (Bluebird - modified), Callbacks (baseline)
Slowest: Callbacks (Async)
---
Benchmarks for: Parallel...
o Callbacks (baseline) x 88.22 ops/sec ±0.17% (58 runs sampled)
o Callbacks (async) x 88.10 ops/sec ±0.15% (58 runs sampled)
o Tasks (Data.Future) x 88.07 ops/sec ±0.14% (58 runs sampled)
o Promises/A+ (Bluebird) x 87.91 ops/sec ±0.16% (58 runs sampled)
o Promises/A+ (Bluebird - modified) x 87.82 ops/sec ±0.22% (58 runs sampled)
Fastest: Callbacks (baseline)
Slowest: Promises/A+ (Bluebird - modified), Promises/A+ (Bluebird)
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment