Hello everyone. Some people in my team asked me for some performance numbers between coroutines and RxJava so I wrote this little app to measure performance between the two.
https://github.com/CRamsan/coroutine-rx-performance
I hope this is useful for people here. But the gist of what I found is that Coroutines can be a bit slower compared to Rx. But RxJava memory consumption is much higher. For me, this is another strong argument for coroutines.
p
Paul Woitaschek
04/03/2022, 5:16 AM
You should look into androidx benchmark if you are collecting benchmark metrics
➕ 1
m
mcpiroman
04/07/2022, 11:31 AM
Don't you mean kotlinx.benchmark? androidx obviously sounds android specific
p
Paul Woitaschek
04/07/2022, 11:46 AM
As you have written the benchmark in an Android App your benchmark is android specific