Skip to content

Experimenting with different methods for reading and writing binary data structures in JavaScript.

Notifications You must be signed in to change notification settings

niranjannitesh/js-struct-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Experimenting with different methods for reading and writing binary data structures in JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published