Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonytonyjan/base45_lite
base45_lite is a Ruby implementation of Base45 data encoding
https://github.com/tonytonyjan/base45_lite
Last synced: about 1 month ago
JSON representation
base45_lite is a Ruby implementation of Base45 data encoding
- Host: GitHub
- URL: https://github.com/tonytonyjan/base45_lite
- Owner: tonytonyjan
- License: mit
- Created: 2022-04-02T17:23:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T03:04:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T13:25:12.391Z (about 2 months ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Base45Lite
![](https://github.com/tonytonyjan/base45_lite/actions/workflows/ci.yml/badge.svg)
`base45_list` is an implementation of [The Base45 Data Encoding](https://datatracker.ietf.org/doc/draft-faltstrom-base45/)
## Installation
```sh
gem install base45_lite
```## Usage
See [test/test_base45_lite.rb](test/test_base45_lite.rb)
## Benchmark
Compare to [base45](https://rubygems.org/gems/base45):
```sh
rake benchmark
``````
Warming up --------------------------------------
Base45Lite.encode 38.080k i/100ms
Base45.encode 15.564k i/100ms
Calculating -------------------------------------
Base45Lite.encode 347.340k (± 8.5%) i/s - 1.752M in 5.082412s
Base45.encode 141.198k (± 6.5%) i/s - 715.944k in 5.092245sComparison:
Base45Lite.encode: 347340.1 i/s
Base45.encode: 141197.9 i/s - 2.46x (± 0.00) slowerWarming up --------------------------------------
Base45Lite.decode 23.842k i/100ms
Base45.decode 15.195k i/100ms
Calculating -------------------------------------
Base45Lite.decode 238.203k (± 6.7%) i/s - 1.192M in 5.028081s
Base45.decode 167.595k (± 5.3%) i/s - 835.725k in 5.001845sComparison:
Base45Lite.decode: 238202.6 i/s
Base45.decode: 167595.3 i/s - 1.42x (± 0.00) slower
```