Skip to content

Instantly share code, notes, and snippets.

@MartinSeeler
Last active August 29, 2015 14:18
Show Gist options
  • Save MartinSeeler/99c80b644755060b9ee9 to your computer and use it in GitHub Desktop.
Save MartinSeeler/99c80b644755060b9ee9 to your computer and use it in GitHub Desktop.
Transducer Benchmark

Transducer Benchmark

These are the results for sbt 'benchmarks/run sB' of transducers-scala on my machine.

Run complete. Total time: 00:05:21

Benchmark (_size) Mode Cnt Score Error Units
TransducersBenchmark.bench_01_noop 100 thrpt 5 528173,865 ± 26017,332 ops/s
TransducersBenchmark.bench_01_noop 10000 thrpt 5 11938,330 ± 15899,449 ops/s
TransducersBenchmark.bench_01_noop 1000000 thrpt 5 169,405 ± 29,397 ops/s
TransducersBenchmark.bench_02_map 100 thrpt 5 431251,914 ± 57138,166 ops/s
TransducersBenchmark.bench_02_map 10000 thrpt 5 13293,252 ± 493,913 ops/s
TransducersBenchmark.bench_02_map 1000000 thrpt 5 127,351 ± 7,637 ops/s
TransducersBenchmark.bench_03_filter 100 thrpt 5 464378,061 ± 54281,528 ops/s
TransducersBenchmark.bench_03_filter 10000 thrpt 5 12069,556 ± 3252,154 ops/s
TransducersBenchmark.bench_03_filter 1000000 thrpt 5 141,890 ± 23,867 ops/s
TransducersBenchmark.bench_04_flatMap 100 thrpt 5 100045,689 ± 7356,316 ops/s
TransducersBenchmark.bench_04_flatMap 10000 thrpt 5 957,704 ± 57,377 ops/s
TransducersBenchmark.bench_04_flatMap 1000000 thrpt 5 9,119 ± 0,588 ops/s
TransducersBenchmark.bench_05_take 100 thrpt 5 500159,867 ± 29701,336 ops/s
TransducersBenchmark.bench_05_take 10000 thrpt 5 12278,447 ± 14854,393 ops/s
TransducersBenchmark.bench_05_take 1000000 thrpt 5 152,753 ± 23,711 ops/s
TransducersBenchmark.bench_06_takeAtom 100 thrpt 5 435639,220 ± 26451,525 ops/s
TransducersBenchmark.bench_06_takeAtom 10000 thrpt 5 7034,843 ± 2670,735 ops/s
TransducersBenchmark.bench_06_takeAtom 1000000 thrpt 5 78,598 ± 26,099 ops/s
TransducersBenchmark.bench_07_scan 100 thrpt 5 1067959,354 ± 92486,932 ops/s
TransducersBenchmark.bench_07_scan 10000 thrpt 5 11690,056 ± 1336,911 ops/s
TransducersBenchmark.bench_07_scan 1000000 thrpt 5 107,808 ± 6,222 ops/s
TransducersBenchmark.bench_08_scanAtom 100 thrpt 5 519078,153 ± 37419,595 ops/s
TransducersBenchmark.bench_08_scanAtom 10000 thrpt 5 6092,020 ± 790,815 ops/s
TransducersBenchmark.bench_08_scanAtom 1000000 thrpt 5 58,547 ± 6,559 ops/s
TransducersBenchmark.bench_09_orElse 100 thrpt 5 527921,176 ± 31511,405 ops/s
TransducersBenchmark.bench_09_orElse 10000 thrpt 5 13002,984 ± 2780,923 ops/s
TransducersBenchmark.bench_09_orElse 1000000 thrpt 5 164,259 ± 42,533 ops/s
TransducersBenchmark.bench_10_orElseAtom 100 thrpt 5 446438,925 ± 54121,748 ops/s
TransducersBenchmark.bench_10_orElseAtom 10000 thrpt 5 7074,080 ± 579,231 ops/s
TransducersBenchmark.bench_10_orElseAtom 1000000 thrpt 5 91,946 ± 28,345 ops/s

RxRedis Benchmarks

These are the results for sbt 'benchmarks/run' of rx-redis on my machine.

Redis on Localhost

Run complete. Total time: 00:02:28

Benchmark Mode Cnt Score Error Units
ThroughputBench._01_async thrpt 5 467895,788 303742,886 ops/s
ThroughputBench._02_asyncWithFlush thrpt 5 392286,844 31849,677 ops/s
ThroughputBench._03_sync thrpt 5 26031,462 373,061 ops/s

Redis in Docker

Run complete. Total time: 00:07:06

Benchmark Mode Cnt Score Error Units
ThroughputBench._01_async thrpt 5 505541,865 443054,075 ops/s
ThroughputBench._02_asyncWithFlush thrpt 5 243432,760 5994,408 ops/s
ThroughputBench._03_sync thrpt 5 296,406 51,611 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment