He-Pin commented on code in PR #1666:
URL: https://github.com/apache/pekko/pull/1666#discussion_r1903091375


##########
bench-jmh/src/main/scala/org/apache/pekko/util/FutureOpsBenchmark.scala:
##########
@@ -0,0 +1,33 @@
+package org.apache.pekko.util
+
+import org.openjdk.jmh.annotations.{ Benchmark, BenchmarkMode, Measurement, 
Mode, OutputTimeUnit, Scope, State, Warmup }
+
+import java.util.concurrent.TimeUnit
+import scala.concurrent.Future
+
+@State(Scope.Benchmark)
+@BenchmarkMode(Array(Mode.Throughput))
+@OutputTimeUnit(TimeUnit.MILLISECONDS)
+@Warmup(iterations = 1000)
+@Measurement(iterations = 10000)
+class FutureOpsBenchmark {
+  private val completedFuture: Future[Int] = Future.successful(1)
+  // jmh:run -i 11 -wi 11 -f1 -t1 org.apache.pekko.util.FutureOpsBenchmark
+  //    [info] Benchmark                               Mode  Cnt       Score   
   Error   Units
+  //    [info] FutureOpsBenchmark.awaitWithAwaitable  thrpt   11  706198.499 ± 
8185.983  ops/ms
+  //    [info] FutureOpsBenchmark.awaitWithFutureOps  thrpt   11  766901.781 ± 
9741.792  ops/ms

Review Comment:
   @pjfanning Attached.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to