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
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 55,497,411 ops/sec ±1.43% (92 runs sampled)
   tiny-binary-format x 35,752,705 ops/sec ±0.11% (95 runs sampled)
   binarius (BigInt) x 1,356,673 ops/sec ±9.49% (74 runs sampled)
Get Field:
   binarius (Number) x 16,288,487 ops/sec ±9.38% (73 runs sampled)
   tiny-binary-format x 20,619,945 ops/sec ±9.72% (71 runs sampled)
   binarius (BigInt) x 1,091,167 ops/sec ±9.14% (75 runs sampled)
Set Field:
   binarius (Number) x 12,349,185 ops/sec ±9.53% (73 runs sampled)
   binarius (BigInt) x 833,874 ops/sec ±9.15% (75 runs sampled)
Construct Small Bit Set:
   binarius x 13,487,599 ops/sec ±10.04% (63 runs sampled)
   parseInt x 12,194,221 ops/sec ±10.72% (63 runs sampled)
   fast-bitset x 2,195,533 ops/sec ±9.05% (66 runs sampled)
   bitflags x 2,085,162 ops/sec ±9.10% (67 runs sampled)
Get Small Bit Set:
   binarius x 26,146,290 ops/sec ±9.87% (65 runs sampled)
   vanilla x 72,901,685 ops/sec ±9.76% (75 runs sampled)
   fast-bitset x 2,077,717 ops/sec ±9.47% (65 runs sampled)
   bitflags x 2,205,870 ops/sec ±8.82% (71 runs sampled)
Set Small Bit Set:
   binarius x 16,939,736 ops/sec ±10.00% (62 runs sampled)
   vanilla x 62,144,478 ops/sec ±9.08% (67 runs sampled)
   fast-bitset x 1,726,339 ops/sec ±9.24% (63 runs sampled)
   bitflags x 2,133,856 ops/sec ±9.25% (68 runs sampled)
Construct Large Bit Set:
   binarius (BigInt) x 13,367,659 ops/sec ±9.40% (72 runs sampled)
   parseInt x 6,472,672 ops/sec ±9.30% (76 runs sampled)
   fast-bitset x 1,749,372 ops/sec ±8.86% (66 runs sampled)
   bitflags x 2,089,318 ops/sec ±9.59% (70 runs sampled)
Get Large Bit Set:
   binarius (BigInt) x 2,796,970 ops/sec ±9.87% (60 runs sampled)
   fast-bitset x 2,194,670 ops/sec ±9.49% (67 runs sampled)
   bitflags x 2,057,710 ops/sec ±9.50% (65 runs sampled)
Set Large Bit Set:
   binarius (BigInt) x 1,403,656 ops/sec ±10.19% (64 runs sampled)
   fast-bitset x 1,932,073 ops/sec ±9.67% (68 runs sampled)
   bitflags x 1,872,754 ops/sec ±9.57% (58 runs sampled)

License

MIT © Maga D. Zandaqo

Keywords

FAQs

Last updated on 07 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