scala - Benchmarking Futures issue with JMH -
def benchmark: data = { val afuture = ae.dosomething(argument) val bfuture = be.dosomething(argument) val cfuture = ce.dosomething(argument) val eventf = { aresult <- afuture bresult <- bfuture cresult <- cfuture } yield data(aresult, bresult, cresult) await.result(eventf, 30.seconds) } this example of benchmark i'm trying run jmh. when try run this, benchmark times out regardless of wait time put in. i've tried altering rid of 'await.result' , use 'oncomplete' in situation gets stuck building jar , console outputs "nonlocalreturncontrol". there i'm missing? seems simple enough question there should somewhere, results pretty sparse.
Comments
Post a Comment