HammerDB is the most trusted Free and open source database benchmarking application to the global database industry, supporting Microsoft SQL Server, IBM Db2, ...
ããã¯Web API Advent Calendar 2014ã8æ¥ç®ã®ã¨ã³ããªã§ãããã¼ã«ã®å°ãã¿ç¬¬äºå¼¾ã§ãã APIã®ãã¹ãã«ã¯ãç®çã«å¿ãã¦curlã³ãã³ããPostmanãããã¦JMeterãab(Apache Bench)ãªã©ãã¾ãã¾ãªãã¼ã«ã使ãã¾ããä»åã¯abã«ããä¼¼ãï¼ããã¦ããé²åããï¼ã·ã³ãã«ãªã³ãã³ãã©ã³ãã¼ã¹ã®è² è·ã»æ§è½ãã¹ããã¼ã«ã§ããapib(API Bench)ãç´¹ä»ãã¾ãã ç¹å¾´ keep-aliveãchunked encodingãå«ããHTTP 1.1ã®æ£ç¢ºãªãµãã¼ã è¤æ°ã®I/Oã¹ã¬ããã使ããã«ãã³ã¢ãæ´»ç¨ å¤§ããªãªãã¸ã§ã¯ãã®POSTãPUTããµãã¼ã OAuth 1.0ã®ç½²åããµãã¼ã å®è¡çµæã¯ãã¡ã¤ã«åºåå¯è½ï¼èªååã®ããã®é£æºã容æï¼ ãªã©ã ã¤ã³ã¹ãã¼ã« MacãªãHomebrewã§ä¸çºã§ãï¼ brew install apibãã以å¤
Webãµã¼ãã®ãã³ããã¼ã¯ãã¨ãã®ã趣å³ã«ãªãã¤ã¤ããmatsumotoryã§ãã Webãµã¼ãã®ãã³ããã¼ã¯ã«ã¤ãã¦ã¯ãabããã¯ãã¾ãwrkçã使ã£ã¦ããã®ã§ãããæè¿ã§ã¯ã»ã¼h2loadã使ã£ã¦ãã¾ãã h2loadã¯nghttp2ã¨ããHTTP/2ã©ã¤ãã©ãªã®ã¢ããªã±ã¼ã·ã§ã³ã«å«ã¾ãã¦ãããã¼ã«ã§ããã HTTP/2ï¼SPDYãï¼ã¨HTTP/1.xã«ä¸¡å¯¾å¿ãã¦ãã ãã³ããã¼ã¯å´ã®åæã¹ã¬ããæ°ãå¢ããã TLSåã³SNIããµãã¼ããã¦ãã æå°ãæ大ãå¹³åãæ¨æºåå·®ããããã¡ããã¨ã§ã ã®ã§ãè²ã ãããã³ã«ãå¤ãã¤ã¤åããã³ããã¼ã¯ãã¼ã«ã§ãå¤ã®ç®å®ãåºãã«ã¯ã¨ã¦ãéå®ãã¦ãã¾ãã Nghttp2: HTTP/2 C Library - nghttp2.org å®è¡çµæã®ãµã³ãã«ã¯ä¾ãã°ä»¥ä¸ã $ h2load -c 100 -n 10000 https://localhost:
RubyKaigi 2014ã楽ããã£ãããå¦ã³ããã£ã¦è¡ã£ã¦è¯ãã£ããªãã¨æãã¾ããï¼å°ä¸¦æãããï¼ã æ·¡ã ã¨ã¡ã¢ãã¦ããã benchmark-ips ãã³ããã¼ã¯ã®é«æ©è½çãã¦ã©ã¼ã ã¢ããã¨ãã¦ä½åãèµ°ããã¦ããå®è¡ãããã5ç§ã¨ã100msã§ä½åå®è¡ã§ãããã¨ããè¨æ¸¬ã§ããã£ã½ã synvert ãã©ã¼ããã¿ã¼ããããRubyã®ãã¼ã¸ã§ã³ãããã£ã¦ã·ã³ã¿ãã¯ã¹ãå¤æ´ããã»ããããã£ããããå ´åã«å¤æ´ãã¦ããã Railsãã¼ã¸ã§ã³ãããã£ã½ããã©ããã®ã»ãã·ã§ã³èãã¦ãªãã£ãã®ã§è©³ããã¯ããããªãï¼ãã¨ã§èª¿ã¹ãï¼ peek-performance_bar View ã SQLçã§ããã£ãæéã表示ãããããã¡ã¤ã© rack-mini-profilerã¨ä¼¼ã¦ãæ°ããããã©ããã£ã¡ã試ãã¦ã¿ãã stackprof Ruby 2.1ã§è¿½å ããã rb_profile_frames ã使
ã¯ããããã¯åããã¤ãè¯ãè¦ãApacheã¨Nginxã®æ§è½å·®ã«è¦ãã¾ãã大ä½ãApacheã¯Nginxã®75%ç¨åº¦ã®æ§è½ã«è½ã¡çãã¾ããæ°åãã¤ãã®éçã³ã³ãã³ãã«å¯¾ãããªã¯ã¨ã¹ãå¦çã¯Nginxã®å¾æåéã ã¨æã£ã¦ããã®ã§ã大ä½ãããªãã®ã§ãã ããã§ãçé¢ç®ã«event_mpmã®ãã¥ã¼ãã³ã°ãè¡ã£ã¦ã¿ã¾ãããã§ã幾度ã¨ãªããã³ãã試ããçµæå°ãåºãããéçã³ã³ãã³ãã«å¯¾ããåææ¥ç¶æ°100ç¨åº¦ã«å¯¾ãã¦æé«ã®ããã©ã¼ãã³ã¹ã示ãevent_mpmã®è¨å®ã¯ä»¥ä¸ã®ããã«ãªãã¾ããã [program lang=âapacheâ escaped=âtrueâ] StartServers 4 MinSpareThreads 4 MaxSpareThreads 4 ThreadsPerChild 2 MaxRequestWorkers 2 MaxConnectionsPerChild 0 [/p
ãã°ãããã³ããã¼ã¯ã³ã¼ããæ¸ãã¦ãªãã¦ãã£ããå¿ãã¦ããã®ã§ãã¡ã¢æ¸ãã§ããä»åã¯ä¾é¡ã¨ãã¦ãyahooã®ãã®ãã¼ã¸ãBeautifulSoupã¨lxmlã§ã®ã¹ã¯ã¬ã¤ãã³ã°æ¯è¼ããã¦ã¿ãäºã«ãã¾ãããæ¯è¼å¯¾è±¡ã®é¢æ°ã¯ä»¥ä¸ã®éãã§ããã©ã¡ãã®ã³ã¼ããå ¥åã»åºåã¨ãã«åããªã®ã§ãã©ã¡ããå®è¡æéãã¡ã¢ãªä½¿ç¨éãå°ãªãã®ããç¥ããããªãã¾ããã # BeautifulSoup def scrape_with_bs(html): from BeautifulSoup import BeautifulSoup soup = BeautifulSoup(html) rows = soup.find('table', attrs={'class':'channel9'}).findAll('tr') channels = rows[0].findAll('td', attrs={'class':'st
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}