ãã³ããã¼ã¯ãæ´æ°ãã¾ãã
SpringFramework 2.0.4ã§ãã¡ããã©ãã³ããã¼ã¯ã«é¢ä¿ããé¨åã®ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ãè¡ã£ãã¨ã®äºãªã®ã§ï¼è©³ããã¯次のエントリåç §ï¼ãå度ãã³ããã¼ã¯ãè¡ãã¾ãããSeasar2ãææ°çã«å ¥ãæ¿ããä¸ã§ãã»ããã¢ããå¦çã³ã¼ããä¸é¨å¤æ´ãã¦ãã¾ãã
è¨æ¸¬å 容
- ãã¼ã¸ã§ã³ã¯ãSpring 2.0.4 / Guice 1.0 / Seasar2 2.4.12
- ã¤ã³ã¹ã¿ã³ã¹åå¾ã¯AOPæãã¨AOPç¡ãã®ä¸¡æ¹ãè¨æ¸¬ï¼ååã¯æãã®ã¿ã§ããããä»åã¯ç¡ããè¨æ¸¬ãã¾ããï¼
- å ¨ã¦ãããã¿ã¤ãï¼æ¯åæ°ããã¤ã³ã¹ã¿ã³ã¹ãåå¾ï¼
- åå¾ããã¤ã³ã¹ã¿ã³ã¹ã®å®è¡æéã¯ãAOPæãã®ã¿è¨æ¸¬ï¼AOPç¡ãã¯å¤ãããªãã¯ããªã®ã§ï¼
- çæãã¦æ¬²ããäºé ã¯前回の前置きã«ããã¾ã
ãã³ããã¼ã¯çµæ
- get instance (NO AOP)- Spring: 24,336 creations/s Guice: 304,878 creations/s S2: 26,553 creations/s - get instance (WITH AOP) - Spring: 3,967 creations/s Guice: 45,065 creations/s S2: 26,232 creations/s - call service (WITH AOP) - Spring: 101,971 calls/s Guice: 843,340 calls/s S2: 1,270,329 calls/s - get instance (NO AOP)- Spring: 24,618 creations/s Guice: 304,878 creations/s S2: 25,806 creations/s - get instance (WITH AOP) - Spring: 3,766 creations/s Guice: 42,662 creations/s S2: 26,448 creations/s - call service (WITH AOP) - Spring: 103,727 calls/s Guice: 959,881 calls/s S2: 1,271,474 calls/s
前回ã¨æ¯ã¹ãã¨ãã¤ã³ã¹ã¿ã³ã¹åå¾å¦çã§Springã®ãã¥ã¼ãã³ã°ææãå¦å®ã«ç¾ãã¦ãã¾ãããAOPæããç¡ããGuiceã¨ã®å·®ã10åãããã¾ã§ç¸®ã¾ã*1ãAOPç¡ãã§ã¯Seasar2ã¨ã»ã¼ä¸¦ãã ã¨è¨ã£ã¦è¯ãããã§ãã
éã«Springã¯AOPã®ã¤ã³ã¹ã¿ã³ã¹åå¾ãå®è¡ã®é
ããéç«ã¡ã¾ãããAspectJã使ãã¨ã ãã¶æ°å¤ãéã£ãããããã§ããããããã¯ã試ããªãã¨ãããããã
ããã¨ãS2ãAOPæãç¡ãã§ããã©ã¼ãã³ã¹ãå¤ãããªãã®ãé©ãã§ã*2ãweaveããã¿ã¤ãã³ã°ãä»ã®ã³ã³ããã¨éãã¨ããªã®ã§ããããï¼ã§ãå®è¡ã¯ä¸çªéããããåç´ã«é
延ãã¦ãã¨ãã§ã¯ç¡ãããã ãâ¦ã
å®è¡ãããã³ããã¼ã¯ã³ã¼ããå¤æ´ç¹ãªã©ã¯
以ä¸ã®wikiã«ç½®ãã¾ããã
Guice, Spring, Seasar2 ベンチマーク(第2回)
ãªãååã¯ãã¼ã¸ã¿ã¤ãã«ãSpringã§ã¯ãªã"Sring"ã«ãªã£ã¦ããã¨ãã大å¤æ¥ããããäºã«ãªã£ã¦ããã®ã§ï¼ããããªã¬ã³ã¸ãã¥ã¼ã¹ã«載ったã®ã§å¤ãããããªã²ã¼ãããåæ°ãç¡ãã£ãï¼ãä»åã¯æ°ãã¤ãã¾ãã:-)
wikiãªã®ã§ãæ¹åç¹ã追å ãæ å ±ãªã©ããã¾ãããæ¸ãè¾¼ãã§é ããã¨å¬ããã§ãã
*1:ãã¾ã 10åããï¼ãã¨ããæè¦ãããã¨æãã¾ããã使ãç«å ´ã®ç§å人ã¨ãã¦ã¯ãã®è¾ºã®æ°å¤ããã¨ãã¨ãã¾ãæ°ã«ãã¦ããªãã®ã¨ãã©ã¤ããµã¤ã¯ã«ãµãã¼ããªã©æ©è½ãç°ãªãã®ã§ãSpringé å¼µã£ããªãã¨ããã®ãç´ æ´ãªææ³ã§ã
*2:è¨æ¸¬ã³ã¼ãééã£ã¦ãªããã°â¦