ããã°ã©ã ã®ä¸é¨åã®æè¦æéãã¡ãã£ã¨èª¿ã¹ããã¨æã£ã¦ãï¼åã§æéã調ã¹ã¦ï¼å¾ãã§æéã調ã¹ã¦ï¼å¼ãç®ãããã®ãåºåãã¦ï¼ã¨è²ã æ¸ããã°ãªããï¼æå¤ã¨é¢åã§ãï¼ Ruby ã® benchmark ã¯ãããªãã¨æã£ã¦ãããï¼id:tanakh ããã® PFI ã»ããã¼ãæãåºããã®ã§ï¼ããã£ã½ããã®ã C++ ã§å®ç¾ãã¦ã¿ã¾ããï¼ ï¼2/21 19:30 é ã«ãããå°ã便å©ã«ãã®ãã¼ã¸ã§ã³ã®åé¡ç¹ã¨è§£æ±ºã«ã¤ãã¦è¿½è¨ãã¾ããï¼ ä¾ int main() { benchmark { sleep(1); } benchmark { sleep(2); } } ãããªæãã§æ¸ã㨠1.000013 sec 2.000009 sec ãããªæãã§æ¨æºã¨ã©ã¼åºåã«è¡¨ç¤ºï¼ ã½ã¼ã¹ã³ã¼ã ãããä¸ã«æ¸ãã¦ããã° OK ã§ãï¼ #include <sys/time.h> struct __bench__ {
{{#tags}}- {{label}}
{{/tags}}