Socket
Socket
Sign inDemoInstall

binarius

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    binarius

Store and operate on data in Numbers and BigInts for memory savings, performance, and fun.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
17.2 kB
Created
Weekly downloads
 

Readme

Source

Binarius

npm Travis branch Codecov

Store and operate on data in Numbers and BigInts for memory savings, performance, and fun.

Installation

npm i binarius -S 

Usage

Benchmark

>node benchmark.js
Construct:
   binarius (Number) x 51,868,502 ops/sec ±9.35% (73 runs sampled)
   tiny-binary-format x 27,811,598 ops/sec ±9.24% (75 runs sampled)
   Binarius BigInt x 998,165 ops/sec ±8.40% (77 runs sampled)
Get Field:
   binarius (Number) x 10,399,734 ops/sec ±9.35% (73 runs sampled)
   tiny-binary-format x 16,948,777 ops/sec ±9.69% (72 runs sampled)
   binarius (BigInt) x 969,008 ops/sec ±10.44% (64 runs sampled)
Set Field:
   binarius (Number) x 11,905,363 ops/sec ±9.10% (75 runs sampled)
   binarius (BigInt) x 577,570 ops/sec ±8.59% (81 runs sampled)
Construct Small Bit Set:
   binarius x 12,680,530 ops/sec ±9.31% (70 runs sampled)
   parseInt x 11,408,948 ops/sec ±9.60% (61 runs sampled)
   fast-bitset x 2,008,394 ops/sec ±10.44% (60 runs sampled)
   bitflags x 1,882,259 ops/sec ±9.76% (60 runs sampled)
Get Small Bit Set:
   binarius x 33,838,562 ops/sec ±9.15% (65 runs sampled)
   Vanilla x 39,430,233 ops/sec ±9.54% (64 runs sampled)
   fast-bitset x 1,600,432 ops/sec ±8.72% (71 runs sampled)
   bitflags x 1,492,410 ops/sec ±9.44% (64 runs sampled)
Set Small Bit Set:
   binarius x 16,161,097 ops/sec ±10.18% (62 runs sampled)
   Vanilla x 69,220,698 ops/sec ±10.08% (64 runs sampled)
   fast-bitset x 1,955,982 ops/sec ±9.59% (59 runs sampled)
   bitflags x 1,883,057 ops/sec ±9.72% (60 runs sampled)
Construct Large Bit Set:
   binarius (BigInt) x 15,429,294 ops/sec ±10.49% (63 runs sampled)
   parseInt x 6,422,370 ops/sec ±10.01% (66 runs sampled)
   fast-bitset x 1,853,205 ops/sec ±8.88% (60 runs sampled)
   bitflags x 1,675,325 ops/sec ±9.37% (65 runs sampled)
Get Large Bit Set:
   binarius (BigInt) x 3,164,770 ops/sec ±9.84% (64 runs sampled)
   fast-bitset x 2,294,947 ops/sec ±9.02% (68 runs sampled)
   bitflags x 1,713,873 ops/sec ±9.45% (61 runs sampled)
Set Large Bit Set:
   binarius (BigInt) x 1,351,004 ops/sec ±10.80% (66 runs sampled)
   fast-bitset x 1,849,869 ops/sec ±9.61% (63 runs sampled)
   bitflags x 1,900,251 ops/sec ±10.02% (60 runs sampled)

License

MIT © Maga D. Zandaqo

Keywords

FAQs

Last updated on 06 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc