2009-02-01ãã1ã¶æéã®è¨äºä¸è¦§
è¨ããã¨ç¥ãããLinux ã®éçºè ã§ãã Linus Torvalds ã®èªä¼ã§ãã ãããã¼ãã«ã¯æ¥½ããã£ããã å ¨ä¸çãå·»ãè¾¼ãã ãªããã¯ã¹é©å½ã®çå® (å°ããã»ããã¯ã¹)ä½è : ãªã¼ãã¹ãã¼ãã«ãº,ãããããã¤ã¤ã¢ã³ã,風è¦æ½¤,ä¸å³¶æ´åºç社/ã¡ã¼ã«ã¼: å°å¦é¤¨ãããâ¦
Rails-2.3 ã® RC1 ãã¾ã 触ã£ã¦ãªãã£ãã®ã§ãã¤ã³ã¹ãã¼ã«ãã¦ã試ãã¦ã¿ã¾ããã render :text => "Hello World!" ãªã¢ããªã«å¯¾ãã¦ãApache Bench ããè² è·ããããã¹ã«ã¼ãããã®å¹³å (5åè¨æ¸¬ããæ大ã¨æå°ãé¤ãã¦å¹³åå¤ãç®åº) ãã¨ã£ã¦ãã¾ãã 2.1â¦
ã¡ãã£ã¨åã«ãæ§è½ãã¿ãããã«ç¨æãã ActiveScaffold ã¨ãµã¤ãã® scaffold ã«ããã¢ããªã«ãDTrace ãããã¦ã¿ã¾ããã50 ãªã¯ã¨ã¹ããå¦çããã®ã«ãæ°ç¾ä¸ã®ã¡ã½ããå¼ã³åºãã観測ããã¾ãã(DTrace ã®å¤æ°é åã®é½åä¸ããã¾ãå¤ãã®ãªã¯ã¨ã¹ãã¯ãâ¦
ååã®è¨äºã§ã¯ Rails å®è¡ä¸ã®ã¡ã½ããå¼ã³åºããã¹ã¦ããã¬ã¼ã¹ãã¦ã¿ã¾ããããä»åã®ã¿ã¼ã²ãã㯠Garbage Collection ã«è¦ãã¦ãã CPU æéã§ããåã¨åãããrender :text => "Hello World!" ãªã¢ããªã«å¯¾ã㦠Apache Bench ãã 1ä¸ãªã¯ã¨ã¹ãã®è² è·â¦
Rails å®è¡æã® CPU 使ç¨çããã£ããé«ãã®ã§ãDTrace ã§ãªã«ãããããªããã®ãã¨ä½¿ã£ã¦ã¿ã¾ããã 以ä¸ã®ãããªç°å¢ã®ãã¨ã§ãããã®ãµã³ãã«ãã¡ãã£ã¨æ¹è¯ãã¦ãApache Bench (以ä¸ãab) ã§è² è·ãããã¦ãã Rails ã¢ããªããã¬ã¼ã¹ãã¦ã¿ã¾ãããé¢æ°â¦
ã¾ã ãã¾ãããã¨ç®æ¬¡ã¨ã¤ã³ãããã¯ã·ã§ã³ãããã¦è¨³è ãã¨ããããèªãã§ã¾ãããããããªãã·ããã¾ããã !(> ãè¦ç©ãã¨è¨ç»ã¥ãããã¢ã¸ã£ã¤ã«ã§ãªãã®ã«ãããã¸ã§ã¯ããã¢ã¸ã£ã¤ã«ã§ããã¨ãããã¨ã¯ããããªãã*1ã ã·ã³ãã«ãã¤éè¦ãªã¡ãã»ã¼ã¸â¦
ã¡ãã£ã¨è¦ã¦ãã®ã§ã¾ã¨ãã Universally Unique Identifier - Wikipedia RFC 4122 (rfc4122) - A Universally Unique IDentifier (UUID) URN Namespace UUID ã¨ã¯ãUniversally Unique Identifier ã®ç¥ã§ãåæ£ã·ã¹ãã ä¸ã§ã©ãããçµ±å¶ãåããã¨ããä¸æâ¦
ãã§ã«ããããªãã¼ã¸ã§ã³ã® Ruby ã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ãªã®ã§ããããã¹ããã¡ãã£ã¨ãã確èªæã«ä¾¿å©ãããªã®ã§ multiruby ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã ã¾ããZenTest ãã¯ãã£ã¦ãããã¨ã確èªã % gem list --local ZenTest *** LOCAL GEMS *** ZenTest â¦
ããæè¿ãåã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«ãããæ§è½æ¯ãã¿ãããã«ãrender :text => 'xxx' ã°ããåããã¦ã¾ããã ã§ãã¡ãã£ã¨æ°åãã§ããã¦ããæ°ãããã®ã§ãããã¡ãã£ã¨è¤éãªã¢ããªã±ã¼ã·ã§ã³ã§ã®ã¹ã«ã¼ãããæè¦ãã¤ããã§ããããã¦ãã£ã¦ã¿ã¾ããâ¦
ååã®è¨äºã§ã¯ãApache Bench ã§ä¸¦å度ã 10 ã«åºå®ããç¶æ ã§ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ããã¨ã® render :text => 'xxx' ã®æ§è½æ¯ãã¿ã¦ã¿ã¾ããããCharles Nutter ãããããã³ã¡ã³ããããã£ãã®ã§ã並å度ã«å¿ããæ§è½ã®å¤åã調ã¹ã¦ã¿ã¾ããã Charles Oâ¦