---
title: "Bun v0.1.9"
description: "Bun v0.1.9 starts using JavaScriptCore's DOMJIT API to JIT-optimize native functions, making `ptr()` in `bun:ffi` 6-10x faster and `TextEncoder.encodeInto` 1.5-5x faster."
url: "https://swe.quest/articles/bun-v0-1-9-4ecfe167e5b29929"
canonical: "https://bun.com/blog/bun-v0.1.9"
source: "Bun"
published: "2022-08-18"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["runtimes","javascript","zig","performance","compilers"]
---

# Bun v0.1.9

A post on [Bun](https://swe.quest/sources/bun.md), published 2022-08-18, 3 min read, Release. Original: [https://bun.com/blog/bun-v0.1.9](https://bun.com/blog/bun-v0.1.9)

## Summary

Bun v0.1.9 starts using JavaScriptCore's DOMJIT API to JIT-optimize native functions, making \`ptr()\` in \`bun:ffi\` 6-10x faster and \`TextEncoder.encodeInto\` 1.5-5x faster. To get there, Bun extended DOMJIT to accept Typed Array arguments and to declare more kinds of side effects. Bun now code-generates C++ binding classes and ABI-checked Zig bindings from JavaScript class definitions, an approach inspired by WebIDL, replacing most use of the JSC C API. Other changes include a more reliable, lower-CPU event loop on Linux, about 20% faster \`Bun.serve\` through better \`Headers\` handling, native \`buffer\` and \`process\` modules, and numerous crash fixes.

Written by swe.quest, not by the author.

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

## Topics

- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Zig](https://swe.quest/tags/zig.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)

## Prerequisites

- JavaScript engines and JIT basics ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- native bindings/FFI

## Keywords

Bun, JavaScriptCore, DOMJIT, bun:ffi, WebKit, WebIDL, Zig

## Related posts

- [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.2.17](https://swe.quest/articles/bun-v1-2-17-6bfcdfe2dc03cf80.md): Bun · 2025-06-21 · Medium · 10 min read · JavaScript, Runtimes & VMs, Build systems, Performance engineering
  Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so \`bun build --target=bun\` or \`--compile\` can produce a full-stack build or a single self-contained executable with no runtime bundling.
- [Bun v1.3.10](https://swe.quest/articles/bun-v1-3-10-809e937e8a78ed82.md): Bun · 2026-02-26 · Medium · 19 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, TypeScript
  Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion.
- [Bun v1.1.19](https://swe.quest/articles/bun-v1-1-19-00c26890132a72c3.md): Bun · 2024-07-12 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v1.1.19 enables JavaScriptCore's FTL JIT on Windows for the first time in nine years, making Object.entries about 20% faster and cutting Array.map overhead roughly in half.
- [Bun v1.3.9](https://swe.quest/articles/bun-v1-3-9-b7a8e766ebce7857.md): Bun · 2026-02-08 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering, Compilers
  Bun v1.3.9 adds \`bun run --parallel\` and \`--sequential\` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via \`net.Server\`, \`Symbol.dispose\` support for test mocks, \`NO\_PROXY\` handling for explicit proxies, \`--cpu-prof-interval\`, and ESM bytecode in \`--compile\`.

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)
