pgbenchã¨ã¯PostgreSQLã®ãã³ããã¼ã¯ãã¹ãã«ç¨ããããããã°ã©ã ã§ãPostgreSQLã¨ã¨ãã«é å¸ããã¦ãã¾ãã ããã§ã¯ãã®pgbenchã¨ãã³ããã¼ã¯ãã¹ãã®æ¦è¦ã«ã¤ãã¦è§£èª¬ãã¦ããã¾ãã pgbench INDEX ãã³ããã¼ã¯ãã¹ã 1.1. ãã³ããã¼ã¯ãã¹ã 1.2. SPEC 1.3. TPC pgbenchã®å°å ¥ 2.1. pgbenchã¨ã¯ 2.2. ã¤ã³ã¹ãã¼ã« pgbenchã®ä½¿ç¨æ¹æ³ 3.1. pgbenchã®ä½¿ç¨æé 3.2. ãªãã·ã§ã³æå® ãã¼ã¿ãã¼ã¹ã®åæå 4.1. ãã¼ã¿ãã¼ã¹ã®åæå 4.2. ã¹ã±ã¼ãªã³ã°ãã¡ã¯ã¿ã¼ã®è¨å® ãã³ããã¼ã¯ãã¹ãã®å®è¡ 5.1. ãã³ããã¼ã¯ãã¹ãã®å®è¡ 5.2. æ¡ä»¶ãæå®ãã¦ãã³ããã¼ã¯ãã¹ãã®å®è¡ PostgreSQL8.0ã¨PostgreSQL8.1ã®æ§è½æ¯è¼ 6.1. ãã¹ãæ¹æ³ ãµã¼ãã¼Aã®çµ
ãApache HTTP server benchmarking toolã§æºå¸¯åºä½èå¥çªå·ãå½è£ ãããã®ã¤ã¥ã â ã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ããå½è£ ãã â ï¼ApacheBench Version2.3ã§ã¯ï¼NG abs -n 1 -c 1 -H "USER_AGENT: DoCoMo/2.0 SH06A3(c500;TB;W24H14)" "http://localhost/test.php?guid=on" â ï¼ApacheBench Version2.3ã§ã¯ï¼OK abs -n 1 -c 1 -H "USER-AGENT: DoCoMo/2.0 SH06A3(c500;TB;W24H14)" "http://localhost/test.php?guid=on" â ï¼çµè«ï¼ãã£ã¤ãã㨠abs -n 1 -c 1 -H "X-DCMGUID: test_01" -H "USER-AGENT:
æ°ä»ãããä¸ã¶æãæ¾ç½®ãã¦ãï¼ çç¡ç²¾ã§ãããã§ãããã¨ãããä»äºãå å®ãããã¦ã¦ãã¾ãåãåºãäºããªãä»æ¥ãã®é ã§ããã ãã§ãä»æ¥ã¯ãã®åæ°ä»ããäºã®åå¿é²ã ã¨ããããHTTPãµã¼ãã«è² è·ãããããªããã¨ãªãã¨å人çã«ä¸çªãæ軽ã ã¨æã£ã¦ãã®ã ab(Apache Bench) ã§ãã ã¨ã¯è¨ããApache 2.0.41 ã®é ã«ä½¿ããã¨ããæ㯠$ ab -H "User-Agent: DoCoMo/2.0 F01A(c100;TB;W24H17)" -n 100 -c 10 http://localhost/sample ã¨ããã¦ããUser-Agent ã ApacheBench/2.0.41-dev, DoCoMo/2.0 F01A(c100;TB;W24H17) ã¨ãã«ãªã£ã¡ãã£ã¦ãå½æã¯åç´ã«è² è·æ¸ããæå¤ã®ç®çã§ã¯ããã¾ã使ãç©ã«ãªãããã£ãã®ã§ãã(´・Ïï½¥`) ã§ã
ä¼ç¤¾ã®å 輩ãã¿ã¤ãã¦ããã¾ãããæè¬ã§ãã ab㧠/usr/local/apache2/bin/ab -n 100 -c 10 -H âUser-Agent: DoCoMo/2.0 P905i(c100;TB;W24H15)â âhttp://example.com/â ã¨ãã£ã¦ããã¨$_SERVER['HTTP_USER_AGENT']㯠ApacheBench/2.0.41-dev, DoCoMo/2.0 P905i(c100;TB;W24H15) ã«ãªã£ã¦ãã¾ããããã!!ä»æ¥æãã¦ããã£ãæ¹æ³ /usr/local/apache2/bin/ab -n 100 -c 10 -H âUSER_AGENT: DoCoMo/2.0 P905i(c100;TB;W24H15)â âhttp://example.com/â ã§ããã°$_SERVER['HTTP_USER_AGENT']㯠D
ç°¡åãªæç¶ãã§ãéãåããããåé¢ããµã©éã®ãã£ãã·ã³ã°ã¯éå©ãé«ãã«è¨å®ããã¦ãã¾ããã¨ãã«ã¯å©æ¯ãå©æ¯ãçãã§ãã¾ãããªããªãæãããã«è¿æ¸ãé²ã¾ãªããã¨ãããã¾ããéè¡ãªã©ã®éèæ©é¢ã®ãã¼ã³ã¨æ¯ã¹ã¦ããµã©éã®ãã£ãã·ã³ã°ã®éå©ã¯ä½ã§ãããªã«é«ãã®ãã¨çåãæãã人ã¯å¤ãã®ã§ã¯ãªãã§ããããããµã©éã®ãã£ãã·ã³ã°ã¨éèæ©é¢ã®ãã¼ã³ãæ¯è¼ããå ´åãç¸éç¹ã¨ãã¦å©æ¯ã®è¨ç®æ¹æ³ãããã¾ããåºæ¬çã«ã¯ãµã©éã®ãã£ãã·ã³ã°ã®å©æ¯è¨ç®ã¯èè³ãåããæ¥æ°åå©æ¯ããããæ¥å²ãè¨ç®ãè¡ãªããã¾ãããã®ããããµã©éã®ãã£ãã·ã³ã°ã§ãéãåããå¾ãããã«è¿æ¸ãå®äºãã¦ãã¾ãã°å©æ¯ã¯ã»ã¨ãã©ããããªããã¨ã«ãªãã¾ããããããªããããµã©éã®ãã£ãã·ã³ã°ã®å ´åãå¤ãã®äººãä¸æ¬ã§ã¯ãªãè¿æ¸ãåçã«è¡ãªã£ã¦ãããããå©æ¯ãå©æ¯ãçã¿åºããã¨ã«ãªããé常ã«é«éå©ã ã¨æãã¦ãã¾ãã®ã§ããããã«å¯¾ãã¦éèæ©é¢ã®ãã¼ã³ã§ã¯æ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}