You can see the default config here: EC global: https://github.com/scala/scala/blob/2.12.x/src/library/scala/concurrent/impl/ExecutionContextImpl.scala#L71 default dispatcher: https://github.com/akka/akka/blob/master/akka-actor/src/main/resources/reference.conf#L268
On Wed, May 21, 2014 at 9:30 PM, √iktor Ҡlang <[email protected]>wrote: > Default configuration is different. You need to use the same config to > measure differences. > > > On Wed, May 21, 2014 at 9:19 PM, Daniel Armak <[email protected]> wrote: > >> Hi Viktor, >> >> I'm using the default config for both (or rather, I'm not configuring >> either one at all). Is there something in particular I should look at? >> >> As I said, I haven't done any real profiling or formal benchmarking yet. >> All I did was run a simple loop that created a lot of mapped futures, let >> the JIT heat up for a few minutes, and noted the throughput. The difference >> was so large (3000 vs 7000 nanoseconds on average for each task) that >> thought it probable either I was doing something very wrong, or there's a >> significant difference between the ECs. >> >> I'll definitely do some "real" benchmarking, I just haven't had time yet. >> And I thought to ask meanwhile if there were any known pitfalls, or large >> differences between the two ECs' default configurations? >> >> Thanks, >> >> Daniel Armak >> >> >> On Wed, May 21, 2014 at 9:59 PM, √iktor Ҡlang <[email protected]>wrote: >> >>> 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. >>> >> >> -- >> >>>>>>>>>> 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. >> > > > > -- > Cheers, > √ > -- Cheers, √ -- >>>>>>>>>> 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.
