Ïê½âÔõÑù²âÊÔgiteeµÄÐÔÄÜ
Ëæ×Å¿ªÔ´Ô½À´Ô½ÆÕ¼°£¬gitee×÷Ϊº£ÄÚÁìÏȵĴúÂëÍйÜƽ̨ҲÊܵ½ÁËÆÕ±éµÄ¹Ø×¢¡£Ò»Ð©¿ª·¢ÕßÔÚʹÓÃgitee¾ÙÐÐÏîÄ¿ÖÎÀíÖУ¬²»¿É×èÖ¹µØ»áÓöµ½Ò»Ð©ÐÔÄÜÎÊÌ⣬Òò´ËÏàʶÔõÑù²âÊÔgiteeµÄÐÔÄܹØÓÚÏîÄ¿ÖÎÀíÊǺÜÓÐÐëÒªµÄ¡£
Ò»¡¢ÐÔÄܲâÊÔµÄÅä¾°
ÐÔÄܲâÊÔÊÇÔÚÌض¨µÄÇéÐÎ϶Ôϵͳ¾ÙÐÐÒ»¶¨¸ºÔØÌõ¼þϵIJâÊÔ£¬ÒÔÆÀ¹ÀϵͳµÄÏìÓ¦ËÙÂÊ¡¢ÍÌÍÂÂÊ¡¢×ÊԴʹÓÃÂÊ¡¢ÎȹÌÐÔµÈÐÔÄÜÖ¸±ê£¬ÎªÏµÍ³ÐÔÄÜÓÅ»¯ºÍÈÝÁ¿ÍýÏëÌṩÖ÷ÒªµÄ²Î¿¼ÒÀ¾Ý¡£
giteeµÄÐÔÄܲâÊÔÖ÷ÒªÊÇÖ¸ÔÚÍÆËÍ´úÂë¡¢ÏÂÔØ´úÂëµÈ¹¦Ð§ÉϵIJâÊÔ¡£ÓÉÓÚÕâЩ²Ù×÷ÊÇgiteeƽ̨ÓõÄ×î¶àµÄ£¬µ«Í¬Ê±ÓÉÓÚÍøÂçÖÊÁ¿¡¢´«ÊäËÙÂʵÈÔµ¹ÊÔÓÉ£¬ÕâЩ²Ù×÷ÍùÍù»áÊܵ½Ðí¶àµÄ×ÌÈÅ£¬Òò´ËÐèÒª¾ÙÐÐÐÔÄܲâÊÔÀ´ÓÅ»¯Æ½Ì¨ÐÔÄÜ¡£
¶þ¡¢ÐÔÄܲâÊÔÐèÒªµÄ¹¤¾ß
Apache Bench
ÕâÊÇÒ»¸öºÜÊÇÇ¿Ê¢µÄ»ù×¼²âÊÔ¹¤¾ß£¬ÓÃÓÚ²âÊÔWebЧÀÍÆ÷µÄÐÔÄÜ£¬Ëü¿ÉÒÔÄ£Äâ¸ß²¢·¢»á¼ûÓû§£¬²¢Êä³ö²âÊÔЧ¹û¿ÉÒÔ½ÏÁ¿ÈÝÒ×µØÃ÷È·²âÊÔЧ¹ûÖеÄÿ¸ö²ÎÊý¡£
LoadRunner
ÕâÊÇÐÔÄܲâÊÔÖÐÁíÒ»¸öºÜÊÇÖ÷ÒªµÄ¹¤¾ß£¬Ö÷ÒªÓÃÓÚ²âÊԽϴó¹æÄ£µÄÈí¼þϵͳ¡£Í¨¹ýLoadRunner£¬Óû§¿ÉÒÔ¶ÔWebÓ¦ÓóÌÐò¾ÙÐÐÍÌÍÂÁ¿¡¢ÏìӦʱ¼ä¡¢²¢·¢ÐԵȷ½ÃæµÄ²âÊÔ¡£
JMeter
ÓëApache BenhcºÜÊÇÏàËÆ£¬JMeterÒ²ÊÇÒ»¸ö¿ªÔ´µÄ¹¤¾ß£¬Ö÷ÒªÓÃÓÚ¾ÙÐÐWebÓ¦ÓóÌÐòµÄÐÔÄܲâÊÔ¡¢¹¦Ð§²âÊԺ͸ºÔزâÊÔ£¬Ö§³Ö¶àÖÖÐÒ飬ÈçHTTP¡¢FTP¡¢SMTP¡¢JMSµÈµÈ¡£
Èý¡¢ÏÖʵ²âÊÔ°ì·¨
ÔÚ²âÊÔÐÔÄÜ֮ǰ£¬ÐèÒªÏàʶһЩ²âÊÔÊý¾Ý£¬ÀýÈç²¢·¢Óû§Êý¡¢²âÊÔÒ»Á¬Ê±¼ä¡¢²âÊÔÊý¾ÝʹÓÃÆÚÍû¡¢Óû§ÐÐΪµÈ¡£ÔÚÕâÀïÎÒÃÇÑ¡ÔñʹÓÃApache Bench¹¤¾ß£¬²âÊÔÊý¾ÝÈçÏ£º
²¢·¢Óû§Êý£º50¡¢100¡¢500¡¢1000
²âÊÔÒ»Á¬Ê±¼ä£º30s¡¢60s¡¢180s¡¢300s
²âÊÔÊý¾ÝʹÓÃÖÜÆÚ£º10min¡¢20min¡¢30min¡¢60min
ÉèÖòâÊÔÇéÐÎ
ÔÚ¾ÙÐвâÊÔ֮ǰ£¬ÐèÒªÏȶԲâÊÔÄ¿µÄ¾ÙÐÐÉèÖã¬Ö÷Òª°üÀ¨Ð§ÀÍÆ÷ÉèÖá¢Êý¾Ý´æ´¢ÉèÖõȵȡ£ÓÉÓÚ±¾´Î²âÊÔÕë¶Ôgiteeƽ̨£¬ÐèÒªÏÈÈ·ÈÏgiteeµÄµØµã£¬ÕâÀïÎÒÃÇÒÔgiteeµÄ¹Ù·½µØµã¡°https://gitee.com¡±×÷Ϊ²âÊԵص㣬Ö÷Òª²âÊÔ¹¤¾ßÊÇgiteeÖеÄgit¿ÍÕ»¡£
Æô¶¯²âÊÔ
Æô¶¯²âÊÔ֮ǰ£¬ÐèÒªÏÈÖ´ÐÐÒÔÏÂÏÂÁ
ab -n 1000 -c 100 http://gitee.com/
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬-nÌåÏÖÇëÇóÊý£¬-cÌåÏÖ²¢·¢Êý£¬ºóÃæµÄURLÊÇÐèÒª²âÊÔµÄÍøÖ·¡£
Éó²é²âÊÔЧ¹û
Æô¶¯²âÊÔºó£¬ÔÚÄ¿½ñ¿ØÖÆ̨¿ÉÒÔÉó²é²âÊÔЧ¹ûµÄ»ã×ÜÐÅÏ¢£¬ÀýÈ磺
Concurrency Level: 50 Time taken for tests: 23.052 seconds Complete requests: 100 Failed requests: 18 (Connect: 0, Receive: 0, Length: 18, Exceptions: 0) Non-2xx responses: 100 Total transferred: 107278 bytes HTML transferred: 91740 bytes Requests per second: 4.34 [#/sec] (mean) Time per request: 1152.591 [ms] (mean) Time per request: 23.052 [ms] (mean, across all concurrent requests) Transfer rate: 4.54 [Kbytes/sec] received
µÇ¼ºó¸´ÖÆ
ÔÚ²âÊÔЧ¹ûÖУ¬Concurrency LevelÊÇÄ¿½ñµÄ²¢·¢Óû§Êý£¬Time taken for testÊDzâÊÔµÄʱ³¤£¬Requests per secondÊÇָÿÃëÖÓÄÜ´¦ÀíµÄÇëÇóÊý£¬Time per requestÊÇָÿ¸öÇëÇó´¦ÀíµÄƽ¾ùʱ¼ä¡£
ͨ¹ý¶Ô²âÊÔÊý¾ÝµÄÆÊÎö£¬¿ÉÒÔ»ñµÃÒÔϽáÂÛ£º
ÔÚ²¢·¢Êý½ÏСʱ£¬ÇëÇóÀÖ³ÉÂʽϸߣ»
Ëæ×Ų¢·¢ÊýÄ¿µÄÔöÌí£¬ÇëÇóÀÖ³ÉÂÊ×îÏÈϽµ£¬Í¬Ê±Ã¿¸öÇëÇóµÄʱ¼äÒ²»á±ä³¤£»
Ò»Á¬Ê±¼ä½Ï³¤Ê±£¬Ã¿ÃëÇëÇóÊýĿһֱϽµ£»
ÔÚËùÓвâÊÔÊý¾ÝÖУ¬×îÓŵIJâÊÔÊý¾ÝÊÇ£º²¢·¢Óû§Êý500£¬²âÊÔÒ»Á¬Ê±¼ä180s¡£
ËÄ¡¢ÓÅ»¯½¨Òé
ͨ¹ýÒÔÉϲâÊÔµÄЧ¹û£¬ÎÒÃÇ¿ÉÒԵóöÒÔÏÂһЩÓÅ»¯½¨Ò飺
ÔöÌígiteeƽ̨µÄЧÀÍÆ÷ÐÔÄÜ£¬ÒÔÌá¸ßƽ̨µÄ²¢·¢´¦ÀíÄÜÁ¦£»
ÔöÌígiteeƽ̨µÄ´ø¿íºÍÍøÂçËÙÂÊ£¬Õ⽫ÓÐÖúÓÚÌá¸ßÊý¾Ý´«ÊäµÄËÙÂÊ£»
ÓÅ»¯Æ½Ì¨µÄ´úÂ룬ÒÔ¼ÓËÙ´¦ÀíºÍÏìÓ¦ËÙÂÊ¡£
×ÛÉÏËùÊö£¬Ï£ÍûÒÔÉÏÌṩµÄÒªÁìºÍ½¨Òé¹ØÓÚÄú²âÊÔgiteeƽ̨µÄÐÔÄÜÓÐËù×ÊÖú£¬Äܹ»Öª×ãÄú¶Ôgiteeƽ̨µÄÐÔÄܲâÊÔÐèÇ󣬲¢ÎªÄúµÄ¿ª·¢ÊÂÇéÌṩЧÂÊÖ§³Ö¡£
ÒÔÉϾÍÊÇÏê½âÔõÑù²âÊÔgiteeµÄÐÔÄܵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡