Skip to content

Conversation

gibson042
Copy link
Contributor

Aside from being simpler, it's also faster per benchmark.mjs:

 uint8ArrayToBase64
-  10.86 ops/sec ±8.49% (30 runs sampled)
+  65.60 ops/sec ±0.55% (68 runs sampled)
 stringToBase64
-  5.00 ops/sec ±13.67% (18 runs sampled)
+  27.22 ops/sec ±0.43% (49 runs sampled)

Aside from being simpler, it's also faster per benchmark.mjs:
```diff
 uint8ArrayToBase64
-  10.86 ops/sec ±8.49% (30 runs sampled)
+  65.60 ops/sec ±0.55% (68 runs sampled)
 stringToBase64
-  5.00 ops/sec ±13.67% (18 runs sampled)
+  27.22 ops/sec ±0.43% (49 runs sampled)
```
@sindresorhus sindresorhus merged commit ba413ea into sindresorhus:main Aug 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants