Hi Daniel, Make sure you are using the same/equivalent config for the two different ECs. Then use a test harness like JMH to make sure you are benchmarking correctly for the JVM.
What does it show after that? On May 21, 2014 11:23 AM, "Daniel Armak" <[email protected]> wrote: > I have many libraries written using Futures. When I use these libraries > from actors, the implicit ExecutionContext used is usually the actor > system's dispatcher. > > I just ran a throughput test that relies on a creating a large amount of > futures (no actors), and the throughput using ExecutionContext.global is > more than twice as high as that using an ActorSystem's default dispatcher > with no actors. Before I start profiling, is there a known cause for this, > something I should tune? > > I assumed I should not use Execution.global together with an ActorSystem, > since the two thread pools would just compete for CPU, but maybe I was > wrong? Alternatively, would it make sense to use ExecutionContext.global as > the ActorSystem dispatcher's underlying executor? > > I'm using akka 2.2.3 with scala 2.10.4. > > Thanks, > > Daniel Armak > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
