https://github.com/simdutf/base64jsbench
Node.js/bun base64 benchmark
https://github.com/simdutf/base64jsbench
Last synced: about 1 month ago
JSON representation
Node.js/bun base64 benchmark
- Host: GitHub
- URL: https://github.com/simdutf/base64jsbench
- Owner: simdutf
- Created: 2025-11-29T22:39:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-29T22:48:51.000Z (7 months ago)
- Last Synced: 2025-12-02T03:45:03.834Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
npm install
```
## Running the Benchmark
With Node.js:
```bash
npm start
```
With Bun:
```bash
bun run benchmark.js
```
The benchmark will test encoding and decoding performance for various payload sizes and output results to the console.