Hello,

I'm running some simple HTTP performance measurements.  I've created a 
trivial "ping" endpoint (blindly returns "pong") in Akka HTTP and hit it 
like this:

        val now = System.currentTimeMillis()
        (1 to 500).foreach(i => {
          HttpUtil.send(HttpRequest(uri = 
s"http://$IP:8082/ping";).withHeaders(ApiVerHeader("v1.0"))).status should 
be(StatusCodes.OK)
        })
        val later = System.currentTimeMillis()
        println("TIME: " + (later - now))


Ok, so I'm timing the send of 500 ping requests running on the same machine 
as the server.  My time for this was 3114ms.  Granted these are fully 
serialized in my test, and I will try a non-blocking client run, but I'm 
still surprised by the low throughput.  I thought the serialized test would 
best show the overhead of the HTTP processing, vs total possible throughput.

I also see on my screen a few hundred of these messages:

13:47:51.953 [foo-akka.actor.default-dispatcher-17] ERROR 
akka.actor.ActorSystemImpl - Outgoing request stream error
akka.stream.AbruptTerminationException: Processor actor 
[Actor[akka://foo/user/StreamSupervisor-0/flow-1046-0-unknown-operation#291433690]]
 
terminated abruptly

Not sure what these are, or if they're just harmless noise generated when I 
shut down my ActorSystem after the test.

Does this performance seem about right/expected?  I was hopeful to see a 
stronger showing since 2.4.2 was supposed to be getting closer to Spray's 
performance.

Greg

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to