<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hacomono-tech</author_name>
  <author_url>https://blog.hatena.ne.jp/hacomono-tech/</author_url>
  <blog_title>hacomono TECH BLOG</blog_title>
  <blog_url>https://techblog.hacomono.jp/</blog_url>
  <categories>
    <anon>json-origami パフォーマンスチューニング</anon>
  </categories>
  <description>どうもみゅーとんです. 小ネタです. 弊社は GitHub の hacomono-lib という organization にて, OSS を公開しているのですが, なんとなく作っているロジックがちゃんとメモリ解放されているかが気になったので, そのテストを書く方法を探りました. 概要 3 行でまとめ Node.js 実行時のオプションにて, ガベージコレクションを任意実行させる関数を有効化できる メモリ解放されているかどうかは WeakRef を利用すると確認できる Node.js 実行時のオプションを使って Vitest を実行できる ここで話題にしないこと メモリ管理 / ガベージコレク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.hacomono.jp%2Fentry%2F2024%2F02%2F19%2F1100&quot; title=&quot;(小ネタ) Vitest で Node.js の GC をテストする - hacomono TECH BLOG&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hacomono-tech/20240216/20240216175250.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-19 11:00:00</published>
  <title>(小ネタ) Vitest で Node.js の GC をテストする</title>
  <type>rich</type>
  <url>https://techblog.hacomono.jp/entry/2024/02/19/1100</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
