Re: [Cppcms-users] CppCMS 1.1 Progress report (scoop 1st beta is coming...)
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-01-15 16:52:01
|
I have several things to comment 1. Boost.Asio or Lib-event are networking libraries and not full stack web frameworks - and it can make significant difference. What your code does per request? 2. How do you have written CppCMS application, synchronous, asynchronous etc. For example for sync-application each requests gets to the thread pool which has major overhead but has an advantage for real world CPU intense applications, if it is asyncrhonous application do you use non-blocking api of CppCMS 1.1 or not? 3. How does the client work, for example does it accepts gzip compression. CppCMS compresses the output for synchronous applications by default. 4. How much "real-application" is there? Is there anything useful that application does? So more information needed. Also what version of CppCMS do you use. CppCMS 1.1 has some major performance improvements. It is interesting and I'd be glad to search and fix bottlenecks but I really need some more details. Best, Artyom On Fri, Jan 15, 2016 at 8:19 AM, 陈抒 <csf...@gm...> wrote: > the table shows not correctly in previous email, I upload the screenshot > here. > > cpu,mem and request/sec have three number: min, max and average. > > [image: Inline image 2] > > our hardware information: > > > [image: Inline image 3] > > > > > > Dean Chen > Best regards > http://blog.csdn.net/csfreebird > > On Fri, Jan 15, 2016 at 2:13 PM, 陈抒 <csf...@gm...> wrote: > >> Compare with other languages, c++ cppcms is faster. But my team did >> benchmark a few months ago, we found the qps of mudoo is best, libevent is >> much faster than boost asio and cppcms. We use two client servers to send >> requests to one target server which runs four rest server based on mudoo, >> libevent, boost:asio and cppcms one by one. >> >> Below is our benchmark resutl. >> >> Table 5: more details httpserver all versions >> benchmarkServerCompilerOptimization >> optionCpuMemDiskNetcard(in/out)Requests/seccppcms_basedclang++ 3.6.2-O3228% >> / 239% / 228%9356 / 9416 / 9416--14252 / 16124 / 15820asio_basedclang++ >> 3.6.2-O3300% / 305% / 303%4368 / 4564 /4416--33069 / 34247 / >> 33360libevent_basedclang++ 3.6.2-O3763% / 764% / 764%5560 / 10M / >> 5520--113373 / 114072 / 113713muduo_basedclang++ 3.6.2-O3650% / 694% / >> 658%6272 / 6324 / 6312--303202 / 307204 / 305839 >> We are not professional benchmark team, Artyom, you can do this yourself >> to make sure our conclusion is correct. We can provide our rest server code >> implemented by above four c++ framworks if you needed. >> >> Hope cppcms becomes faster and faster in the future. We really love it >> when developing web site. LibEvent's performance is good, but we only use >> it to build rest server instead of web site because the code style is too >> low level and ugly. >> >> >> >> Dean Chen >> Best regards >> http://blog.csdn.net/csfreebird >> >> On Thu, Dec 31, 2015 at 11:48 PM, CN <cn...@fa...> wrote: >> >>> On Thu, Dec 24, 2015, at 06:20 PM, Artyom Beilis wrote: >>> >>> I want you guys to looking on it - try to build the version from trunk, >>> try new API *and report your impressions*. >>> >>> >>> Hi! Artyom, >>> >>> It's very nice to know CppCMS is under active development :-) >>> >>> I have just switched to application_specific_pool and have not >>> encountered any issue with this new API *during last 10 minutes* :-) >>> >>> Meanwhile, I want to take this chance to show off my modifications to my >>> local version of rpc_json.cpp as follows: >>> >>> * Comment out line 162: >>> BOOSTER_DEBUG("cppcms") << "JSON-RPC Method call:" << method(); >>> >>> * Change line 181 from >>> return_error("Invalid parameters"); >>> to >>> return_error("Invalid parameters passed to JSON RPC method >>> \""+method()+"\""); >>> >>> * Change line 191 from >>> return_error("Internal Service Error"); >>> to >>> return_error("Invalid JSON RPC method: "+method()); >>> >>> CppCMS rocks! Simply can not find a single reason not using this superb >>> product and learning much C++ skills from it. >>> >>> Happy new year! >>> CN >>> >>> -- http://www.fastmail.com - Email service worth paying for. Try it for free >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >> > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |