我试图证明RxJava与顺序(我认为是)阻塞计算相比的性能。 我在看this post和this SO question。根据经验,使用System.currentTimeMillis()和Thread.sleep()进行基准测试在处理计算而不是I/O时不会产生一致的结果,因此我尝试设置简单的JMH基准测试。 我的基准计算两个整数,并增加了起来: public class MyBenchmark
Im建立一个项目使用web3。 web3j.ethGetBalance("0x2910543af39aba0cd09dbb2d50200b3e800a63d2", latestBlock)
.observable()
.subscribeOn(rx.schedulers.Schedulers.io())
//This needs to be on the