some AB testing ...
Pierre Sahores
sc at sahores-conseil.com
Sat Feb 13 15:15:31 EST 2016
Hi Livecoders,
Question 1 : is Livecode application’s server really faster than Livecode CGI server running on Nginx, OpenLiteSpeed or Apache2 and how to get this proven (in counting successfully TCP connexions only) ? Just se below :
#http://localhost:80/index.lc; # eeePCU : Nginx + FCGIWrap + LC CGI Server 7.1.1 --> 60 conn/sec
#http://localhost:81/index.lc; # eeePCU : OpenLiteSpeed CGI + LC CGI Server 7.1.1 --> 60 conn/sec
#http://localhost:82/index.lc; # eeePCU : Apache 2.4.7 CGI + LC CGI Server 7.1.1 --> 60 conn/sec
In the three cases, it’s the same LC CGI server witch execute the following code on a little 350 euros eeePC (ubuntu 14.04, indeed 150% faster than both of my MacBooks i5 costing 1800 euros each !) :
put "<br /><p align='center'>Hello World from LiveCode CGI Server" && the version & \
"</p><p align='center'>on" && the internet date & "</p>"
Question 2 : is Livecode applications server really faster than PHP running on OpenResty in FMP/FastCGI mode and how to get this proven (in counting successfully TCP connexions only) ? Just se below :
#http://localhost/index.php; # eeePCU : Nginx + FMP/FastCGI + PHP 5.5.9
# + PHP sockets proxy --> localhost:9578
# --> LC 6.1.3 APP Server -ui (eeePCU) --> 2200 conn/sec
#http://localhost/lc; # eeePCU : Openresty 1.9.7.2 (LuaJIT 5.1.a)
# + ngx.lua sockets proxy --> localhost:9578
# --> LC 6.1.3 APP Server -ui (eeePCU) --> 3600 conn/sec
In both cases, it’s the same LC application’s server witch execute the following code on a little 350 euros eeePC (ubuntu 14.04, still 150% faster than both my MacBooks i5 costing 1800 euros each !) :
put "<br /><p align='center'>Hello World from OpenLiteSpeed's LiveCode CGI Server" && the version & \
"</p><p align='center'>on" && the internet date & "</p>"
Note: all tests done at twice in using both ApacheBench 2.3 Revision 1528965 and Siege 3.0.5
Stay tuned. More to come soon!
Thanks for reading,
Pierre
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com
More information about the use-livecode
mailing list