JavaScriptã§ããåºéã«ããã£ãæéãè¨æ¸¬ããæã«ã次ã®ãããªã³ã¼ããæ¸ãããã¨ãããã¨æãã¾ãã const start = performance.now(); // å¦ç // è²ã ãªå¦çããã¹ã¦çµãã£ã doSome(() => { console.log(performance.now() - start); }) Performance Timelineã®performance.markã¨performance.measureãªã©ã使ãã¨ãããåºéã®å¦çæéããã£ã¨ç°¡åã«åããã¨ãã§ãã¾ãã APIã«ã¤ãã¦è©³ããã¯ä»¥ä¸ã®è¨äºãè¦ãã¨ããã¨æãã¾ãã User Timing API: ããªãã® Web ã¢ããªããã£ã¨ç解ããããã« - HTML5 Rocks Performance.mark() - Web API ã¤ã³ã¿ã¼ãã§ã¤ã¹ | MDN ç°¡åã«è§£èª¬ãã㨠perf
{{#tags}}- {{label}}
{{/tags}}