Skip to content

Conversation

@akarnokd
Copy link
Member

Benchmark Single's behavior with flatMap, subscribeOn and observeOn.

Results: (i7 4790, Windows 7 x64, Java 8u72)

Benchmark Score Error Units direct 9054864,731 189403,130 ops/s flatmap 2761060,187 40953,148 ops/s flatmapConst 2763238,776 34372,376 ops/s observeOn 300489,044 27461,361 ops/s observeOnExec 333838,535 9098,275 ops/s observeOnFJ 402261,384 9467,060 ops/s observeOnSchExec 342714,377 8624,188 ops/s subscribeOn 311487,902 8986,858 ops/s subscribeOnExec 257315,361 29967,833 ops/s subscribeOnFJ 383189,863 12596,397 ops/s subscribeOnSchExec 290880,185 45773,862 ops/s 

Here is a side-by-side comparison of throughput on various schedulers:

image

akarnokd added a commit that referenced this pull request Jan 25, 2016
1.x: Single performance measurements
@akarnokd akarnokd merged commit fed8d7b into ReactiveX:1.x Jan 25, 2016
@akarnokd akarnokd deleted the ScalarPerf1x branch January 25, 2016 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant