<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wannabe-jellyfish</author_name>
  <author_url>https://blog.hatena.ne.jp/wannabe-jellyfish/</author_url>
  <blog_title>くらげになりたい。</blog_title>
  <blog_url>https://memory-lovers.blog/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>Profiling</anon>
  </categories>
  <description>Node.jsで動かしてるコードの高速化/軽量化をしたいなと思ったけど、 どうやって計測すればいいんだろ？と思ったので、調べたときの備忘録。 時間計測 console.time()かperformance.now()で計測するのが良さそう Console.time() - Web API | MDN performance.now() - Web APIs | MDN console.timeの例 console.time(&quot;measure_time_label&quot;); for (let i = 0; i &lt; 5; ++i) { console.timeLog(&quot;measure_time_lab…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2021%2F06%2F18%2F150705&quot; title=&quot;Node.jsで時間/メモリ/CPU使用率の計測 - くらげになりたい。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-18 15:07:05</published>
  <title>Node.jsで時間/メモリ/CPU使用率の計測</title>
  <type>rich</type>
  <url>https://memory-lovers.blog/entry/2021/06/18/150705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
