-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(base64): Replace random access with iteration
XS is O(n) for the former (not that it really matters here because they also supply a native base64 implementation). ```console $ echo "Node.js" && node test/bench-main.js && echo "XS" && ~/.esvu/bin/xs -m test/bench-main.js Node.js encodes 9801.535832414553 characters per millisecond JS encodes 18329.573806881242 characters per millisecond decodes 45848.339350180504 bytes per millisecond JS decodes 45448.94117647059 bytes per millisecond XS encodes 578303.1160714285 characters per millisecond JS encodes 1700.2734761120264 characters per millisecond decodes 393870.26373626373 bytes per millisecond JS decodes 1946.3762376237623 bytes per millisecond ```
- Loading branch information
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters