---
title: "Bun v0.6.9"
description: "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."
url: "https://swe.quest/articles/bun-v0-6-9-0635261452349fca"
canonical: "https://bun.com/blog/bun-v0.6.9"
source: "Bun"
published: "2023-06-13"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["javascript","runtimes","memory-management"]
---

# Bun v0.6.9

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-06-13, 3 min read, Release. Original: [https://bun.com/blog/bun-v0.6.9](https://bun.com/blog/bun-v0.6.9)

## Summary

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. It also fixes non-ASCII filename imports, mockResolvedValue and missing function properties on mocks in bun test, a GC-related crash in the CommonJS require() loader, and a ~192-byte-per-call leak in node:crypto hashing.

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)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)

## Prerequisites

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

## Keywords

Bun, Bun.serve, bun install, bun test, JavaScriptCore, node:crypto, CommonJS

## Related posts

- [Bun v1.0.4](https://swe.quest/articles/bun-v1-0-4-607f4ffff0bda429.md): Bun · 2023-10-03 · Medium · 7 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v1.0.4 fixes 62 bugs, adds server.requestIP() for retrieving a request's socket IP (not proxy headers), and supports esbuild-compatible virtual modules in runtime plugins via builder.module().
- [Bun v1.0.20](https://swe.quest/articles/bun-v1-0-20-4c5d451d499e769b.md): Bun · 2023-12-24 · Medium · 6 min read · JavaScript, Runtimes & VMs, Memory management, Performance engineering
  Bun v1.0.20 cuts memory usage in node:fs async operations by avoiding redundant cross-thread string clones.
- [Bun v1.1.10](https://swe.quest/articles/bun-v1-1-10-7013099545edcaeb.md): Bun · 2024-05-24 · Medium · 9 min read · JavaScript, Runtimes & VMs, Memory management, Performance engineering
  Bun v1.1.10 fixes 20 bugs, makes uncached bun install on Windows about 2x faster, and cuts fetch() memory use by up to 2.8x by freeing response bodies sooner.
- [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.
- [Bun v1.1.22](https://swe.quest/articles/bun-v1-1-22-2b177fc67a458073.md): Bun · 2024-08-07 · Medium · 11 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems
  Bun v1.1.22 fixes 79 bugs and makes Express 3x faster than on Node.js through node:http improvements.

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)
