Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 493 Bytes

File metadata and controls

27 lines (18 loc) · 493 Bytes

Base64 JS Benchmark

This project benchmarks the native Uint8Array.toBase64() and Uint8Array.fromBase64() methods in JavaScript.

Requirements

  • Bun or Node.js version 25+ (for native support of the Base64 methods)

Installation

npm install

Running the Benchmark

With Node.js:

npm start

With Bun:

bun run benchmark.js

The benchmark will test encoding and decoding performance for various payload sizes and output results to the console.