I created a small app to compare 2.3.3 and 2.3.4 performance, and 2.3.4 
seems to be 10 time slower.

Here's all the code: https://github.com/mikea/tmp-akkap

If I run 2.3.3 sample with empty journal/ I'm getting the following output 
on my MBP:

Sending messages...
Done sending messages
Received 100000 messages in 1627 ms


The same code but ported to 2.3.4 gives me:

Sending messages...
Done sending messages
Received 100000 messages in 24849 ms


What am I doing wrong?




On Wednesday, July 16, 2014 12:43:03 PM UTC-7, Mike Aizatsky wrote:
>
> In 2.3.3 I used AbstractProcessor. In 2.3.4 I've migrated 
> to AbstractPersistentActor.
>
>
>
> On Wednesday, July 16, 2014 12:06:03 PM UTC-7, Konrad Malawski wrote:
>>
>> Hi Mike,
>> Short: no, performance should be (and we have benchmarked it) to be on 
>> par with 2.3.3.
>>
>> Longer: Have you been using Processor or EventsourcedProcessor?
>> * EventsourcedProcessor *is* PersistentActor, so performance is exactly 
>> the same.
>> * Processor is PersistentActor+*persistAsync*.
>>
>> Fill me in on these details and we'll talk in depth :-)
>>
>> Here is the JMH benchmark, you can run it yourself: 
>> https://github.com/akka/akka/blob/release-2.3/akka-bench-jmh/src/main/scala/akka/persistence/PersistentActorBenchmark.scala
>>  
>> (see README in that project).
>> Since 2.3.4 we have the akka-bench-jmh project that will contain various 
>> benchmarks we use to bench our implementations - feel free to peek inside 
>> these if you're curious.
>>
>>
>>
>> On Wed, Jul 16, 2014 at 8:41 PM, Mike Aizatsky <[email protected]> 
>> wrote:
>>
>>> Hi!
>>>
>>> I don't have any hard evidence (I would create a bug otherwise), but I 
>>> feel that new persistence implementation is slower than the previous one.
>>>
>>> My persistent actor receives messages in big bursts. With 2.3.3 API the 
>>> processing was really fast. After I have migrated everything to 2.3.4 and 
>>> use persist() method, I see that my persistent actor has huge queue and it 
>>> takes very long time to process it. I'm doing snapshots every 1s and it is 
>>> not uncommon now to see my actor without a snapshot for minutes because it 
>>> is busy processing mailbox and writing tons of messages to journal.
>>>
>>> Was anything significant changed in persistence implementation besides 
>>> the API? Did anyone see anything similar? I'm not sure I want to go into 
>>> this rabbit hole without knowing that somebody else have this problem.
>>>
>>>
>>>  -- 
>>> >>>>>>>>>> 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,
>> Konrad 'ktoso' Malawski
>> hAkker @ Typesafe
>>
>> <http://typesafe.com>
>>  
>

-- 
>>>>>>>>>>      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.

Reply via email to