This project compares the performance of different methods for reading and writing binary data structures in JavaScript.
This experiment is inspired by Tsoding's video "C is Dead. JavaScript will replace it.".
The project implements two versions of a binary struct builder:
- Using
new Function()
- Using regular functions
It then benchmarks these implementations against JSON serialization/deserialization.
To run the benchmark:
bun run index.ts