Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 814 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 814 Bytes

Binary Struct Builder Benchmark

This project compares the performance of different methods for reading and writing binary data structures in JavaScript.

Inspiration

This experiment is inspired by Tsoding's video "C is Dead. JavaScript will replace it.".

Overview

The project implements two versions of a binary struct builder:

  1. Using new Function()
  2. Using regular functions

It then benchmarks these implementations against JSON serialization/deserialization.

Running the Benchmark

To run the benchmark:

bun run index.ts

Resources