akarnokd / akarnokd-misc

Miscellaneous classes, implementations with gradle and jmh set up
Apache License 2.0
54 stars 21 forks source link

Benchmark 9/19 #2

Open akarnokd opened 8 years ago

akarnokd commented 8 years ago

See the most recent comparison in #7.

Comparative benchmark

Environment:

Green is good, red is not so good.

image

Just comparing 1.x and 2.x

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

image

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

image

Remarks:

smaldini commented 8 years ago

There's room for improvement in reactor I think given some latest design improvements but this is a massively complete report, congrats @akarnokd !

daschl commented 8 years ago

great info, that makes me even more wanting to move the couchbase SDK over to 2.x at some point, but still not sure how to figure out a smooth migration path :)

ondreju93 commented 6 years ago

Hi How to understand the first table (Subscribe to a simple source) ? What are these compared values for RxJava 1.x and RxJava 2.x ? Are they time values? What is the unit? In the latter tables i can see information about count of operations. What is the count of operations in the first table?

akarnokd commented 6 years ago

@ondreju93

How to understand the first table (Subscribe to a simple source) ?

These are operations per second, larger is better tables. There is a baseline value chosen in each table and the other columns are measured relative to it. Green background indicate improvements, red mean worse performance.

What are these compared values for RxJava 1.x and RxJava 2.x ?

In the first table the, it shows how many times various, simple reactive types can be subscribed to in a second.

What is the count of operations in the first table?

There isn't one. They are simple sources with 0 or 1 element, depending on the type. Later tables feature longer sequences as those show how the infrastructure overhead is amortized over many items.

ondreju93 commented 6 years ago

@akarnokd Thanks for the explanations Now everything is clear for me! Congrats for creating such a great benchmarks!