I perform some test with Akka 2.4.8
> wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 19.19ms 86.05ms 1.20s 96.02% Req/Sec 1.53k 716.29 4.49k 60.40% 435786 requests in 10.08s, 61.92MB read Requests/sec: 43221.21 Transfer/sec: 6.14MB > wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 20.33ms 95.59ms 1.13s 96.66% Req/Sec 1.95k 723.17 8.15k 75.32% 557516 requests in 10.06s, 79.22MB read Requests/sec: 55426.85 Transfer/sec: 7.88MB > wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 8.83ms 37.21ms 614.55ms 96.12% Req/Sec 1.76k 647.83 5.66k 71.19% 519199 requests in 10.07s, 73.78MB read Requests/sec: 51580.71 Transfer/sec: 7.33MB And then with: Akka 2.4.9-RC1 > wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 10.29ms 42.81ms 685.72ms 95.91% Req/Sec 1.65k 721.12 5.46k 61.92% 478914 requests in 10.07s, 69.88MB read Requests/sec: 47574.64 Transfer/sec: 6.94MB > wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 8.63ms 35.87ms 556.24ms 96.45% Req/Sec 1.81k 663.09 6.11k 70.47% 534884 requests in 10.07s, 78.05MB read Requests/sec: 53123.50 Transfer/sec: 7.75MB > wrk -t30 -c64 http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond Running 10s test @ http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond 30 threads and 64 connections Thread Stats Avg Stdev Max +/- Stdev Latency 4.56ms 11.40ms 205.91ms 90.97% Req/Sec 1.91k 556.78 5.98k 62.47% 569945 requests in 10.06s, 83.16MB read Requests/sec: 56663.71 Transfer/sec: 8.27MB четверг, 18 февраля 2016 г., 23:11:27 UTC+3 пользователь rkuhn написал: > > Wow, this is quite interesting. I take it that your machine is a bit > slower than the original poster’s machine, because the Spray results are > ca. 30% lower. > > Thanks for sharing! > > Regards, > > Roland > > 18 feb 2016 kl. 20:52 skrev Владимир Морозов <[email protected] > <javascript:>>: > > I take server’s code from first message and run both benchmarks on > Akka-http 2.4.2 > > My results, akka-http serve more connections than spray 1.3.3. Each server > started in Run mode from 'intellij idea 15 CE' with root logging level > INFO. I run WRK command thee times without server shutdown (because we use > JWM and have JIT) > > *Akka http 2.4.2* > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 20.63ms 99.19ms 1.18s 96.17% > Req/Sec 1.49k 770.37 2.95k 61.72% > 420300 requests in 10.03s, 59.72MB read > Requests/sec: 41886.83 > Transfer/sec: 5.95MB > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 11.67ms 62.36ms 910.17ms 97.23% > Req/Sec 2.13k 618.76 6.12k 77.79% > 619516 requests in 10.07s, 88.03MB read > Requests/sec: 61519.04 > Transfer/sec: 8.74MB > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 7.20ms 30.98ms 529.91ms 95.50% > Req/Sec 2.07k 583.44 7.44k 71.47% > 613762 requests in 10.06s, 87.21MB read > Requests/sec: 61006.76 > Transfer/sec: 8.67MB > > *Spray 1.3.3* > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 8.00ms 20.62ms 168.02ms 92.19% > Req/Sec 1.58k 745.87 3.05k 67.38% > 465741 requests in 10.08s, 66.18MB read > Requests/sec: 46201.19 > Transfer/sec: 6.57MB > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 5.41ms 12.92ms 147.92ms 90.83% > Req/Sec 1.74k 600.65 7.59k 67.28% > 520192 requests in 10.08s, 73.92MB read > Requests/sec: 51620.57 > Transfer/sec: 7.34MB > > > wrk -t30 -c64 > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > Running 10s test @ > http://127.0.0.1:9000/dictionaries/hello/suggestions?ngr=hond > 30 threads and 64 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency 5.82ms 13.55ms 150.83ms 91.05% > Req/Sec 1.65k 617.64 4.33k 69.76% > 497039 requests in 10.10s, 70.63MB read > Requests/sec: 49220.11 > Transfer/sec: 6.99MB > > четверг, 8 октября 2015 г., 23:21:34 UTC+3 пользователь Jakub Kahovec > написал: >> >> That’s a good news, looking forward to see more ;-) >> >> Thank you Roland >> >> Jakub >> >> From: <[email protected]> on behalf of Roland Kuhn >> Reply-To: <[email protected]> >> Date: Thursday 8 October 2015 at 22:11 >> To: akka-user >> Subject: Re: [akka-user] Akka http vs Spray performance >> >> Hi Jakub, >> >> we are currently working on the performance improvements, but there is >> nothing to see yet since the first (and biggest) step requires the internal >> framework that is necessary for internal optimizations (operation fusion). >> We are about to finish the preparations and will hopefully have good news >> in a small number of weeks. >> >> Regards, >> >> Roland >> >> 8 okt 2015 kl. 21:47 skrev Jakub Kahovec <[email protected]>: >> >> Hi, >> >> first thank you so much for making such a great piece of software. As the >> 2.4.0 is out, have you made any progress on improving performance of akka >> http or at least is there any roadmap for this ? >> >> Thanks >> >> Jakub >> >> >> On Wednesday, May 27, 2015 at 1:44:49 PM UTC+2, zergood wrote: >>> >>> I've done little benchmarks to compare spray and akka-http performance. >>> I use default jvm and akka settings. So you can see that there is >>> an significant performance difference between it. >>> >>> code: >>> spray https://gist.github.com/zergood/18bae0adc2e774c31233. >>> akka-http https://gist.github.com/zergood/53977efd500985a34ea1. >>> >>> versions: >>> spray 1.3.3 >>> akka-http 1.0-RC3 >>> scala 2.11.6 >>> java 1.8 >>> >>> wrk output for spray: >>> Running 1m test @ >>> http://127.0.0.1:8080/dictionaries/hello/suggestions?ngr=hond >>> 30 threads and 64 connections >>> Thread Stats Avg Stdev Max +/- Stdev >>> Latency 2.14ms 9.82ms 78.22ms 98.22% >>> Req/Sec 2.55k 609.68 4.22k 78.12% >>> 4322357 requests in 1.00m, 614.20MB read >>> Requests/sec: 72044.97 >>> Transfer/sec: 10.24MB >>> >>> wrk output for akka-http: >>> Running 1m test @ >>> http://127.0.0.1:3535/dictionaries/hello/suggestions?ngr=hond >>> 30 threads and 64 connections >>> Thread Stats Avg Stdev Max +/- Stdev >>> Latency 5.39ms 6.82ms 108.07ms 92.80% >>> Req/Sec 454.43 126.73 679.00 77.77% >>> 811836 requests in 1.00m, 115.36MB read >>> Requests/sec: 13531.62 >>> Transfer/sec: 1.92MB >>> >>> Is there any akka-http config options to increase performance to the >>> same level as spray? >>> >> >> -- >> >>>>>>>>>> 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. >> >> >> >> >> *Dr. Roland Kuhn* >> *Akka Tech Lead* >> Typesafe <http://typesafe.com/> – Reactive apps on the JVM. >> twitter: @rolandkuhn >> <http://twitter.com/#!/rolandkuhn> >> >> >> -- >> >>>>>>>>>> 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 a topic in the >> Google Groups "Akka User List" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/akka-user/XB7H2n2r-9A/unsubscribe. >> To unsubscribe from this group and all its topics, 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > > > > *Dr. Roland Kuhn* > *Akka Tech Lead* > Typesafe <http://typesafe.com/> – Reactive apps on the JVM. > twitter: @rolandkuhn > <http://twitter.com/#!/rolandkuhn> > > -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
