---
title: "Bun v0.6.4"
description: "Bun v0.6.4 makes `bun test` up to 80% faster on suites with many small files by no longer forcing a synchronous garbage collection after every file, at the cost of roughly 9% more memory."
url: "https://swe.quest/articles/bun-v0-6-4-48c1f86cc2294704"
canonical: "https://bun.com/blog/bun-v0.6.4"
source: "Bun"
published: "2023-05-26"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","testing","runtimes","performance"]
---

# Bun v0.6.4

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-05-26, 4 min read, Release. Original: [https://bun.com/blog/bun-v0.6.4](https://bun.com/blog/bun-v0.6.4)

## Summary

Bun v0.6.4 makes \`bun test\` up to 80% faster on suites with many small files by no longer forcing a synchronous garbage collection after every file, at the cost of roughly 9% more memory. The test runner now sets NODE\_ENV=test, loads \`.env.test\` files, supports per-test and \`--timeout\` timeouts, adds \`toHaveLength()\`/\`toBeEmpty()\` matchers, and defaults to the Etc/UTC timezone to reduce flaky CI tests. Other changes include \`process.env.TZ\` support, \`require.cache\` (which also works for ESM), JSX runtime and Node.js http/https compatibility fixes, and internal builtins rewritten in TypeScript that shrink the binary by about 900 KB.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Node.js module system ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, bun test, Node.js, require.cache, JSX, TypeScript

## Related posts

- [Bun v1.0.12](https://swe.quest/articles/bun-v1-0-12-7e77f90bbca6622e.md): Bun · 2023-11-16 · Medium · 12 min read · JavaScript, Runtimes & VMs, Testing, Developer tools
  Bun v1.0.12 fixes 24 bugs and adds \`bun -e\` for evaluating inline scripts (with TypeScript, JSX and top-level await), \`--env-file\` for choosing which .env files to load, \`server.url\`, \`import.meta.env\`, and \`expect.unreachable()\` in bun:test.
- [Bun v1.3.1](https://swe.quest/articles/bun-v1-3-1-ee365f019ab94793.md): Bun · 2025-10-22 · Medium · 9 min read · JavaScript, Runtimes & VMs, Build systems, Testing, Developer tools
  Bun v1.3.1 makes \`bun build\` up to 2x faster for symlink-heavy projects (isolated linker, pnpm).
- [Bun v1.2.20](https://swe.quest/articles/bun-v1-2-20-d97fc960ddc0e406.md): Bun · 2025-08-10 · Medium · 10 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector.
- [Bun v0.6.9](https://swe.quest/articles/bun-v0-6-9-0635261452349fca.md): Bun · 2023-06-13 · Medium · 3 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v0.6.9 focuses on memory reductions: zero-copy string Response bodies in Bun.serve() and Response (60 MB vs Deno's 425 MB and Node's 1414 MB after 1000 responses of a 12 MB string), 50% less memory for cold bun install, and fixed leaks when importing modules.
- [Bun v0.3.0](https://swe.quest/articles/bun-v0-3-0-ce34b4df06ef614a.md): Bun · 2022-12-07 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
